SystemSettings¶
Description¶
Source: contracts/SystemSettings.sol
Constructor¶
constructor
¶
Details
Signature
constructor(address _owner, address _resolver)
Visibility
public
State Mutability
``
Requires
Views¶
CONTRACT_NAME
¶
Details
Signature
CONTRACT_NAME() view returns (bytes32)
Visibility
external
State Mutability
view
aggregatorWarningFlags
¶
Details
Signature
aggregatorWarningFlags() view returns (address)
Visibility
external
State Mutability
view
atomicEquivalentForDexPricing
¶
Details
Signature
atomicEquivalentForDexPricing(bytes32 currencyKey) view returns (address)
Visibility
external
State Mutability
view
atomicExchangeFeeRate
¶
Details
Signature
atomicExchangeFeeRate(bytes32 currencyKey) view returns (uint256)
Visibility
external
State Mutability
view
atomicMaxVolumePerBlock
¶
Details
Signature
atomicMaxVolumePerBlock() view returns (uint256)
Visibility
external
State Mutability
view
atomicTwapWindow
¶
Details
Signature
atomicTwapWindow() view returns (uint256)
Visibility
external
State Mutability
view
atomicVolatilityConsiderationWindow
¶
Details
Signature
atomicVolatilityConsiderationWindow(bytes32 currencyKey) view returns (uint256)
Visibility
external
State Mutability
view
atomicVolatilityUpdateThreshold
¶
Details
Signature
atomicVolatilityUpdateThreshold(bytes32 currencyKey) view returns (uint256)
Visibility
external
State Mutability
view
collapseFeeRate
¶
Details
Signature
collapseFeeRate(address collateral) view returns (uint256)
Visibility
external
State Mutability
view
crossChainSynthTransferEnabled
¶
Details
Signature
crossChainSynthTransferEnabled(bytes32 currencyKey) view returns (uint256)
Visibility
external
State Mutability
view
crossDomainMessageGasLimit
¶
Details
Signature
crossDomainMessageGasLimit(enum MixinSystemSettings.CrossDomainMessageGasLimits gasLimitType) view returns (uint256)
Visibility
external
State Mutability
view
debtSnapshotStaleTime
¶
Details
Signature
debtSnapshotStaleTime() view returns (uint256)
Visibility
external
State Mutability
view
etherWrapperBurnFeeRate
¶
Details
Signature
etherWrapperBurnFeeRate() view returns (uint256)
Visibility
external
State Mutability
view
etherWrapperMaxETH
¶
Details
Signature
etherWrapperMaxETH() view returns (uint256)
Visibility
external
State Mutability
view
etherWrapperMintFeeRate
¶
Details
Signature
etherWrapperMintFeeRate() view returns (uint256)
Visibility
external
State Mutability
view
exchangeDynamicFeeRounds
¶
Details
Signature
exchangeDynamicFeeRounds() view returns (uint256)
Visibility
external
State Mutability
view
exchangeDynamicFeeThreshold
¶
Details
Signature
exchangeDynamicFeeThreshold() view returns (uint256)
Visibility
external
State Mutability
view
exchangeDynamicFeeWeightDecay
¶
Details
Signature
exchangeDynamicFeeWeightDecay() view returns (uint256)
Visibility
external
State Mutability
view
exchangeFeeRate
¶
Details
Signature
exchangeFeeRate(bytes32 currencyKey) view returns (uint256)
Visibility
external
State Mutability
view
exchangeMaxDynamicFee
¶
Details
Signature
exchangeMaxDynamicFee() view returns (uint256)
Visibility
external
State Mutability
view
feePeriodDuration
¶
Details
Signature
feePeriodDuration() view returns (uint256)
Visibility
external
State Mutability
view
flagReward
¶
Details
Signature
flagReward() view returns (uint256)
Visibility
external
State Mutability
view
interactionDelay
¶
Details
Signature
interactionDelay(address collateral) view returns (uint256)
Visibility
external
State Mutability
view
issuanceRatio
¶
Details
Signature
issuanceRatio() view returns (uint256)
Visibility
external
State Mutability
view
liquidateReward
¶
Details
Signature
liquidateReward() view returns (uint256)
Visibility
external
State Mutability
view
liquidationDelay
¶
Details
Signature
liquidationDelay() view returns (uint256)
Visibility
external
State Mutability
view
liquidationEscrowDuration
¶
Details
Signature
liquidationEscrowDuration() view returns (uint256)
Visibility
external
State Mutability
view
liquidationPenalty
¶
Details
Signature
liquidationPenalty() view returns (uint256)
Visibility
external
State Mutability
view
liquidationRatio
¶
Details
Signature
liquidationRatio() view returns (uint256)
Visibility
external
State Mutability
view
minimumStakeTime
¶
Details
Signature
minimumStakeTime() view returns (uint256)
Visibility
external
State Mutability
view
priceDeviationThresholdFactor
¶
Details
Signature
priceDeviationThresholdFactor() view returns (uint256)
Visibility
external
State Mutability
view
pureChainlinkPriceForAtomicSwapsEnabled
¶
Details
Signature
pureChainlinkPriceForAtomicSwapsEnabled(bytes32 currencyKey) view returns (bool)
Visibility
external
State Mutability
view
rateStalePeriod
¶
Details
Signature
rateStalePeriod() view returns (uint256)
Visibility
external
State Mutability
view
selfLiquidationPenalty
¶
Details
Signature
selfLiquidationPenalty() view returns (uint256)
Visibility
external
State Mutability
view
snxLiquidationPenalty
¶
Details
Signature
snxLiquidationPenalty() view returns (uint256)
Visibility
external
State Mutability
view
targetThreshold
¶
Details
Signature
targetThreshold() view returns (uint256)
Visibility
external
State Mutability
view
tradingRewardsEnabled
¶
Details
Signature
tradingRewardsEnabled() view returns (bool)
Visibility
external
State Mutability
view
waitingPeriodSecs
¶
Details
Signature
waitingPeriodSecs() view returns (uint256)
Visibility
external
State Mutability
view
wrapperBurnFeeRate
¶
Details
Signature
wrapperBurnFeeRate(address wrapper) view returns (int256)
Visibility
external
State Mutability
view
wrapperMaxTokenAmount
¶
Details
Signature
wrapperMaxTokenAmount(address wrapper) view returns (uint256)
Visibility
external
State Mutability
view
wrapperMintFeeRate
¶
Details
Signature
wrapperMintFeeRate(address wrapper) view returns (int256)
Visibility
external
State Mutability
view
Restricted Functions¶
setAggregatorWarningFlags
¶
Details
Signature
setAggregatorWarningFlags(address _flags)
Visibility
external
State Mutability
``
Modifiers
Emits
setAtomicEquivalentForDexPricing
¶
Details
Signature
setAtomicEquivalentForDexPricing(bytes32 _currencyKey, address _equivalent)
Visibility
external
State Mutability
``
Modifiers
Emits
setAtomicExchangeFeeRate
¶
Details
Signature
setAtomicExchangeFeeRate(bytes32 _currencyKey, uint256 _exchangeFeeRate)
Visibility
external
State Mutability
``
Modifiers
Emits
setAtomicMaxVolumePerBlock
¶
Details
Signature
setAtomicMaxVolumePerBlock(uint256 _maxVolume)
Visibility
external
State Mutability
``
Modifiers
Emits
setAtomicTwapWindow
¶
Details
Signature
setAtomicTwapWindow(uint256 _window)
Visibility
external
State Mutability
``
Modifiers
Emits
setAtomicVolatilityConsiderationWindow
¶
Details
Signature
setAtomicVolatilityConsiderationWindow(bytes32 _currencyKey, uint256 _window)
Visibility
external
State Mutability
``
Modifiers
Emits
setAtomicVolatilityUpdateThreshold
¶
Details
Signature
setAtomicVolatilityUpdateThreshold(bytes32 _currencyKey, uint256 _threshold)
Visibility
external
State Mutability
``
Modifiers
Emits
setCollapseFeeRate
¶
Details
Signature
setCollapseFeeRate(address _collateral, uint256 _collapseFeeRate)
Visibility
external
State Mutability
``
Modifiers
Emits
setCrossChainSynthTransferEnabled
¶
Details
Signature
setCrossChainSynthTransferEnabled(bytes32 _currencyKey, uint256 _value)
Visibility
external
State Mutability
``
Modifiers
Emits
setCrossDomainMessageGasLimit
¶
Details
Signature
setCrossDomainMessageGasLimit(enum MixinSystemSettings.CrossDomainMessageGasLimits _gasLimitType, uint256 _crossDomainMessageGasLimit)
Visibility
external
State Mutability
``
Modifiers
Emits
setDebtSnapshotStaleTime
¶
Details
Signature
setDebtSnapshotStaleTime(uint256 _seconds)
Visibility
external
State Mutability
``
Modifiers
Emits
setEtherWrapperBurnFeeRate
¶
Details
Signature
setEtherWrapperBurnFeeRate(uint256 _rate)
Visibility
external
State Mutability
``
Modifiers
Emits
setEtherWrapperMaxETH
¶
Details
Signature
setEtherWrapperMaxETH(uint256 _maxETH)
Visibility
external
State Mutability
``
Modifiers
Emits
setEtherWrapperMintFeeRate
¶
Details
Signature
setEtherWrapperMintFeeRate(uint256 _rate)
Visibility
external
State Mutability
``
Modifiers
Emits
setExchangeDynamicFeeRounds
¶
Details
Signature
setExchangeDynamicFeeRounds(uint256 rounds)
Visibility
external
State Mutability
``
Modifiers
Emits
setExchangeDynamicFeeThreshold
¶
Details
Signature
setExchangeDynamicFeeThreshold(uint256 threshold)
Visibility
external
State Mutability
``
Requires
Modifiers
Emits
setExchangeDynamicFeeWeightDecay
¶
Details
Signature
setExchangeDynamicFeeWeightDecay(uint256 weightDecay)
Visibility
external
State Mutability
``
Requires
Modifiers
Emits
setExchangeFeeRateForSynths
¶
Details
Signature
setExchangeFeeRateForSynths(bytes32[] synthKeys, uint256[] exchangeFeeRates)
Visibility
external
State Mutability
``
Modifiers
setExchangeMaxDynamicFee
¶
Details
Signature
setExchangeMaxDynamicFee(uint256 maxFee)
Visibility
external
State Mutability
``
Modifiers
Emits
setFeePeriodDuration
¶
Details
Signature
setFeePeriodDuration(uint256 _feePeriodDuration)
Visibility
external
State Mutability
``
Modifiers
Emits
setFlagReward
¶
Details
Signature
setFlagReward(uint256 reward)
Visibility
external
State Mutability
``
Modifiers
Emits
setInteractionDelay
¶
Details
Signature
setInteractionDelay(address _collateral, uint256 _interactionDelay)
Visibility
external
State Mutability
``
Modifiers
Emits
setIssuanceRatio
¶
Details
Signature
setIssuanceRatio(uint256 ratio)
Visibility
external
State Mutability
``
Modifiers
Emits
setLiquidateReward
¶
Details
Signature
setLiquidateReward(uint256 reward)
Visibility
external
State Mutability
``
Modifiers
Emits
setLiquidationDelay
¶
Details
Signature
setLiquidationDelay(uint256 time)
Visibility
external
State Mutability
``
Modifiers
Emits
setLiquidationEscrowDuration
¶
Details
Signature
setLiquidationEscrowDuration(uint256 duration)
Visibility
external
State Mutability
``
Modifiers
Emits
setLiquidationPenalty
¶
Details
Signature
setLiquidationPenalty(uint256 penalty)
Visibility
external
State Mutability
``
Modifiers
Emits
setLiquidationRatio
¶
Details
Signature
setLiquidationRatio(uint256 _liquidationRatio)
Visibility
external
State Mutability
``
Modifiers
Emits
setMinimumStakeTime
¶
Details
Signature
setMinimumStakeTime(uint256 _seconds)
Visibility
external
State Mutability
``
Modifiers
Emits
setPriceDeviationThresholdFactor
¶
Details
Signature
setPriceDeviationThresholdFactor(uint256 _priceDeviationThresholdFactor)
Visibility
external
State Mutability
``
Modifiers
Emits
setPureChainlinkPriceForAtomicSwapsEnabled
¶
Details
Signature
setPureChainlinkPriceForAtomicSwapsEnabled(bytes32 _currencyKey, bool _enabled)
Visibility
external
State Mutability
``
Modifiers
Emits
setRateStalePeriod
¶
Details
Signature
setRateStalePeriod(uint256 period)
Visibility
external
State Mutability
``
Modifiers
Emits
setSelfLiquidationPenalty
¶
Details
Signature
setSelfLiquidationPenalty(uint256 penalty)
Visibility
external
State Mutability
``
Modifiers
Emits
setSnxLiquidationPenalty
¶
Details
Signature
setSnxLiquidationPenalty(uint256 penalty)
Visibility
external
State Mutability
``
Modifiers
Emits
setTargetThreshold
¶
Details
Signature
setTargetThreshold(uint256 percent)
Visibility
external
State Mutability
``
Modifiers
Emits
setTradingRewardsEnabled
¶
Details
Signature
setTradingRewardsEnabled(bool _tradingRewardsEnabled)
Visibility
external
State Mutability
``
Modifiers
Emits
setWaitingPeriodSecs
¶
Details
Signature
setWaitingPeriodSecs(uint256 _waitingPeriodSecs)
Visibility
external
State Mutability
``
Modifiers
Emits
setWrapperBurnFeeRate
¶
Details
Signature
setWrapperBurnFeeRate(address _wrapper, int256 _rate)
Visibility
external
State Mutability
``
Modifiers
Emits
setWrapperMaxTokenAmount
¶
Details
Signature
setWrapperMaxTokenAmount(address _wrapper, uint256 _maxTokenAmount)
Visibility
external
State Mutability
``
Modifiers
Emits
setWrapperMintFeeRate
¶
Details
Signature
setWrapperMintFeeRate(address _wrapper, int256 _rate)
Visibility
external
State Mutability
``
Modifiers
Emits
Events¶
AggregatorWarningFlagsUpdated
¶
Signature: AggregatorWarningFlagsUpdated(address flags)
AtomicEquivalentForDexPricingUpdated
¶
Signature: AtomicEquivalentForDexPricingUpdated(bytes32 synthKey, address equivalent)
AtomicExchangeFeeUpdated
¶
Signature: AtomicExchangeFeeUpdated(bytes32 synthKey, uint256 newExchangeFeeRate)
AtomicMaxVolumePerBlockUpdated
¶
Signature: AtomicMaxVolumePerBlockUpdated(uint256 newMaxVolume)
AtomicTwapWindowUpdated
¶
Signature: AtomicTwapWindowUpdated(uint256 newWindow)
AtomicVolatilityConsiderationWindowUpdated
¶
Signature: AtomicVolatilityConsiderationWindowUpdated(bytes32 synthKey, uint256 newVolatilityConsiderationWindow)
AtomicVolatilityUpdateThresholdUpdated
¶
Signature: AtomicVolatilityUpdateThresholdUpdated(bytes32 synthKey, uint256 newVolatilityUpdateThreshold)
CollapseFeeRateUpdated
¶
Signature: CollapseFeeRateUpdated(uint256 collapseFeeRate)
CrossChainSynthTransferEnabledUpdated
¶
Signature: CrossChainSynthTransferEnabledUpdated(bytes32 synthKey, uint256 value)
CrossDomainMessageGasLimitChanged
¶
Signature: CrossDomainMessageGasLimitChanged(enum MixinSystemSettings.CrossDomainMessageGasLimits gasLimitType, uint256 newLimit)
DebtSnapshotStaleTimeUpdated
¶
Signature: DebtSnapshotStaleTimeUpdated(uint256 debtSnapshotStaleTime)
EtherWrapperBurnFeeRateUpdated
¶
Signature: EtherWrapperBurnFeeRateUpdated(uint256 rate)
EtherWrapperMaxETHUpdated
¶
Signature: EtherWrapperMaxETHUpdated(uint256 maxETH)
EtherWrapperMintFeeRateUpdated
¶
Signature: EtherWrapperMintFeeRateUpdated(uint256 rate)
ExchangeDynamicFeeRoundsUpdated
¶
Signature: ExchangeDynamicFeeRoundsUpdated(uint256 dynamicFeeRounds)
ExchangeDynamicFeeThresholdUpdated
¶
Signature: ExchangeDynamicFeeThresholdUpdated(uint256 dynamicFeeThreshold)
ExchangeDynamicFeeWeightDecayUpdated
¶
Signature: ExchangeDynamicFeeWeightDecayUpdated(uint256 dynamicFeeWeightDecay)
ExchangeFeeUpdated
¶
Signature: ExchangeFeeUpdated(bytes32 synthKey, uint256 newExchangeFeeRate)
ExchangeMaxDynamicFeeUpdated
¶
Signature: ExchangeMaxDynamicFeeUpdated(uint256 maxDynamicFee)
FeePeriodDurationUpdated
¶
Signature: FeePeriodDurationUpdated(uint256 newFeePeriodDuration)
FlagRewardUpdated
¶
Signature: FlagRewardUpdated(uint256 newReward)
InteractionDelayUpdated
¶
Signature: InteractionDelayUpdated(uint256 interactionDelay)
IssuanceRatioUpdated
¶
Signature: IssuanceRatioUpdated(uint256 newRatio)
LiquidateRewardUpdated
¶
Signature: LiquidateRewardUpdated(uint256 newReward)
LiquidationDelayUpdated
¶
Signature: LiquidationDelayUpdated(uint256 newDelay)
LiquidationEscrowDurationUpdated
¶
Signature: LiquidationEscrowDurationUpdated(uint256 newDuration)
LiquidationPenaltyUpdated
¶
Signature: LiquidationPenaltyUpdated(uint256 newPenalty)
LiquidationRatioUpdated
¶
Signature: LiquidationRatioUpdated(uint256 newRatio)
MinimumStakeTimeUpdated
¶
Signature: MinimumStakeTimeUpdated(uint256 minimumStakeTime)
PriceDeviationThresholdUpdated
¶
Signature: PriceDeviationThresholdUpdated(uint256 threshold)
PureChainlinkPriceForAtomicSwapsEnabledUpdated
¶
Signature: PureChainlinkPriceForAtomicSwapsEnabledUpdated(bytes32 synthKey, bool enabled)
RateStalePeriodUpdated
¶
Signature: RateStalePeriodUpdated(uint256 rateStalePeriod)
SelfLiquidationPenaltyUpdated
¶
Signature: SelfLiquidationPenaltyUpdated(uint256 newPenalty)
SnxLiquidationPenaltyUpdated
¶
Signature: SnxLiquidationPenaltyUpdated(uint256 newPenalty)
TargetThresholdUpdated
¶
Signature: TargetThresholdUpdated(uint256 newTargetThreshold)
TradingRewardsEnabled
¶
Signature: TradingRewardsEnabled(bool enabled)
WaitingPeriodSecsUpdated
¶
Signature: WaitingPeriodSecsUpdated(uint256 waitingPeriodSecs)
WrapperBurnFeeRateUpdated
¶
Signature: WrapperBurnFeeRateUpdated(address wrapper, int256 rate)
WrapperMaxTokenAmountUpdated
¶
Signature: WrapperMaxTokenAmountUpdated(address wrapper, uint256 maxTokenAmount)
WrapperMintFeeRateUpdated
¶
Signature: WrapperMintFeeRateUpdated(address wrapper, int256 rate)