IRewardedActions
Inherits: ICommonActions
Functions
startDebtAuction
Starts a debt auction and transfers the reward to the user
function startDebtAuction(address _accountingJob, address _coinJoin) external;
Parameters
Name | Type | Description |
---|---|---|
_accountingJob | address | Address of the AccountingJob contract |
_coinJoin | address | Address of the CoinJoin contract |
startSurplusAuction
Starts a surplus auction and transfers the reward to the user
function startSurplusAuction(address _accountingJob, address _coinJoin) external;
Parameters
Name | Type | Description |
---|---|---|
_accountingJob | address | Address of the AccountingJob contract |
_coinJoin | address | Address of the CoinJoin contract |
popDebtFromQueue
Pops debt from accounting engine's queue and transfers the reward to the user
function popDebtFromQueue(address _accountingJob, address _coinJoin, uint256 _debtTimestamp) external;
Parameters
Name | Type | Description |
---|---|---|
_accountingJob | address | Address of the AccountingJob contract |
_coinJoin | address | Address of the CoinJoin contract |
_debtTimestamp | uint256 | Timestamp of the debt to pop from the queue |
transferExtraSurplus
Transfers surplus from accounting engine and transfers the reward to the user
function transferExtraSurplus(address _accountingJob, address _coinJoin) external;
Parameters
Name | Type | Description |
---|---|---|
_accountingJob | address | Address of the AccountingJob contract |
_coinJoin | address | Address of the CoinJoin contract |
liquidateSAFE
Starts a liquidation and transfers the reward to the user
function liquidateSAFE(address _liquidationJob, address _coinJoin, bytes32 _cType, address _safe) external;
Parameters
Name | Type | Description |
---|---|---|
_liquidationJob | address | Address of the LiquidationJob contract |
_coinJoin | address | Address of the CoinJoin contract |
_cType | bytes32 | Bytes32 representation of the collateral type |
_safe | address | Address of the SAFE to liquidate |
updateCollateralPrice
Updates the price of a collateral type and transfers the reward to the user
function updateCollateralPrice(address _oracleJob, address _coinJoin, bytes32 _cType) external;
Parameters
Name | Type | Description |
---|---|---|
_oracleJob | address | Address of the OracleJob contract |
_coinJoin | address | Address of the CoinJoin contract |
_cType | bytes32 | Bytes32 representation of the collateral type |
updateRedemptionRate
Updates the redemption rate and transfers the reward to the user
function updateRedemptionRate(address _oracleJob, address _coinJoin) external;
Parameters
Name | Type | Description |
---|---|---|
_oracleJob | address | Address of the OracleJob contract |
_coinJoin | address | Address of the CoinJoin contract |