IRewardedActions

Git Source

Inherits: ICommonActions

Functions

startDebtAuction

Starts a debt auction and transfers the reward to the user

function startDebtAuction(address _accountingJob, address _coinJoin) external;

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;

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;

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;

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;

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;

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;

Parameters

NameTypeDescription
_oracleJobaddressAddress of the OracleJob contract
_coinJoinaddressAddress of the CoinJoin contract