PerpsV2MarketDelayedExecution¶
Description¶
Source: contracts/PerpsV2MarketDelayedExecution.sol
Constructor¶
constructor
¶
Details
Signature
constructor(address payable _proxy, address _marketState, address _owner, address _resolver)
Visibility
public
State Mutability
``
Restricted Functions¶
cancelDelayedOrder
¶
Details
Signature
cancelDelayedOrder(address account)
Visibility
external
State Mutability
``
Requires
Modifiers
cancelOffchainDelayedOrder
¶
Details
Signature
cancelOffchainDelayedOrder(address account)
Visibility
external
State Mutability
``
Requires
Modifiers
executeDelayedOrder
¶
Details
Signature
executeDelayedOrder(address account)
Visibility
external
State Mutability
``
Requires
Modifiers
executeOffchainDelayedOrder
¶
Details
Signature
executeOffchainDelayedOrder(address account, bytes[] priceUpdateData) payable
Visibility
external
State Mutability
payable
Requires
Modifiers
Internal Functions¶
_cancelDelayedOrder
¶
Details
Signature
_cancelDelayedOrder(address account, struct IPerpsV2MarketBaseTypes.DelayedOrder order)
Visibility
internal
State Mutability
``
_confirmCanCancel
¶
Details
Signature
_confirmCanCancel(struct IPerpsV2MarketBaseTypes.DelayedOrder order, uint256 currentRoundId)
Visibility
internal
State Mutability
``
_confirmationWindowOver
¶
Details
Signature
_confirmationWindowOver(uint256 executableAtTime, uint256 currentRoundId, uint256 targetRoundId) view returns (bool)
Visibility
internal
State Mutability
view
_executeDelayedOrder
¶
Details
Signature
_executeDelayedOrder(address account, struct IPerpsV2MarketBaseTypes.DelayedOrder order, uint256 currentPrice, uint256 currentRoundId, uint256 takerFee, uint256 makerFee)
Visibility
internal
State Mutability
``
_offchainAssetPriceRequireSystemChecks
¶
Details
Signature
_offchainAssetPriceRequireSystemChecks(uint256 maxAge) returns (uint256 price, uint256 publishTime)
Visibility
internal
State Mutability
``
Requires
_perpsV2ExchangeRate
¶
Details
Signature
_perpsV2ExchangeRate() view returns (contract IPerpsV2ExchangeRate)
Visibility
internal
State Mutability
view
emitDelayedOrderRemoved
¶
Details
Signature
emitDelayedOrderRemoved(address account, uint256 currentRoundId, struct IPerpsV2MarketBaseTypes.DelayedOrder order)
Visibility
internal
State Mutability
``
Events¶
DelayedOrderRemoved
¶
Signature: DelayedOrderRemoved(address account, bool isOffchain, uint256 currentRoundId, int256 sizeDelta, uint256 targetRoundId, uint256 commitDeposit, uint256 keeperDeposit, bytes32 trackingCode)