DebtCache¶
Description¶
Source: contracts/DebtCache.sol
Constructor¶
constructor
¶
Details
Signature
constructor(address _owner, address _resolver)
Visibility
public
State Mutability
undefined
Restricted Functions¶
purgeCachedSynthDebt
¶
Details
Signature
purgeCachedSynthDebt(bytes32 currencyKey)
Visibility
external
State Mutability
undefined
Requires
Modifiers
updateCachedSynthDebtWithRate
¶
Details
Signature
updateCachedSynthDebtWithRate(bytes32 currencyKey, uint256 currencyRate)
Visibility
external
State Mutability
undefined
Modifiers
updateCachedSynthDebtsWithRates
¶
Details
Signature
updateCachedSynthDebtsWithRates(bytes32[] currencyKeys, uint256[] currencyRates)
Visibility
external
State Mutability
undefined
Modifiers
updateDebtCacheValidity
¶
Details
Signature
updateDebtCacheValidity(bool currentlyInvalid)
Visibility
external
State Mutability
undefined
Modifiers
Internal Functions¶
_updateCachedSynthDebtsWithRates
¶
Details
Signature
_updateCachedSynthDebtsWithRates(bytes32[] currencyKeys, uint256[] currentRates, bool anyRateIsInvalid)
Visibility
internal
State Mutability
undefined
Requires
_updateDebtCacheValidity
¶
Details
Signature
_updateDebtCacheValidity(bool currentlyInvalid)
Visibility
internal
State Mutability
undefined
External Functions¶
takeDebtSnapshot
¶
Details
Signature
takeDebtSnapshot()
Visibility
external
State Mutability
undefined
Modifiers
Emits
updateCachedSynthDebts
¶
Details
Signature
updateCachedSynthDebts(bytes32[] currencyKeys)
Visibility
external
State Mutability
undefined
Modifiers
Events¶
DebtCacheSnapshotTaken
¶
Signature: DebtCacheSnapshotTaken(uint256 timestamp)
DebtCacheUpdated
¶
Signature: DebtCacheUpdated(uint256 cachedDebt)
DebtCacheValidityChanged
¶
Signature: DebtCacheValidityChanged(bool isInvalid)