ICollateralManager¶
Description¶
Source: contracts/interfaces/ICollateralManager.sol
Views¶
areShortableSynthsSet
¶
Details
Signature
areShortableSynthsSet(bytes32[] requiredSynthNamesInResolver, bytes32[] synthKeys) view returns (bool)
Visibility
external
State Mutability
view
areSynthsAndCurrenciesSet
¶
Details
Signature
areSynthsAndCurrenciesSet(bytes32[] requiredSynthNamesInResolver, bytes32[] synthKeys) view returns (bool)
Visibility
external
State Mutability
view
exceedsDebtLimit
¶
Details
Signature
exceedsDebtLimit(uint256 amount, bytes32 currency) view returns (bool canIssue, bool anyRateIsInvalid)
Visibility
external
State Mutability
view
getBorrowRate
¶
Details
Signature
getBorrowRate() view returns (uint256 borrowRate, bool anyRateIsInvalid)
Visibility
external
State Mutability
view
getRatesAndTime
¶
Details
Signature
getRatesAndTime(uint256 index) view returns (uint256 entryRate, uint256 lastRate, uint256 lastUpdated, uint256 newIndex)
Visibility
external
State Mutability
view
getShortRate
¶
Details
Signature
getShortRate(bytes32 synth) view returns (uint256 shortRate, bool rateIsInvalid)
Visibility
external
State Mutability
view
getShortRatesAndTime
¶
Details
Signature
getShortRatesAndTime(bytes32 currency, uint256 index) view returns (uint256 entryRate, uint256 lastRate, uint256 lastUpdated, uint256 newIndex)
Visibility
external
State Mutability
view
hasCollateral
¶
Details
Signature
hasCollateral(address collateral) view returns (bool)
Visibility
external
State Mutability
view
isSynthManaged
¶
Details
Signature
isSynthManaged(bytes32 currencyKey) view returns (bool)
Visibility
external
State Mutability
view
long
¶
Details
Signature
long(bytes32 synth) view returns (uint256 amount)
Visibility
external
State Mutability
view
short
¶
Details
Signature
short(bytes32 synth) view returns (uint256 amount)
Visibility
external
State Mutability
view
totalLong
¶
Details
Signature
totalLong() view returns (uint256 susdValue, bool anyRateIsInvalid)
Visibility
external
State Mutability
view
totalShort
¶
Details
Signature
totalShort() view returns (uint256 susdValue, bool anyRateIsInvalid)
Visibility
external
State Mutability
view
External Functions¶
addCollaterals
¶
Details
Signature
addCollaterals(address[] collaterals)
Visibility
external
State Mutability
``
addShortableSynths
¶
Details
Signature
addShortableSynths(bytes32[2][] requiredSynthAndInverseNamesInResolver, bytes32[] synthKeys)
Visibility
external
State Mutability
``
addSynths
¶
Details
Signature
addSynths(bytes32[] synthNamesInResolver, bytes32[] synthKeys)
Visibility
external
State Mutability
``
decrementLongs
¶
Details
Signature
decrementLongs(bytes32 synth, uint256 amount)
Visibility
external
State Mutability
``
decrementShorts
¶
Details
Signature
decrementShorts(bytes32 synth, uint256 amount)
Visibility
external
State Mutability
``
getNewLoanId
¶
Details
Signature
getNewLoanId() returns (uint256 id)
Visibility
external
State Mutability
``
incrementLongs
¶
Details
Signature
incrementLongs(bytes32 synth, uint256 amount)
Visibility
external
State Mutability
``
incrementShorts
¶
Details
Signature
incrementShorts(bytes32 synth, uint256 amount)
Visibility
external
State Mutability
``
removeCollaterals
¶
Details
Signature
removeCollaterals(address[] collaterals)
Visibility
external
State Mutability
``
removeShortableSynths
¶
Details
Signature
removeShortableSynths(bytes32[] synths)
Visibility
external
State Mutability
``
removeSynths
¶
Details
Signature
removeSynths(bytes32[] synths, bytes32[] synthKeys)
Visibility
external
State Mutability
``
updateBorrowRates
¶
Details
Signature
updateBorrowRates(uint256 rate)
Visibility
external
State Mutability
``
updateShortRates
¶
Details
Signature
updateShortRates(bytes32 currency, uint256 rate)
Visibility
external
State Mutability
``