Skip to content

DebtCache

Description

Source: contracts/DebtCache.sol

Constructor

constructor

Source

Details

Signature

constructor(address _owner, address _resolver)

Visibility

public

State Mutability

``

Restricted Functions

purgeCachedSynthDebt

Source

Details

Signature

purgeCachedSynthDebt(bytes32 currencyKey)

Visibility

external

State Mutability

``

Requires

Modifiers

updateCachedSynthDebtWithRate

Source

Details

Signature

updateCachedSynthDebtWithRate(bytes32 currencyKey, uint256 currencyRate)

Visibility

external

State Mutability

``

Modifiers

updateCachedSynthDebtsWithRates

Source

Details

Signature

updateCachedSynthDebtsWithRates(bytes32[] currencyKeys, uint256[] currencyRates)

Visibility

external

State Mutability

``

Modifiers

updateDebtCacheValidity

Source

Details

Signature

updateDebtCacheValidity(bool currentlyInvalid)

Visibility

external

State Mutability

``

Modifiers

Internal Functions

_updateCachedSynthDebtsWithRates

Source

Details

Signature

_updateCachedSynthDebtsWithRates(bytes32[] currencyKeys, uint256[] currentRates, bool anyRateIsInvalid, bool recomputeExcludedDebt)

Visibility

internal

State Mutability

``

Requires

_updateDebtCacheValidity

Source

Details

Signature

_updateDebtCacheValidity(bool currentlyInvalid)

Visibility

internal

State Mutability

``

External Functions

takeDebtSnapshot

Source

Details

Signature

takeDebtSnapshot()

Visibility

external

State Mutability

``

Modifiers

Emits

updateCachedSynthDebts

Source

Details

Signature

updateCachedSynthDebts(bytes32[] currencyKeys)

Visibility

external

State Mutability

``

Modifiers

Events

DebtCacheSnapshotTaken

Source

Signature: DebtCacheSnapshotTaken(uint256 timestamp)

DebtCacheUpdated

Source

Signature: DebtCacheUpdated(uint256 cachedDebt)

DebtCacheValidityChanged

Source

Signature: DebtCacheValidityChanged(bool isInvalid)