RewardedActions
Inherits: CommonActions, IRewardedActions
All methods here are executed as delegatecalls from the user's proxy
Functions
startDebtAuction
Starts a debt auction and transfers the reward to the user
function startDebtAuction(address _accountingJob, address _coinJoin) external onlyDelegateCall;
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 onlyDelegateCall;
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 onlyDelegateCall;
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 onlyDelegateCall;
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 onlyDelegateCall;
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 onlyDelegateCall;
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 onlyDelegateCall;
Parameters
Name | Type | Description |
---|---|---|
_oracleJob | address | Address of the OracleJob contract |
_coinJoin | address | Address of the CoinJoin contract |
_exitReward
Exits the reward from the job and transfers it to the user
function _exitReward(address _job, address _coinJoin) internal;
Parameters
Name | Type | Description |
---|---|---|
_job | address | Address of the job contract |
_coinJoin | address | Address of the CoinJoin contract |