Skip to content

DebtCache

Description

Source: contracts/DebtCache.sol

Architecture

Libraries

Inheritance Graph

graph TD DebtCache[DebtCache] --> MixinSystemSettings[MixinSystemSettings] MixinSystemSettings[MixinSystemSettings] --> MixinResolver[MixinResolver] MixinResolver[MixinResolver] --> Owned[Owned]

Constructor

constructor

Source

Details

Signature

(address _owner, address _resolver)

Visibility

public

State Mutability

nonpayable

Views

cacheInfo

Source

Details

Signature

cacheInfo() returns (uint256, uint256, bool, bool)

Visibility

external

State Mutability

view

cacheInvalid

Source

Details

Signature

cacheInvalid() returns (bool)

Visibility

external

State Mutability

view

cacheStale

Source

Details

Signature

cacheStale() returns (bool)

Visibility

external

State Mutability

view

cacheTimestamp

Source

Details

Signature

cacheTimestamp() returns (uint256)

Visibility

external

State Mutability

view

cachedDebt

Source

Details

Signature

cachedDebt() returns (uint256)

Visibility

external

State Mutability

view

cachedSynthDebt

Source

Details

Signature

cachedSynthDebt(bytes32 currencyKey) returns (uint256)

Visibility

external

State Mutability

view

cachedSynthDebts

Source

Details

Signature

cachedSynthDebts(bytes32[] currencyKeys) returns (uint256[])

Visibility

external

State Mutability

view

currentDebt

Source

Details

Signature

currentDebt() returns (uint256, bool)

Visibility

external

State Mutability

view

currentSynthDebts

Source

Details

Signature

currentSynthDebts(bytes32[] currencyKeys) returns (uint256[], bool)

Visibility

external

State Mutability

view

debtSnapshotStaleTime

Source

Details

Signature

debtSnapshotStaleTime() returns (uint256)

Visibility

external

State Mutability

view

Restricted Functions

purgeCachedSynthDebt

Source

Details

Signature

purgeCachedSynthDebt(bytes32 currencyKey)

Visibility

external

State Mutability

nonpayable

Requires

Modifiers

updateCachedSynthDebtWithRate

Source

Details

Signature

updateCachedSynthDebtWithRate(bytes32 currencyKey, uint256 currencyRate)

Visibility

external

State Mutability

nonpayable

Modifiers

updateCachedSynthDebtsWithRates

Source

Details

Signature

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

Visibility

external

State Mutability

nonpayable

Modifiers

updateDebtCacheValidity

Source

Details

Signature

updateDebtCacheValidity(bool currentlyInvalid)

Visibility

external

State Mutability

nonpayable

Modifiers

Internal Functions

_cacheStale

Source

Details

Signature

_cacheStale(uint256 timestamp) returns (bool)

Visibility

internal

State Mutability

view

_cachedSynthDebts

Source

Details

Signature

_cachedSynthDebts(bytes32[] currencyKeys) returns (uint256[])

Visibility

internal

State Mutability

view

_currentDebt

Source

Details

Signature

_currentDebt() returns (uint256, bool)

Visibility

internal

State Mutability

view

_currentSynthDebts

Source

Details

Signature

_currentSynthDebts(bytes32[] currencyKeys) returns (uint256[], bool)

Visibility

internal

State Mutability

view

_issuedSynthValues

Source

Details

Signature

_issuedSynthValues(bytes32[] currencyKeys, uint256[] rates) returns (uint256[])

Visibility

internal

State Mutability

view

_onlyIssuer

Source

Details

Signature

_onlyIssuer()

Visibility

internal

State Mutability

view

Requires

_onlyIssuerOrExchanger

Source

Details

Signature

_onlyIssuerOrExchanger()

Visibility

internal

State Mutability

view

Requires

_requireSystemActiveIfNotOwner

Source

Details

Signature

_requireSystemActiveIfNotOwner()

Visibility

internal

State Mutability

view

_updateCachedSynthDebtsWithRates

Source

Details

Signature

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

Visibility

internal

State Mutability

nonpayable

Requires

_updateDebtCacheValidity

Source

Details

Signature

_updateDebtCacheValidity(bool currentlyInvalid)

Visibility

internal

State Mutability

nonpayable

etherCollateral

Source

Details

Signature

etherCollateral() returns (contract IEtherCollateral)

Visibility

internal

State Mutability

view

etherCollateralsUSD

Source

Details

Signature

etherCollateralsUSD() returns (contract IEtherCollateralsUSD)

Visibility

internal

State Mutability

view

exchangeRates

Source

Details

Signature

exchangeRates() returns (contract IExchangeRates)

Visibility

internal

State Mutability

view

exchanger

Source

Details

Signature

exchanger() returns (contract IExchanger)

Visibility

internal

State Mutability

view

issuer

Source

Details

Signature

issuer() returns (contract IIssuer)

Visibility

internal

State Mutability

view

systemStatus

Source

Details

Signature

systemStatus() returns (contract ISystemStatus)

Visibility

internal

State Mutability

view

External Functions

takeDebtSnapshot

Source

Details

Signature

takeDebtSnapshot()

Visibility

external

State Mutability

nonpayable

Modifiers

Emits

updateCachedSynthDebts

Source

Details

Signature

updateCachedSynthDebts(bytes32[] currencyKeys)

Visibility

external

State Mutability

nonpayable

Modifiers

Modifiers

onlyIssuer

Source

onlyIssuerOrExchanger

Source

requireSystemActiveIfNotOwner

Source

Events

DebtCacheSnapshotTaken

Source

Signature: DebtCacheSnapshotTaken(uint256 timestamp)

DebtCacheUpdated

Source

Signature: DebtCacheUpdated(uint256 cachedDebt)

DebtCacheValidityChanged

Source

Signature: DebtCacheValidityChanged(bool isInvalid)