Skip to content

PerpsV2MarketDelayedExecution

Description

Source: contracts/PerpsV2MarketDelayedExecution.sol

Constructor

constructor

Source

Details

Signature

constructor(address payable _proxy, address _marketState, address _owner, address _resolver)

Visibility

public

State Mutability

``

Restricted Functions

cancelDelayedOrder

Source

Details

Signature

cancelDelayedOrder(address account)

Visibility

external

State Mutability

``

Requires

Modifiers

cancelOffchainDelayedOrder

Source

Details

Signature

cancelOffchainDelayedOrder(address account)

Visibility

external

State Mutability

``

Requires

Modifiers

executeDelayedOrder

Source

Details

Signature

executeDelayedOrder(address account)

Visibility

external

State Mutability

``

Requires

Modifiers

executeOffchainDelayedOrder

Source

Details

Signature

executeOffchainDelayedOrder(address account, bytes[] priceUpdateData) payable

Visibility

external

State Mutability

payable

Requires

Modifiers

Internal Functions

_cancelDelayedOrder

Source

Details

Signature

_cancelDelayedOrder(address account, struct IPerpsV2MarketBaseTypes.DelayedOrder order)

Visibility

internal

State Mutability

``

_confirmCanCancel

Source

Details

Signature

_confirmCanCancel(struct IPerpsV2MarketBaseTypes.DelayedOrder order, uint256 currentRoundId)

Visibility

internal

State Mutability

``

_confirmationWindowOver

Source

Details

Signature

_confirmationWindowOver(uint256 executableAtTime, uint256 currentRoundId, uint256 targetRoundId) view returns (bool)

Visibility

internal

State Mutability

view

_executeDelayedOrder

Source

Details

Signature

_executeDelayedOrder(address account, struct IPerpsV2MarketBaseTypes.DelayedOrder order, uint256 currentPrice, uint256 currentRoundId, uint256 takerFee, uint256 makerFee)

Visibility

internal

State Mutability

``

_offchainAssetPriceRequireSystemChecks

Source

Details

Signature

_offchainAssetPriceRequireSystemChecks(uint256 maxAge) returns (uint256 price, uint256 publishTime)

Visibility

internal

State Mutability

``

Requires

_perpsV2ExchangeRate

Source

Details

Signature

_perpsV2ExchangeRate() view returns (contract IPerpsV2ExchangeRate)

Visibility

internal

State Mutability

view

emitDelayedOrderRemoved

Source

Details

Signature

emitDelayedOrderRemoved(address account, uint256 currentRoundId, struct IPerpsV2MarketBaseTypes.DelayedOrder order)

Visibility

internal

State Mutability

``

Events

DelayedOrderRemoved

Source

Signature: DelayedOrderRemoved(address account, bool isOffchain, uint256 currentRoundId, int256 sizeDelta, uint256 targetRoundId, uint256 commitDeposit, uint256 keeperDeposit, bytes32 trackingCode)