IDebtBidActions

Git Source

Inherits: ICommonActions

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;

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;

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;

Parameters

NameTypeDescription
_protocolTokenaddressAddress of the protocol token