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