CollateralBidActions
Inherits: CommonActions, ICollateralBidActions
All methods here are executed as delegatecalls from the user's proxy
Functions
buyCollateral
Buys collateral tokens from a collateral auction
This method will fail if the purchased amount is lower than the minimum, or the bid higher than the specified amount
function buyCollateral(
address _coinJoin,
address _collateralJoin,
address _collateralAuctionHouse,
uint256 _auctionId,
uint256 _minCollateralAmount,
uint256 _bidAmount
) external onlyDelegateCall;
Parameters
Name | Type | Description |
---|---|---|
_coinJoin | address | Address of the CoinJoin contract |
_collateralJoin | address | Address of the CollateralJoin contract |
_collateralAuctionHouse | address | Address of the CollateralAuctionHouse contract |
_auctionId | uint256 | Id of the auction to bid on |
_minCollateralAmount | uint256 | Minimum amount of collateral tokens to buy [wad] |
_bidAmount | uint256 | Amount of system coins to bid [wad] |