Skip to content

PerpsV2MarketSettings

Description

Source: contracts/PerpsV2MarketSettings.sol

Constructor

constructor

Source

Details

Signature

constructor(address _owner, address _resolver)

Visibility

public

State Mutability

``

Views

delayedOrderConfirmWindow

Source

Details

Signature

delayedOrderConfirmWindow(bytes32 _marketKey) view returns (uint256)

Visibility

public

State Mutability

view

liquidationBufferRatio

Source

Details

Signature

liquidationBufferRatio() view returns (uint256)

Visibility

external

State Mutability

view

liquidationFeeRatio

Source

Details

Signature

liquidationFeeRatio() view returns (uint256)

Visibility

external

State Mutability

view

liquidationPremiumMultiplier

Source

Details

Signature

liquidationPremiumMultiplier(bytes32 _marketKey) view returns (uint256)

Visibility

public

State Mutability

view

makerFee

Source

Details

Signature

makerFee(bytes32 _marketKey) view returns (uint256)

Visibility

public

State Mutability

view

makerFeeDelayedOrder

Source

Details

Signature

makerFeeDelayedOrder(bytes32 _marketKey) view returns (uint256)

Visibility

public

State Mutability

view

makerFeeOffchainDelayedOrder

Source

Details

Signature

makerFeeOffchainDelayedOrder(bytes32 _marketKey) view returns (uint256)

Visibility

public

State Mutability

view

maxDelayTimeDelta

Source

Details

Signature

maxDelayTimeDelta(bytes32 _marketKey) view returns (uint256)

Visibility

public

State Mutability

view

maxFundingVelocity

Source

Details

Signature

maxFundingVelocity(bytes32 _marketKey) view returns (uint256)

Visibility

public

State Mutability

view

maxKeeperFee

Source

Details

Signature

maxKeeperFee() view returns (uint256)

Visibility

external

State Mutability

view

maxLeverage

Source

Details

Signature

maxLeverage(bytes32 _marketKey) view returns (uint256)

Visibility

public

State Mutability

view

maxMarketValue

Source

Details

Signature

maxMarketValue(bytes32 _marketKey) view returns (uint256)

Visibility

public

State Mutability

view

minDelayTimeDelta

Source

Details

Signature

minDelayTimeDelta(bytes32 _marketKey) view returns (uint256)

Visibility

public

State Mutability

view

minInitialMargin

Source

Details

Signature

minInitialMargin() view returns (uint256)

Visibility

external

State Mutability

view

minKeeperFee

Source

Details

Signature

minKeeperFee() view returns (uint256)

Visibility

external

State Mutability

view

nextPriceConfirmWindow

Source

Details

Signature

nextPriceConfirmWindow(bytes32 _marketKey) view returns (uint256)

Visibility

public

State Mutability

view

offchainDelayedOrderMaxAge

Source

Details

Signature

offchainDelayedOrderMaxAge(bytes32 _marketKey) view returns (uint256)

Visibility

public

State Mutability

view

offchainDelayedOrderMinAge

Source

Details

Signature

offchainDelayedOrderMinAge(bytes32 _marketKey) view returns (uint256)

Visibility

public

State Mutability

view

offchainMarketKey

Source

Details

Signature

offchainMarketKey(bytes32 _marketKey) view returns (bytes32)

Visibility

public

State Mutability

view

offchainPriceDivergence

Source

Details

Signature

offchainPriceDivergence(bytes32 _marketKey) view returns (uint256)

Visibility

public

State Mutability

view

overrideCommitFee

Source

Details

Signature

overrideCommitFee(bytes32 _marketKey) view returns (uint256)

Visibility

external

State Mutability

view

parameters

Source

Details

Signature

parameters(bytes32 _marketKey) view returns (struct IPerpsV2MarketSettings.Parameters)

Visibility

external

State Mutability

view

resolverAddressesRequired

Source

Details

Signature

resolverAddressesRequired() view returns (bytes32[] addresses)

Visibility

public

State Mutability

view

skewScale

Source

Details

Signature

skewScale(bytes32 _marketKey) view returns (uint256)

Visibility

public

State Mutability

view

takerFee

Source

Details

Signature

takerFee(bytes32 _marketKey) view returns (uint256)

Visibility

external

State Mutability

view

takerFeeDelayedOrder

Source

Details

Signature

takerFeeDelayedOrder(bytes32 _marketKey) view returns (uint256)

Visibility

external

State Mutability

view

takerFeeOffchainDelayedOrder

Source

Details

Signature

takerFeeOffchainDelayedOrder(bytes32 _marketKey) view returns (uint256)

Visibility

external

State Mutability

view

Restricted Functions

setDelayedOrderConfirmWindow

Source

Details

Signature

setDelayedOrderConfirmWindow(bytes32 _marketKey, uint256 _delayedOrderConfirmWindow)

Visibility

public

State Mutability

``

Modifiers

setLiquidationBufferRatio

Source

Details

Signature

setLiquidationBufferRatio(uint256 _ratio)

Visibility

external

State Mutability

``

Modifiers

Emits

setLiquidationFeeRatio

Source

Details

Signature

setLiquidationFeeRatio(uint256 _ratio)

Visibility

external

State Mutability

``

Modifiers

Emits

setLiquidationPremiumMultiplier

Source

Details

Signature

setLiquidationPremiumMultiplier(bytes32 _marketKey, uint256 _liquidationPremiumMultiplier)

Visibility

public

State Mutability

``

Requires

Modifiers

setMakerFee

Source

Details

Signature

setMakerFee(bytes32 _marketKey, uint256 _makerFee)

Visibility

public

State Mutability

``

Requires

Modifiers

setMakerFeeDelayedOrder

Source

Details

Signature

setMakerFeeDelayedOrder(bytes32 _marketKey, uint256 _makerFeeDelayedOrder)

Visibility

public

State Mutability

``

Requires

Modifiers

setMakerFeeOffchainDelayedOrder

Source

Details

Signature

setMakerFeeOffchainDelayedOrder(bytes32 _marketKey, uint256 _makerFeeOffchainDelayedOrder)

Visibility

public

State Mutability

``

Requires

Modifiers

setMaxDelayTimeDelta

Source

Details

Signature

setMaxDelayTimeDelta(bytes32 _marketKey, uint256 _maxDelayTimeDelta)

Visibility

public

State Mutability

``

Modifiers

setMaxFundingVelocity

Source

Details

Signature

setMaxFundingVelocity(bytes32 _marketKey, uint256 _maxFundingVelocity)

Visibility

public

State Mutability

``

Modifiers

setMaxKeeperFee

Source

Details

Signature

setMaxKeeperFee(uint256 _sUSD)

Visibility

external

State Mutability

``

Requires

Modifiers

Emits

setMaxLeverage

Source

Details

Signature

setMaxLeverage(bytes32 _marketKey, uint256 _maxLeverage)

Visibility

public

State Mutability

``

Modifiers

setMaxMarketValue

Source

Details

Signature

setMaxMarketValue(bytes32 _marketKey, uint256 _maxMarketValue)

Visibility

public

State Mutability

``

Modifiers

setMinDelayTimeDelta

Source

Details

Signature

setMinDelayTimeDelta(bytes32 _marketKey, uint256 _minDelayTimeDelta)

Visibility

public

State Mutability

``

Modifiers

setMinInitialMargin

Source

Details

Signature

setMinInitialMargin(uint256 _minMargin)

Visibility

external

State Mutability

``

Requires

Modifiers

Emits

setMinKeeperFee

Source

Details

Signature

setMinKeeperFee(uint256 _sUSD)

Visibility

external

State Mutability

``

Requires

Modifiers

Emits

setNextPriceConfirmWindow

Source

Details

Signature

setNextPriceConfirmWindow(bytes32 _marketKey, uint256 _nextPriceConfirmWindow)

Visibility

public

State Mutability

``

Modifiers

setOffchainDelayedOrderMaxAge

Source

Details

Signature

setOffchainDelayedOrderMaxAge(bytes32 _marketKey, uint256 _offchainDelayedOrderMaxAge)

Visibility

public

State Mutability

``

Modifiers

setOffchainDelayedOrderMinAge

Source

Details

Signature

setOffchainDelayedOrderMinAge(bytes32 _marketKey, uint256 _offchainDelayedOrderMinAge)

Visibility

public

State Mutability

``

Modifiers

setOffchainMarketKey

Source

Details

Signature

setOffchainMarketKey(bytes32 _marketKey, bytes32 _offchainMarketKey)

Visibility

public

State Mutability

``

Modifiers

Emits

setOffchainPriceDivergence

Source

Details

Signature

setOffchainPriceDivergence(bytes32 _marketKey, uint256 _offchainPriceDivergence)

Visibility

public

State Mutability

``

Modifiers

setOverrideCommitFee

Source

Details

Signature

setOverrideCommitFee(bytes32 _marketKey, uint256 _overrideCommitFee)

Visibility

public

State Mutability

``

Modifiers

setParameters

Source

Details

Signature

setParameters(bytes32 _marketKey, struct IPerpsV2MarketSettings.Parameters _parameters)

Visibility

external

State Mutability

``

Modifiers

setSkewScale

Source

Details

Signature

setSkewScale(bytes32 _marketKey, uint256 _skewScale)

Visibility

public

State Mutability

``

Requires

Modifiers

setTakerFee

Source

Details

Signature

setTakerFee(bytes32 _marketKey, uint256 _takerFee)

Visibility

public

State Mutability

``

Requires

Modifiers

setTakerFeeDelayedOrder

Source

Details

Signature

setTakerFeeDelayedOrder(bytes32 _marketKey, uint256 _takerFeeDelayedOrder)

Visibility

public

State Mutability

``

Requires

Modifiers

setTakerFeeOffchainDelayedOrder

Source

Details

Signature

setTakerFeeOffchainDelayedOrder(bytes32 _marketKey, uint256 _takerFeeOffchainDelayedOrder)

Visibility

public

State Mutability

``

Requires

Modifiers

Internal Functions

_futuresMarketManager

Source

Details

Signature

_futuresMarketManager() view returns (contract IFuturesMarketManager)

Visibility

internal

State Mutability

view

_recomputeFunding

Source

Details

Signature

_recomputeFunding(bytes32 _marketKey)

Visibility

internal

State Mutability

``

_setParameter

Source

Details

Signature

_setParameter(bytes32 _marketKey, bytes32 key, uint256 value)

Visibility

internal

State Mutability

``

Emits

Events

LiquidationBufferRatioUpdated

Source

Signature: LiquidationBufferRatioUpdated(uint256 bps)

LiquidationFeeRatioUpdated

Source

Signature: LiquidationFeeRatioUpdated(uint256 bps)

MaxKeeperFeeUpdated

Source

Signature: MaxKeeperFeeUpdated(uint256 sUSD)

MinInitialMarginUpdated

Source

Signature: MinInitialMarginUpdated(uint256 minMargin)

MinKeeperFeeUpdated

Source

Signature: MinKeeperFeeUpdated(uint256 sUSD)

ParameterUpdated

Source

Signature: ParameterUpdated(bytes32 marketKey, bytes32 parameter, uint256 value)

ParameterUpdatedBytes32

Source

Signature: ParameterUpdatedBytes32(bytes32 marketKey, bytes32 parameter, bytes32 value)