DebtBidActions

Git Source

Inherits: CommonActions, IDebtBidActions

All methods here are executed as delegatecalls from the user's proxy

Functions

decreaseSoldAmount

Place a bid offering to receive a lesser amount of protocol tokens for covering the auctioned debt amount

function decreaseSoldAmount(
  address _coinJoin,
  address _debtAuctionHouse,
  uint256 _auctionId,
  uint256 _soldAmount
) external onlyDelegateCall;

Parameters

NameTypeDescription
_coinJoinaddressAddress of the CoinJoin contract
_debtAuctionHouseaddressAddress of the DebtAuctionHouse contract
_auctionIduint256Id of the auction to bid on
_soldAmountuint256Amount of protocol tokens to receive [wad]

settleAuction

Settles an auction, collecting the protocol tokens if the user is the highest bidder

This method will fail if the auction is not finished

function settleAuction(address _coinJoin, address _debtAuctionHouse, uint256 _auctionId) external onlyDelegateCall;

Parameters

NameTypeDescription
_coinJoinaddressAddress of the CoinJoin contract
_debtAuctionHouseaddressAddress of the DebtAuctionHouse contract
_auctionIduint256Id of the auction to settle

collectProtocolTokens

Collects the protocol tokens that the proxy has

This method is used to collect protocol tokens from an auction that was settled by another user

function collectProtocolTokens(address _protocolToken) external onlyDelegateCall;

Parameters

NameTypeDescription
_protocolTokenaddressAddress of the protocol token