Skip to content

DebtCache

Description

Source: contracts/DebtCache.sol

Constructor

constructor

Source

Details

Signature

constructor(address _owner, address _resolver)

Visibility

public

State Mutability

undefined

Restricted Functions

purgeCachedSynthDebt

Source

Details

Signature

purgeCachedSynthDebt(bytes32 currencyKey)

Visibility

external

State Mutability

undefined

Requires

Modifiers

updateCachedSynthDebtWithRate

Source

Details

Signature

updateCachedSynthDebtWithRate(bytes32 currencyKey, uint256 currencyRate)

Visibility

external

State Mutability

undefined

Modifiers

updateCachedSynthDebtsWithRates

Source

Details

Signature

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

Visibility

external

State Mutability

undefined

Modifiers

updateDebtCacheValidity

Source

Details

Signature

updateDebtCacheValidity(bool currentlyInvalid)

Visibility

external

State Mutability

undefined

Modifiers

Internal Functions

_updateCachedSynthDebtsWithRates

Source

Details

Signature

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

Visibility

internal

State Mutability

undefined

Requires

_updateDebtCacheValidity

Source

Details

Signature

_updateDebtCacheValidity(bool currentlyInvalid)

Visibility

internal

State Mutability

undefined

External Functions

takeDebtSnapshot

Source

Details

Signature

takeDebtSnapshot()

Visibility

external

State Mutability

undefined

Modifiers

Emits

updateCachedSynthDebts

Source

Details

Signature

updateCachedSynthDebts(bytes32[] currencyKeys)

Visibility

external

State Mutability

undefined

Modifiers

Events

DebtCacheSnapshotTaken

Source

Signature: DebtCacheSnapshotTaken(uint256 timestamp)

DebtCacheUpdated

Source

Signature: DebtCacheUpdated(uint256 cachedDebt)

DebtCacheValidityChanged

Source

Signature: DebtCacheValidityChanged(bool isInvalid)