SystemSettingsLib¶
Description¶
Source: contracts/SystemSettingsLib.sol
Variables¶
MAX_ATOMIC_TWAP_WINDOW
¶
Type: uint256
MAX_ATOMIC_VOLATILITY_CONSIDERATION_WINDOW
¶
Type: uint256
MAX_ATOMIC_VOLUME_PER_BLOCK
¶
Type: uint256
MAX_CROSS_DOMAIN_GAS_LIMIT
¶
Type: uint256
MAX_EXCHANGE_FEE_RATE
¶
Type: uint256
MAX_FEE_PERIOD_DURATION
¶
Type: uint256
MAX_ISSUANCE_RATIO
¶
Type: uint256
MAX_LIQUIDATION_DELAY
¶
Type: uint256
MAX_LIQUIDATION_PENALTY
¶
Type: uint256
MAX_LIQUIDATION_RATIO
¶
Type: uint256
MAX_MINIMUM_STAKE_TIME
¶
Type: uint256
MAX_TARGET_THRESHOLD
¶
Type: uint256
MAX_WRAPPER_BURN_FEE_RATE
¶
Type: int256
MAX_WRAPPER_MINT_FEE_RATE
¶
Type: int256
MIN_ATOMIC_TWAP_WINDOW
¶
Type: uint256
MIN_ATOMIC_VOLATILITY_CONSIDERATION_WINDOW
¶
Type: uint256
MIN_CROSS_DOMAIN_GAS_LIMIT
¶
Type: uint256
MIN_FEE_PERIOD_DURATION
¶
Type: uint256
MIN_LIQUIDATION_DELAY
¶
Type: uint256
RATIO_FROM_TARGET_BUFFER
¶
Type: uint256
SETTINGS_CONTRACT_NAME
¶
Type: bytes32
Views¶
contractName
¶
Details
Signature
contractName() view returns (bytes32)
Visibility
external
State Mutability
view
External Functions¶
setAggregatorWarningFlags
¶
Details
Signature
setAggregatorWarningFlags(contract IFlexibleStorage flexibleStorage, bytes32 settingName, address _flags)
Visibility
external
State Mutability
``
Requires
setAtomicEquivalentForDexPricing
¶
Details
Signature
setAtomicEquivalentForDexPricing(contract IFlexibleStorage flexibleStorage, bytes32 settingName, bytes32 _currencyKey, address _equivalent)
Visibility
external
State Mutability
``
Requires
setAtomicExchangeFeeRate
¶
Details
Signature
setAtomicExchangeFeeRate(contract IFlexibleStorage flexibleStorage, bytes32 settingName, bytes32 _currencyKey, uint256 _exchangeFeeRate)
Visibility
external
State Mutability
``
Requires
setAtomicMaxVolumePerBlock
¶
Details
Signature
setAtomicMaxVolumePerBlock(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 _maxVolume)
Visibility
external
State Mutability
``
Requires
setAtomicTwapWindow
¶
Details
Signature
setAtomicTwapWindow(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 _window)
Visibility
external
State Mutability
``
Requires
setAtomicVolatilityConsiderationWindow
¶
Details
Signature
setAtomicVolatilityConsiderationWindow(contract IFlexibleStorage flexibleStorage, bytes32 settingName, bytes32 _currencyKey, uint256 _window)
Visibility
external
State Mutability
``
setAtomicVolatilityUpdateThreshold
¶
Details
Signature
setAtomicVolatilityUpdateThreshold(contract IFlexibleStorage flexibleStorage, bytes32 settingName, bytes32 _currencyKey, uint256 _threshold)
Visibility
external
State Mutability
``
setCollapseFeeRate
¶
Details
Signature
setCollapseFeeRate(contract IFlexibleStorage flexibleStorage, bytes32 settingName, address _collateral, uint256 _collapseFeeRate)
Visibility
external
State Mutability
``
setCrossChainSynthTransferEnabled
¶
Details
Signature
setCrossChainSynthTransferEnabled(contract IFlexibleStorage flexibleStorage, bytes32 settingName, bytes32 _currencyKey, uint256 _value)
Visibility
external
State Mutability
``
setCrossDomainMessageGasLimit
¶
Details
Signature
setCrossDomainMessageGasLimit(contract IFlexibleStorage flexibleStorage, bytes32 gasLimitSettings, uint256 crossDomainMessageGasLimit)
Visibility
external
State Mutability
``
Requires
setDebtSnapshotStaleTime
¶
Details
Signature
setDebtSnapshotStaleTime(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 _seconds)
Visibility
external
State Mutability
``
setEtherWrapperBurnFeeRate
¶
Details
Signature
setEtherWrapperBurnFeeRate(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 _rate)
Visibility
external
State Mutability
``
Requires
setEtherWrapperMaxETH
¶
Details
Signature
setEtherWrapperMaxETH(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 _maxETH)
Visibility
external
State Mutability
``
setEtherWrapperMintFeeRate
¶
Details
Signature
setEtherWrapperMintFeeRate(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 _rate)
Visibility
external
State Mutability
``
Requires
setExchangeFeeRateForSynths
¶
Details
Signature
setExchangeFeeRateForSynths(contract IFlexibleStorage flexibleStorage, bytes32 settingExchangeFeeRate, bytes32[] synthKeys, uint256[] exchangeFeeRates)
Visibility
external
State Mutability
``
Requires
setExchangeMaxDynamicFee
¶
Details
Signature
setExchangeMaxDynamicFee(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 maxFee)
Visibility
external
State Mutability
``
Requires
setFeePeriodDuration
¶
Details
Signature
setFeePeriodDuration(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 _feePeriodDuration)
Visibility
external
State Mutability
``
Requires
setFlagReward
¶
Details
Signature
setFlagReward(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 reward)
Visibility
external
State Mutability
``
setInteractionDelay
¶
Details
Signature
setInteractionDelay(contract IFlexibleStorage flexibleStorage, bytes32 settingName, address _collateral, uint256 _interactionDelay)
Visibility
external
State Mutability
``
Requires
setIssuanceRatio
¶
Details
Signature
setIssuanceRatio(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 ratio)
Visibility
external
State Mutability
``
Requires
setLiquidateReward
¶
Details
Signature
setLiquidateReward(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 reward)
Visibility
external
State Mutability
``
setLiquidationDelay
¶
Details
Signature
setLiquidationDelay(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 time)
Visibility
external
State Mutability
``
Requires
setLiquidationEscrowDuration
¶
Details
Signature
setLiquidationEscrowDuration(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 duration)
Visibility
external
State Mutability
``
setLiquidationPenalty
¶
Details
Signature
setLiquidationPenalty(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 penalty)
Visibility
external
State Mutability
``
Requires
setLiquidationRatio
¶
Details
Signature
setLiquidationRatio(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 _liquidationRatio, uint256 getSnxLiquidationPenalty, uint256 getIssuanceRatio)
Visibility
external
State Mutability
``
Requires
setMinimumStakeTime
¶
Details
Signature
setMinimumStakeTime(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 _seconds)
Visibility
external
State Mutability
``
Requires
setPriceDeviationThresholdFactor
¶
Details
Signature
setPriceDeviationThresholdFactor(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 _priceDeviationThresholdFactor)
Visibility
external
State Mutability
``
setPureChainlinkPriceForAtomicSwapsEnabled
¶
Details
Signature
setPureChainlinkPriceForAtomicSwapsEnabled(contract IFlexibleStorage flexibleStorage, bytes32 settingName, bytes32 _currencyKey, bool _enabled)
Visibility
external
State Mutability
``
setRateStalePeriod
¶
Details
Signature
setRateStalePeriod(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 period)
Visibility
external
State Mutability
``
setSelfLiquidationPenalty
¶
Details
Signature
setSelfLiquidationPenalty(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 penalty)
Visibility
external
State Mutability
``
Requires
setSnxLiquidationPenalty
¶
Details
Signature
setSnxLiquidationPenalty(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 penalty)
Visibility
external
State Mutability
``
Requires
setTargetThreshold
¶
Details
Signature
setTargetThreshold(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 percent) returns (uint256 threshold)
Visibility
external
State Mutability
``
Requires
setTradingRewardsEnabled
¶
Details
Signature
setTradingRewardsEnabled(contract IFlexibleStorage flexibleStorage, bytes32 settingName, bool _tradingRewardsEnabled)
Visibility
external
State Mutability
``
setWaitingPeriodSecs
¶
Details
Signature
setWaitingPeriodSecs(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 _waitingPeriodSecs)
Visibility
external
State Mutability
``
setWrapperBurnFeeRate
¶
Details
Signature
setWrapperBurnFeeRate(contract IFlexibleStorage flexibleStorage, bytes32 settingName, address _wrapper, int256 _rate, int256 getWrapperMintFeeRate)
Visibility
external
State Mutability
``
Requires
setWrapperMaxTokenAmount
¶
Details
Signature
setWrapperMaxTokenAmount(contract IFlexibleStorage flexibleStorage, bytes32 settingName, address _wrapper, uint256 _maxTokenAmount)
Visibility
external
State Mutability
``
setWrapperMintFeeRate
¶
Details
Signature
setWrapperMintFeeRate(contract IFlexibleStorage flexibleStorage, bytes32 settingName, address _wrapper, int256 _rate, int256 getWrapperBurnFeeRate)
Visibility
external
State Mutability
``
Requires