Skip to content

SystemSettingsLib

Description

Source: contracts/SystemSettingsLib.sol

Variables

MAX_ATOMIC_TWAP_WINDOW

Source

Type: uint256

MAX_ATOMIC_VOLATILITY_CONSIDERATION_WINDOW

Source

Type: uint256

MAX_ATOMIC_VOLUME_PER_BLOCK

Source

Type: uint256

MAX_CROSS_DOMAIN_GAS_LIMIT

Source

Type: uint256

MAX_EXCHANGE_FEE_RATE

Source

Type: uint256

MAX_FEE_PERIOD_DURATION

Source

Type: uint256

MAX_ISSUANCE_RATIO

Source

Type: uint256

MAX_LIQUIDATION_DELAY

Source

Type: uint256

MAX_LIQUIDATION_PENALTY

Source

Type: uint256

MAX_LIQUIDATION_RATIO

Source

Type: uint256

MAX_MINIMUM_STAKE_TIME

Source

Type: uint256

MAX_TARGET_THRESHOLD

Source

Type: uint256

MAX_WRAPPER_BURN_FEE_RATE

Source

Type: int256

MAX_WRAPPER_MINT_FEE_RATE

Source

Type: int256

MIN_ATOMIC_TWAP_WINDOW

Source

Type: uint256

MIN_ATOMIC_VOLATILITY_CONSIDERATION_WINDOW

Source

Type: uint256

MIN_CROSS_DOMAIN_GAS_LIMIT

Source

Type: uint256

MIN_FEE_PERIOD_DURATION

Source

Type: uint256

MIN_LIQUIDATION_DELAY

Source

Type: uint256

RATIO_FROM_TARGET_BUFFER

Source

Type: uint256

SETTINGS_CONTRACT_NAME

Source

Type: bytes32

Views

contractName

Source

Details

Signature

contractName() view returns (bytes32)

Visibility

external

State Mutability

view

External Functions

setAggregatorWarningFlags

Source

Details

Signature

setAggregatorWarningFlags(contract IFlexibleStorage flexibleStorage, bytes32 settingName, address _flags)

Visibility

external

State Mutability

``

Requires

setAtomicEquivalentForDexPricing

Source

Details

Signature

setAtomicEquivalentForDexPricing(contract IFlexibleStorage flexibleStorage, bytes32 settingName, bytes32 _currencyKey, address _equivalent)

Visibility

external

State Mutability

``

Requires

setAtomicExchangeFeeRate

Source

Details

Signature

setAtomicExchangeFeeRate(contract IFlexibleStorage flexibleStorage, bytes32 settingName, bytes32 _currencyKey, uint256 _exchangeFeeRate)

Visibility

external

State Mutability

``

Requires

setAtomicMaxVolumePerBlock

Source

Details

Signature

setAtomicMaxVolumePerBlock(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 _maxVolume)

Visibility

external

State Mutability

``

Requires

setAtomicTwapWindow

Source

Details

Signature

setAtomicTwapWindow(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 _window)

Visibility

external

State Mutability

``

Requires

setAtomicVolatilityConsiderationWindow

Source

Details

Signature

setAtomicVolatilityConsiderationWindow(contract IFlexibleStorage flexibleStorage, bytes32 settingName, bytes32 _currencyKey, uint256 _window)

Visibility

external

State Mutability

``

setAtomicVolatilityUpdateThreshold

Source

Details

Signature

setAtomicVolatilityUpdateThreshold(contract IFlexibleStorage flexibleStorage, bytes32 settingName, bytes32 _currencyKey, uint256 _threshold)

Visibility

external

State Mutability

``

setCollapseFeeRate

Source

Details

Signature

setCollapseFeeRate(contract IFlexibleStorage flexibleStorage, bytes32 settingName, address _collateral, uint256 _collapseFeeRate)

Visibility

external

State Mutability

``

setCrossChainSynthTransferEnabled

Source

Details

Signature

setCrossChainSynthTransferEnabled(contract IFlexibleStorage flexibleStorage, bytes32 settingName, bytes32 _currencyKey, uint256 _value)

Visibility

external

State Mutability

``

setCrossDomainMessageGasLimit

Source

Details

Signature

setCrossDomainMessageGasLimit(contract IFlexibleStorage flexibleStorage, bytes32 gasLimitSettings, uint256 crossDomainMessageGasLimit)

Visibility

external

State Mutability

``

Requires

setDebtSnapshotStaleTime

Source

Details

Signature

setDebtSnapshotStaleTime(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 _seconds)

Visibility

external

State Mutability

``

setEtherWrapperBurnFeeRate

Source

Details

Signature

setEtherWrapperBurnFeeRate(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 _rate)

Visibility

external

State Mutability

``

Requires

setEtherWrapperMaxETH

Source

Details

Signature

setEtherWrapperMaxETH(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 _maxETH)

Visibility

external

State Mutability

``

setEtherWrapperMintFeeRate

Source

Details

Signature

setEtherWrapperMintFeeRate(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 _rate)

Visibility

external

State Mutability

``

Requires

setExchangeFeeRateForSynths

Source

Details

Signature

setExchangeFeeRateForSynths(contract IFlexibleStorage flexibleStorage, bytes32 settingExchangeFeeRate, bytes32[] synthKeys, uint256[] exchangeFeeRates)

Visibility

external

State Mutability

``

Requires

setExchangeMaxDynamicFee

Source

Details

Signature

setExchangeMaxDynamicFee(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 maxFee)

Visibility

external

State Mutability

``

Requires

setFeePeriodDuration

Source

Details

Signature

setFeePeriodDuration(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 _feePeriodDuration)

Visibility

external

State Mutability

``

Requires

setFlagReward

Source

Details

Signature

setFlagReward(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 reward)

Visibility

external

State Mutability

``

setInteractionDelay

Source

Details

Signature

setInteractionDelay(contract IFlexibleStorage flexibleStorage, bytes32 settingName, address _collateral, uint256 _interactionDelay)

Visibility

external

State Mutability

``

Requires

setIssuanceRatio

Source

Details

Signature

setIssuanceRatio(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 ratio)

Visibility

external

State Mutability

``

Requires

setLiquidateReward

Source

Details

Signature

setLiquidateReward(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 reward)

Visibility

external

State Mutability

``

setLiquidationDelay

Source

Details

Signature

setLiquidationDelay(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 time)

Visibility

external

State Mutability

``

Requires

setLiquidationEscrowDuration

Source

Details

Signature

setLiquidationEscrowDuration(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 duration)

Visibility

external

State Mutability

``

setLiquidationPenalty

Source

Details

Signature

setLiquidationPenalty(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 penalty)

Visibility

external

State Mutability

``

Requires

setLiquidationRatio

Source

Details

Signature

setLiquidationRatio(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 _liquidationRatio, uint256 getSnxLiquidationPenalty, uint256 getIssuanceRatio)

Visibility

external

State Mutability

``

Requires

setMinimumStakeTime

Source

Details

Signature

setMinimumStakeTime(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 _seconds)

Visibility

external

State Mutability

``

Requires

setPriceDeviationThresholdFactor

Source

Details

Signature

setPriceDeviationThresholdFactor(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 _priceDeviationThresholdFactor)

Visibility

external

State Mutability

``

setPureChainlinkPriceForAtomicSwapsEnabled

Source

Details

Signature

setPureChainlinkPriceForAtomicSwapsEnabled(contract IFlexibleStorage flexibleStorage, bytes32 settingName, bytes32 _currencyKey, bool _enabled)

Visibility

external

State Mutability

``

setRateStalePeriod

Source

Details

Signature

setRateStalePeriod(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 period)

Visibility

external

State Mutability

``

setSelfLiquidationPenalty

Source

Details

Signature

setSelfLiquidationPenalty(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 penalty)

Visibility

external

State Mutability

``

Requires

setSnxLiquidationPenalty

Source

Details

Signature

setSnxLiquidationPenalty(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 penalty)

Visibility

external

State Mutability

``

Requires

setTargetThreshold

Source

Details

Signature

setTargetThreshold(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 percent) returns (uint256 threshold)

Visibility

external

State Mutability

``

Requires

setTradingRewardsEnabled

Source

Details

Signature

setTradingRewardsEnabled(contract IFlexibleStorage flexibleStorage, bytes32 settingName, bool _tradingRewardsEnabled)

Visibility

external

State Mutability

``

setWaitingPeriodSecs

Source

Details

Signature

setWaitingPeriodSecs(contract IFlexibleStorage flexibleStorage, bytes32 settingName, uint256 _waitingPeriodSecs)

Visibility

external

State Mutability

``

setWrapperBurnFeeRate

Source

Details

Signature

setWrapperBurnFeeRate(contract IFlexibleStorage flexibleStorage, bytes32 settingName, address _wrapper, int256 _rate, int256 getWrapperMintFeeRate)

Visibility

external

State Mutability

``

Requires

setWrapperMaxTokenAmount

Source

Details

Signature

setWrapperMaxTokenAmount(contract IFlexibleStorage flexibleStorage, bytes32 settingName, address _wrapper, uint256 _maxTokenAmount)

Visibility

external

State Mutability

``

setWrapperMintFeeRate

Source

Details

Signature

setWrapperMintFeeRate(contract IFlexibleStorage flexibleStorage, bytes32 settingName, address _wrapper, int256 _rate, int256 getWrapperBurnFeeRate)

Visibility

external

State Mutability

``

Requires