Skip to content

SystemSettings

Description

Source: contracts/SystemSettings.sol

Architecture

Libraries

Inheritance Graph

graph TD SystemSettings[SystemSettings] --> MixinSystemSettings[MixinSystemSettings] MixinSystemSettings[MixinSystemSettings] --> MixinResolver[MixinResolver] MixinResolver[MixinResolver] --> Owned[Owned]

Constants

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

MIN_FEE_PERIOD_DURATION

Source

Type: uint256

MIN_LIQUIDATION_DELAY

Source

Type: uint256

RATIO_FROM_TARGET_BUFFER

Source

Type: uint256

Constructor

constructor

Source

Details

Signature

(address _owner, address _resolver)

Visibility

public

State Mutability

nonpayable

Views

aggregatorWarningFlags

Source

Details

Signature

aggregatorWarningFlags() returns (address)

Visibility

external

State Mutability

view

exchangeFeeRate

Source

Details

Signature

exchangeFeeRate(bytes32 currencyKey) returns (uint256)

Visibility

external

State Mutability

view

feePeriodDuration

Source

Details

Signature

feePeriodDuration() returns (uint256)

Visibility

external

State Mutability

view

issuanceRatio

Source

Details

Signature

issuanceRatio() returns (uint256)

Visibility

external

State Mutability

view

liquidationDelay

Source

Details

Signature

liquidationDelay() returns (uint256)

Visibility

external

State Mutability

view

liquidationPenalty

Source

Details

Signature

liquidationPenalty() returns (uint256)

Visibility

external

State Mutability

view

liquidationRatio

Source

Details

Signature

liquidationRatio() returns (uint256)

Visibility

external

State Mutability

view

minimumStakeTime

Source

Details

Signature

minimumStakeTime() returns (uint256)

Visibility

external

State Mutability

view

priceDeviationThresholdFactor

Source

Details

Signature

priceDeviationThresholdFactor() returns (uint256)

Visibility

external

State Mutability

view

rateStalePeriod

Source

Details

Signature

rateStalePeriod() returns (uint256)

Visibility

external

State Mutability

view

targetThreshold

Source

Details

Signature

targetThreshold() returns (uint256)

Visibility

external

State Mutability

view

tradingRewardsEnabled

Source

Details

Signature

tradingRewardsEnabled() returns (bool)

Visibility

external

State Mutability

view

waitingPeriodSecs

Source

Details

Signature

waitingPeriodSecs() returns (uint256)

Visibility

external

State Mutability

view

Restricted Functions

setAggregatorWarningFlags

Source

Details

Signature

setAggregatorWarningFlags(address _flags)

Visibility

external

State Mutability

nonpayable

Requires

Modifiers

Emits

setExchangeFeeRateForSynths

Source

Details

Signature

setExchangeFeeRateForSynths(bytes32[] synthKeys, uint256[] exchangeFeeRates)

Visibility

external

State Mutability

nonpayable

Requires

Modifiers

setFeePeriodDuration

Source

Details

Signature

setFeePeriodDuration(uint256 _feePeriodDuration)

Visibility

external

State Mutability

nonpayable

Requires

Modifiers

Emits

setIssuanceRatio

Source

Details

Signature

setIssuanceRatio(uint256 _issuanceRatio)

Visibility

external

State Mutability

nonpayable

Requires

Modifiers

Emits

setLiquidationDelay

Source

Details

Signature

setLiquidationDelay(uint256 time)

Visibility

external

State Mutability

nonpayable

Requires

Modifiers

Emits

setLiquidationPenalty

Source

Details

Signature

setLiquidationPenalty(uint256 penalty)

Visibility

external

State Mutability

nonpayable

Requires

Modifiers

Emits

setLiquidationRatio

Source

Details

Signature

setLiquidationRatio(uint256 _liquidationRatio)

Visibility

external

State Mutability

nonpayable

Requires

Modifiers

Emits

setMinimumStakeTime

Source

Details

Signature

setMinimumStakeTime(uint256 _seconds)

Visibility

external

State Mutability

nonpayable

Requires

Modifiers

Emits

setPriceDeviationThresholdFactor

Source

Details

Signature

setPriceDeviationThresholdFactor(uint256 _priceDeviationThresholdFactor)

Visibility

external

State Mutability

nonpayable

Modifiers

Emits

setRateStalePeriod

Source

Details

Signature

setRateStalePeriod(uint256 period)

Visibility

external

State Mutability

nonpayable

Modifiers

Emits

setTargetThreshold

Source

Details

Signature

setTargetThreshold(uint256 _percent)

Visibility

external

State Mutability

nonpayable

Requires

Modifiers

Emits

setTradingRewardsEnabled

Source

Details

Signature

setTradingRewardsEnabled(bool _tradingRewardsEnabled)

Visibility

external

State Mutability

nonpayable

Modifiers

Emits

setWaitingPeriodSecs

Source

Details

Signature

setWaitingPeriodSecs(uint256 _waitingPeriodSecs)

Visibility

external

State Mutability

nonpayable

Modifiers

Emits

Events

AggregatorWarningFlagsUpdated

Source

Signature: AggregatorWarningFlagsUpdated(address flags)

ExchangeFeeUpdated

Source

Signature: ExchangeFeeUpdated(bytes32 synthKey, uint256 newExchangeFeeRate)

FeePeriodDurationUpdated

Source

Signature: FeePeriodDurationUpdated(uint256 newFeePeriodDuration)

IssuanceRatioUpdated

Source

Signature: IssuanceRatioUpdated(uint256 newRatio)

LiquidationDelayUpdated

Source

Signature: LiquidationDelayUpdated(uint256 newDelay)

LiquidationPenaltyUpdated

Source

Signature: LiquidationPenaltyUpdated(uint256 newPenalty)

LiquidationRatioUpdated

Source

Signature: LiquidationRatioUpdated(uint256 newRatio)

MinimumStakeTimeUpdated

Source

Signature: MinimumStakeTimeUpdated(uint256 minimumStakeTime)

PriceDeviationThresholdUpdated

Source

Signature: PriceDeviationThresholdUpdated(uint256 threshold)

RateStalePeriodUpdated

Source

Signature: RateStalePeriodUpdated(uint256 rateStalePeriod)

TargetThresholdUpdated

Source

Signature: TargetThresholdUpdated(uint256 newTargetThreshold)

TradingRewardsEnabled

Source

Signature: TradingRewardsEnabled(bool enabled)

WaitingPeriodSecsUpdated

Source

Signature: WaitingPeriodSecsUpdated(uint256 waitingPeriodSecs)