Loading [MathJax]/jax/output/CommonHTML/jax.js
Skip to content

ICollateralManager¶

Description¶

Source: contracts/interfaces/ICollateralManager.sol

Views¶

areShortableSynthsSet¶

Source

Details

Signature

areShortableSynthsSet(bytes32[] requiredSynthNamesInResolver, bytes32[] synthKeys) view returns (bool)

Visibility

external

State Mutability

view

areSynthsAndCurrenciesSet¶

Source

Details

Signature

areSynthsAndCurrenciesSet(bytes32[] requiredSynthNamesInResolver, bytes32[] synthKeys) view returns (bool)

Visibility

external

State Mutability

view

exceedsDebtLimit¶

Source

Details

Signature

exceedsDebtLimit(uint256 amount, bytes32 currency) view returns (bool canIssue, bool anyRateIsInvalid)

Visibility

external

State Mutability

view

getBorrowRate¶

Source

Details

Signature

getBorrowRate() view returns (uint256 borrowRate, bool anyRateIsInvalid)

Visibility

external

State Mutability

view

getRatesAndTime¶

Source

Details

Signature

getRatesAndTime(uint256 index) view returns (uint256 entryRate, uint256 lastRate, uint256 lastUpdated, uint256 newIndex)

Visibility

external

State Mutability

view

getShortRate¶

Source

Details

Signature

getShortRate(bytes32 synth) view returns (uint256 shortRate, bool rateIsInvalid)

Visibility

external

State Mutability

view

getShortRatesAndTime¶

Source

Details

Signature

getShortRatesAndTime(bytes32 currency, uint256 index) view returns (uint256 entryRate, uint256 lastRate, uint256 lastUpdated, uint256 newIndex)

Visibility

external

State Mutability

view

hasCollateral¶

Source

Details

Signature

hasCollateral(address collateral) view returns (bool)

Visibility

external

State Mutability

view

isSynthManaged¶

Source

Details

Signature

isSynthManaged(bytes32 currencyKey) view returns (bool)

Visibility

external

State Mutability

view

long¶

Source

Details

Signature

long(bytes32 synth) view returns (uint256 amount)

Visibility

external

State Mutability

view

short¶

Source

Details

Signature

short(bytes32 synth) view returns (uint256 amount)

Visibility

external

State Mutability

view

totalLong¶

Source

Details

Signature

totalLong() view returns (uint256 susdValue, bool anyRateIsInvalid)

Visibility

external

State Mutability

view

totalShort¶

Source

Details

Signature

totalShort() view returns (uint256 susdValue, bool anyRateIsInvalid)

Visibility

external

State Mutability

view

External Functions¶

addCollaterals¶

Source

Details

Signature

addCollaterals(address[] collaterals)

Visibility

external

State Mutability

addShortableSynths¶

Source

Details

Signature

addShortableSynths(bytes32[2][] requiredSynthAndInverseNamesInResolver, bytes32[] synthKeys)

Visibility

external

State Mutability

addSynths¶

Source

Details

Signature

addSynths(bytes32[] synthNamesInResolver, bytes32[] synthKeys)

Visibility

external

State Mutability

decrementLongs¶

Source

Details

Signature

decrementLongs(bytes32 synth, uint256 amount)

Visibility

external

State Mutability

decrementShorts¶

Source

Details

Signature

decrementShorts(bytes32 synth, uint256 amount)

Visibility

external

State Mutability

getNewLoanId¶

Source

Details

Signature

getNewLoanId() returns (uint256 id)

Visibility

external

State Mutability

incrementLongs¶

Source

Details

Signature

incrementLongs(bytes32 synth, uint256 amount)

Visibility

external

State Mutability

incrementShorts¶

Source

Details

Signature

incrementShorts(bytes32 synth, uint256 amount)

Visibility

external

State Mutability

removeCollaterals¶

Source

Details

Signature

removeCollaterals(address[] collaterals)

Visibility

external

State Mutability

removeShortableSynths¶

Source

Details

Signature

removeShortableSynths(bytes32[] synths)

Visibility

external

State Mutability

removeSynths¶

Source

Details

Signature

removeSynths(bytes32[] synths, bytes32[] synthKeys)

Visibility

external

State Mutability

updateBorrowRates¶

Source

Details

Signature

updateBorrowRates(uint256 rate)

Visibility

external

State Mutability

updateShortRates¶

Source

Details

Signature

updateShortRates(bytes32 currency, uint256 rate)

Visibility

external

State Mutability