Skip to content

BaseDebtCache

Description

Source: contracts/BaseDebtCache.sol

Constructor

constructor

Source

Details

Signature

constructor(address _owner, address _resolver)

Visibility

public

State Mutability

undefined

Internal Functions

_cacheStale

Source

Details

Signature

_cacheStale(uint256 timestamp) view returns (bool)

Visibility

internal

State Mutability

undefined

_cachedSynthDebts

Source

Details

Signature

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

Visibility

internal

State Mutability

undefined

_currentDebt

Source

Details

Signature

_currentDebt() view returns (uint256 debt, bool anyRateIsInvalid)

Visibility

internal

State Mutability

undefined

_currentSynthDebts

Source

Details

Signature

_currentSynthDebts(bytes32[] currencyKeys) view returns (uint256[] snxIssuedDebts, bool anyRateIsInvalid)

Visibility

internal

State Mutability

undefined

_issuedSynthValues

Source

Details

Signature

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

Visibility

internal

State Mutability

undefined

_onlyIssuer

Source

Details

Signature

_onlyIssuer() view

Visibility

internal

State Mutability

undefined

Requires

_onlyIssuerOrExchanger

Source

Details

Signature

_onlyIssuerOrExchanger() view

Visibility

internal

State Mutability

undefined

Requires

_requireSystemActiveIfNotOwner

Source

Details

Signature

_requireSystemActiveIfNotOwner() view

Visibility

internal

State Mutability

undefined

collateralManager

Source

Details

Signature

collateralManager() view returns (contract ICollateralManager)

Visibility

internal

State Mutability

undefined

etherCollateral

Source

Details

Signature

etherCollateral() view returns (contract IEtherCollateral)

Visibility

internal

State Mutability

undefined

etherCollateralsUSD

Source

Details

Signature

etherCollateralsUSD() view returns (contract IEtherCollateralsUSD)

Visibility

internal

State Mutability

undefined

exchangeRates

Source

Details

Signature

exchangeRates() view returns (contract IExchangeRates)

Visibility

internal

State Mutability

undefined

exchanger

Source

Details

Signature

exchanger() view returns (contract IExchanger)

Visibility

internal

State Mutability

undefined

issuer

Source

Details

Signature

issuer() view returns (contract IIssuer)

Visibility

internal

State Mutability

undefined

systemStatus

Source

Details

Signature

systemStatus() view returns (contract ISystemStatus)

Visibility

internal

State Mutability

undefined

External Functions

cacheInfo

Source

Details

Signature

cacheInfo() view returns (uint256 debt, uint256 timestamp, bool isInvalid, bool isStale)

Visibility

external

State Mutability

undefined

cacheInvalid

Source

Details

Signature

cacheInvalid() view returns (bool)

Visibility

external

State Mutability

undefined

cacheStale

Source

Details

Signature

cacheStale() view returns (bool)

Visibility

external

State Mutability

undefined

cacheTimestamp

Source

Details

Signature

cacheTimestamp() view returns (uint256)

Visibility

external

State Mutability

undefined

cachedDebt

Source

Details

Signature

cachedDebt() view returns (uint256)

Visibility

external

State Mutability

undefined

cachedSynthDebt

Source

Details

Signature

cachedSynthDebt(bytes32 currencyKey) view returns (uint256)

Visibility

external

State Mutability

undefined

cachedSynthDebts

Source

Details

Signature

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

Visibility

external

State Mutability

undefined

currentDebt

Source

Details

Signature

currentDebt() view returns (uint256 debt, bool anyRateIsInvalid)

Visibility

external

State Mutability

undefined

currentSynthDebts

Source

Details

Signature

currentSynthDebts(bytes32[] currencyKeys) view returns (uint256[] debtValues, bool anyRateIsInvalid)

Visibility

external

State Mutability

undefined

debtSnapshotStaleTime

Source

Details

Signature

debtSnapshotStaleTime() view returns (uint256)

Visibility

external

State Mutability

undefined

purgeCachedSynthDebt

Source

Details

Signature

purgeCachedSynthDebt(bytes32 currencyKey)

Visibility

external

State Mutability

undefined

resolverAddressesRequired

Source

Details

Signature

resolverAddressesRequired() view returns (bytes32[] addresses)

Visibility

public

State Mutability

undefined

takeDebtSnapshot

Source

Details

Signature

takeDebtSnapshot()

Visibility

external

State Mutability

undefined

updateCachedSynthDebtWithRate

Source

Details

Signature

updateCachedSynthDebtWithRate(bytes32 currencyKey, uint256 currencyRate)

Visibility

external

State Mutability

undefined

updateCachedSynthDebts

Source

Details

Signature

updateCachedSynthDebts(bytes32[] currencyKeys)

Visibility

external

State Mutability

undefined

updateCachedSynthDebtsWithRates

Source

Details

Signature

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

Visibility

external

State Mutability

undefined

updateDebtCacheValidity

Source

Details

Signature

updateDebtCacheValidity(bool currentlyInvalid)

Visibility

external

State Mutability

undefined

Modifiers

onlyIssuer

Source

onlyIssuerOrExchanger

Source

requireSystemActiveIfNotOwner

Source