IGlobalSettlementActions
Inherits: ICommonActions
Functions
freeCollateral
Free remaining collateral from a SAFE after being processed by the global settlement
function freeCollateral(
address _manager,
address _globalSettlement,
address _collateralJoin,
uint256 _safeId
) external returns (uint256 _collateralAmount);
Parameters
Name | Type | Description |
---|---|---|
_manager | address | Address of the HaiSafeManager contract |
_globalSettlement | address | Address of the GlobalSettlement contract |
_collateralJoin | address | Address of the CollateralJoin contract |
_safeId | uint256 | Id of the SAFE to free collateral from |
Returns
Name | Type | Description |
---|---|---|
_collateralAmount | uint256 | Amount of collateral freed [wad] |
prepareCoinsForRedeeming
Prepare coins for redeeming
function prepareCoinsForRedeeming(address _globalSettlement, address _coinJoin, uint256 _coinAmount) external;
Parameters
Name | Type | Description |
---|---|---|
_globalSettlement | address | Address of the GlobalSettlement contract |
_coinJoin | address | Address of the CoinJoin contract |
_coinAmount | uint256 | Amount of coins to prepare for redeeming [wad] |
redeemCollateral
Redeem collateral tokens from the global settlement
function redeemCollateral(
address _globalSettlement,
address _collateralJoin
) external returns (uint256 _collateralAmount);
Parameters
Name | Type | Description |
---|---|---|
_globalSettlement | address | Address of the GlobalSettlement contract |
_collateralJoin | address | Address of the CollateralJoin contract |
Returns
Name | Type | Description |
---|---|---|
_collateralAmount | uint256 | Amount of collateral redeemed [wad] |