IDebtCache¶
Description¶
Source: contracts/interfaces/IDebtCache.sol
Views¶
cacheInfo
¶
Details
Signature
cacheInfo() view returns (uint256 debt, uint256 timestamp, bool isInvalid, bool isStale)
Visibility
external
State Mutability
view
cacheInvalid
¶
Details
Signature
cacheInvalid() view returns (bool)
Visibility
external
State Mutability
view
cacheStale
¶
Details
Signature
cacheStale() view returns (bool)
Visibility
external
State Mutability
view
cacheTimestamp
¶
Details
Signature
cacheTimestamp() view returns (uint256)
Visibility
external
State Mutability
view
cachedDebt
¶
Details
Signature
cachedDebt() view returns (uint256)
Visibility
external
State Mutability
view
cachedSynthDebt
¶
Details
Signature
cachedSynthDebt(bytes32 currencyKey) view returns (uint256)
Visibility
external
State Mutability
view
cachedSynthDebts
¶
Details
Signature
cachedSynthDebts(bytes32[] currencyKeys) view returns (uint256[] debtValues)
Visibility
external
State Mutability
view
currentDebt
¶
Details
Signature
currentDebt() view returns (uint256 debt, bool anyRateIsInvalid)
Visibility
external
State Mutability
view
currentSynthDebts
¶
Details
Signature
currentSynthDebts(bytes32[] currencyKeys) view returns (uint256[] debtValues, uint256 futuresDebt, uint256 excludedDebt, bool anyRateIsInvalid)
Visibility
external
State Mutability
view
excludedIssuedDebts
¶
Details
Signature
excludedIssuedDebts(bytes32[] currencyKeys) view returns (uint256[] excludedDebts)
Visibility
external
State Mutability
view
isInitialized
¶
Details
Signature
isInitialized() view returns (bool)
Visibility
external
State Mutability
view
totalNonSnxBackedDebt
¶
Details
Signature
totalNonSnxBackedDebt() view returns (uint256 excludedDebt, bool isInvalid)
Visibility
external
State Mutability
view
External Functions¶
importExcludedIssuedDebts
¶
Details
Signature
importExcludedIssuedDebts(contract IDebtCache prevDebtCache, contract IIssuer prevIssuer)
Visibility
external
State Mutability
``
purgeCachedSynthDebt
¶
Details
Signature
purgeCachedSynthDebt(bytes32 currencyKey)
Visibility
external
State Mutability
``
recordExcludedDebtChange
¶
Details
Signature
recordExcludedDebtChange(bytes32 currencyKey, int256 delta)
Visibility
external
State Mutability
``
takeDebtSnapshot
¶
Details
Signature
takeDebtSnapshot()
Visibility
external
State Mutability
``
updateCachedSynthDebtWithRate
¶
Details
Signature
updateCachedSynthDebtWithRate(bytes32 currencyKey, uint256 currencyRate)
Visibility
external
State Mutability
``
updateCachedSynthDebts
¶
Details
Signature
updateCachedSynthDebts(bytes32[] currencyKeys)
Visibility
external
State Mutability
``
updateCachedSynthDebtsWithRates
¶
Details
Signature
updateCachedSynthDebtsWithRates(bytes32[] currencyKeys, uint256[] currencyRates)
Visibility
external
State Mutability
``
updateCachedsUSDDebt
¶
Details
Signature
updateCachedsUSDDebt(int256 amount)
Visibility
external
State Mutability
``
updateDebtCacheValidity
¶
Details
Signature
updateDebtCacheValidity(bool currentlyInvalid)
Visibility
external
State Mutability
``