BaseDebtCache¶
Description¶
Source: contracts/BaseDebtCache.sol
Variables¶
isInitialized
¶
Type: bool
Constructor¶
constructor
¶
Details
Signature
constructor(address _owner, address _resolver)
Visibility
public
State Mutability
``
Views¶
cacheInfo
¶
Details
Signature
cacheInfo() view returns (uint256 debt, uint256 timestamp, bool isInvalid, bool isStale)
Visibility
external
State Mutability
view
cacheInvalid
¶
Details
Signature
cacheInvalid() view returns (bool)
Visibility
external
State Mutability
view
cacheStale
¶
Details
Signature
cacheStale() view returns (bool)
Visibility
external
State Mutability
view
cacheTimestamp
¶
Details
Signature
cacheTimestamp() view returns (uint256)
Visibility
external
State Mutability
view
cachedDebt
¶
Details
Signature
cachedDebt() view returns (uint256)
Visibility
external
State Mutability
view
cachedSynthDebt
¶
Details
Signature
cachedSynthDebt(bytes32 currencyKey) view returns (uint256)
Visibility
external
State Mutability
view
cachedSynthDebts
¶
Details
Signature
cachedSynthDebts(bytes32[] currencyKeys) view returns (uint256[] snxIssuedDebts)
Visibility
external
State Mutability
view
currentDebt
¶
Details
Signature
currentDebt() view returns (uint256 debt, bool anyRateIsInvalid)
Visibility
external
State Mutability
view
currentSynthDebts
¶
Details
Signature
currentSynthDebts(bytes32[] currencyKeys) view returns (uint256[] debtValues, uint256 futuresDebt, uint256 excludedDebt, bool anyRateIsInvalid)
Visibility
external
State Mutability
view
debtSnapshotStaleTime
¶
Details
Signature
debtSnapshotStaleTime() view returns (uint256)
Visibility
external
State Mutability
view
excludedIssuedDebts
¶
Details
Signature
excludedIssuedDebts(bytes32[] currencyKeys) view returns (uint256[] excludedDebts)
Visibility
external
State Mutability
view
resolverAddressesRequired
¶
Details
Signature
resolverAddressesRequired() view returns (bytes32[] addresses)
Visibility
public
State Mutability
view
totalNonSnxBackedDebt
¶
Details
Signature
totalNonSnxBackedDebt() view returns (uint256 excludedDebt, bool isInvalid)
Visibility
external
State Mutability
view
Restricted Functions¶
importExcludedIssuedDebts
¶
Details
Signature
importExcludedIssuedDebts(contract IDebtCache prevDebtCache, contract IIssuer prevIssuer)
Visibility
external
State Mutability
``
Requires
Modifiers
Internal Functions¶
_cacheStale
¶
Details
Signature
_cacheStale(uint256 timestamp) view returns (bool)
Visibility
internal
State Mutability
view
_cachedSynthDebts
¶
Details
Signature
_cachedSynthDebts(bytes32[] currencyKeys) view returns (uint256[])
Visibility
internal
State Mutability
view
_currentDebt
¶
Details
Signature
_currentDebt() view returns (uint256 debt, bool anyRateIsInvalid)
Visibility
internal
State Mutability
view
_currentSynthDebts
¶
Details
Signature
_currentSynthDebts(bytes32[] currencyKeys) view returns (uint256[] snxIssuedDebts, uint256 _futuresDebt, uint256 _excludedDebt, bool anyRateIsInvalid)
Visibility
internal
State Mutability
view
_excludedIssuedDebts
¶
Details
Signature
_excludedIssuedDebts(bytes32[] currencyKeys) view returns (uint256[])
Visibility
internal
State Mutability
view
_issuedSynthValues
¶
Details
Signature
_issuedSynthValues(bytes32[] currencyKeys, uint256[] rates) view returns (uint256[] values)
Visibility
internal
State Mutability
view
_onlyDebtIssuer
¶
Details
Signature
_onlyDebtIssuer() view
Visibility
internal
State Mutability
view
Requires
_onlyIssuer
¶
Details
Signature
_onlyIssuer() view
Visibility
internal
State Mutability
view
Requires
_onlyIssuerOrExchanger
¶
Details
Signature
_onlyIssuerOrExchanger() view
Visibility
internal
State Mutability
view
Requires
_requireSystemActiveIfNotOwner
¶
Details
Signature
_requireSystemActiveIfNotOwner() view
Visibility
internal
State Mutability
view
_totalNonSnxBackedDebt
¶
Details
Signature
_totalNonSnxBackedDebt(bytes32[] currencyKeys, uint256[] rates, bool ratesAreInvalid) view returns (uint256 excludedDebt, bool isInvalid)
Visibility
internal
State Mutability
view
collateralManager
¶
Details
Signature
collateralManager() view returns (contract ICollateralManager)
Visibility
internal
State Mutability
view
dynamicSynthRedeemer
¶
Details
Signature
dynamicSynthRedeemer() view returns (contract IDynamicSynthRedeemer)
Visibility
internal
State Mutability
view
etherWrapper
¶
Details
Signature
etherWrapper() view returns (contract IEtherWrapper)
Visibility
internal
State Mutability
view
exchangeRates
¶
Details
Signature
exchangeRates() view returns (contract IExchangeRates)
Visibility
internal
State Mutability
view
exchanger
¶
Details
Signature
exchanger() view returns (contract IExchanger)
Visibility
internal
State Mutability
view
futuresMarketManager
¶
Details
Signature
futuresMarketManager() view returns (contract IFuturesMarketManager)
Visibility
internal
State Mutability
view
issuer
¶
Details
Signature
issuer() view returns (contract IIssuer)
Visibility
internal
State Mutability
view
systemStatus
¶
Details
Signature
systemStatus() view returns (contract ISystemStatus)
Visibility
internal
State Mutability
view
wrapperFactory
¶
Details
Signature
wrapperFactory() view returns (contract IWrapperFactory)
Visibility
internal
State Mutability
view
External Functions¶
purgeCachedSynthDebt
¶
Details
Signature
purgeCachedSynthDebt(bytes32 currencyKey)
Visibility
external
State Mutability
``
recordExcludedDebtChange
¶
Details
Signature
recordExcludedDebtChange(bytes32 currencyKey, int256 delta)
Visibility
external
State Mutability
``
takeDebtSnapshot
¶
Details
Signature
takeDebtSnapshot()
Visibility
external
State Mutability
``
updateCachedSynthDebtWithRate
¶
Details
Signature
updateCachedSynthDebtWithRate(bytes32 currencyKey, uint256 currencyRate)
Visibility
external
State Mutability
``
updateCachedSynthDebts
¶
Details
Signature
updateCachedSynthDebts(bytes32[] currencyKeys)
Visibility
external
State Mutability
``
updateCachedSynthDebtsWithRates
¶
Details
Signature
updateCachedSynthDebtsWithRates(bytes32[] currencyKeys, uint256[] currencyRates)
Visibility
external
State Mutability
``
updateCachedsUSDDebt
¶
Details
Signature
updateCachedsUSDDebt(int256 amount)
Visibility
external
State Mutability
``
updateDebtCacheValidity
¶
Details
Signature
updateDebtCacheValidity(bool currentlyInvalid)
Visibility
external
State Mutability
``