Skip to content

CollateralUtil

Description

Source: contracts/CollateralUtil.sol

Constructor

constructor

Source

Details

Signature

constructor(address _resolver)

Visibility

public

State Mutability

``

Views

collateralRedeemed

Source

Details

Signature

collateralRedeemed(bytes32 currency, uint256 amount, bytes32 collateralKey) view returns (uint256 collateral)

Visibility

external

State Mutability

view

getCollateralRatio

Source

Details

Signature

getCollateralRatio(struct ICollateralLoan.Loan loan, bytes32 collateralKey) view returns (uint256 cratio)

Visibility

external

State Mutability

view

liquidationAmount

Source

Details

Signature

liquidationAmount(struct ICollateralLoan.Loan loan, uint256 minCratio, bytes32 collateralKey) view returns (uint256 amount)

Visibility

external

State Mutability

view

maxLoan

Source

Details

Signature

maxLoan(uint256 amount, bytes32 currency, uint256 minCratio, bytes32 collateralKey) view returns (uint256 max)

Visibility

external

State Mutability

view

resolverAddressesRequired

Source

Details

Signature

resolverAddressesRequired() view returns (bytes32[] addresses)

Visibility

public

State Mutability

view

Internal Functions

_exchangeRates

Source

Details

Signature

_exchangeRates() view returns (contract IExchangeRates)

Visibility

internal

State Mutability

view