RewardedActions

Git Source

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

NameTypeDescription
_accountingJobaddressAddress of the AccountingJob contract
_coinJoinaddressAddress 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

NameTypeDescription
_accountingJobaddressAddress of the AccountingJob contract
_coinJoinaddressAddress 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

NameTypeDescription
_accountingJobaddressAddress of the AccountingJob contract
_coinJoinaddressAddress of the CoinJoin contract
_debtTimestampuint256Timestamp 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

NameTypeDescription
_accountingJobaddressAddress of the AccountingJob contract
_coinJoinaddressAddress 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

NameTypeDescription
_liquidationJobaddressAddress of the LiquidationJob contract
_coinJoinaddressAddress of the CoinJoin contract
_cTypebytes32Bytes32 representation of the collateral type
_safeaddressAddress 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

NameTypeDescription
_oracleJobaddressAddress of the OracleJob contract
_coinJoinaddressAddress of the CoinJoin contract
_cTypebytes32Bytes32 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

NameTypeDescription
_oracleJobaddressAddress of the OracleJob contract
_coinJoinaddressAddress 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

NameTypeDescription
_jobaddressAddress of the job contract
_coinJoinaddressAddress of the CoinJoin contract