CollateralUtil¶
Description¶
Source: contracts/CollateralUtil.sol
Constructor¶
constructor
¶
Details
Signature
constructor(address _resolver)
Visibility
public
State Mutability
``
Views¶
collateralRedeemed
¶
Details
Signature
collateralRedeemed(bytes32 currency, uint256 amount, bytes32 collateralKey) view returns (uint256 collateral)
Visibility
external
State Mutability
view
getCollateralRatio
¶
Details
Signature
getCollateralRatio(struct ICollateralLoan.Loan loan, bytes32 collateralKey) view returns (uint256 cratio)
Visibility
external
State Mutability
view
liquidationAmount
¶
Details
Signature
liquidationAmount(struct ICollateralLoan.Loan loan, uint256 minCratio, bytes32 collateralKey) view returns (uint256 amount)
Visibility
external
State Mutability
view
maxLoan
¶
Details
Signature
maxLoan(uint256 amount, bytes32 currency, uint256 minCratio, bytes32 collateralKey) view returns (uint256 max)
Visibility
external
State Mutability
view
resolverAddressesRequired
¶
Details
Signature
resolverAddressesRequired() view returns (bytes32[] addresses)
Visibility
public
State Mutability
view
Internal Functions¶
_exchangeRates
¶
Details
Signature
_exchangeRates() view returns (contract IExchangeRates)
Visibility
internal
State Mutability
view