PerpsV2MarketDelayedOrdersBase¶
Description¶
Source: contracts/PerpsV2MarketDelayedOrdersBase.sol
Constructor¶
constructor
¶
Details
Signature
constructor(address payable _proxy, address _marketState, address _owner, address _resolver)
Visibility
public
State Mutability
``
Views¶
delayedOrders
¶
Details
Signature
delayedOrders(address account) view returns (struct IPerpsV2MarketBaseTypes.DelayedOrder)
Visibility
external
State Mutability
view
Internal Functions¶
_cancelDelayedOrder
¶
Details
Signature
_cancelDelayedOrder(address account, struct IPerpsV2MarketBaseTypes.DelayedOrder order)
Visibility
internal
State Mutability
``
_confirmCanCancel
¶
Details
Signature
_confirmCanCancel(address account, struct IPerpsV2MarketBaseTypes.DelayedOrder order, uint256 currentRoundId)
Visibility
internal
State Mutability
``
_executeDelayedOrder
¶
Details
Signature
_executeDelayedOrder(address account, struct IPerpsV2MarketBaseTypes.DelayedOrder order, uint256 currentPrice, uint256 currentRoundId, uint256 takerFee, uint256 makerFee)
Visibility
internal
State Mutability
``
_submitDelayedOrder
¶
Details
Signature
_submitDelayedOrder(bytes32 marketKey, int256 sizeDelta, uint256 priceImpactDelta, uint256 desiredTimeDelta, bytes32 trackingCode, bool isOffchain)
Visibility
internal
State Mutability
``
Requires
emitDelayedOrderRemoved
¶
Details
Signature
emitDelayedOrderRemoved(address account, uint256 currentRoundId, struct IPerpsV2MarketBaseTypes.DelayedOrder order)
Visibility
internal
State Mutability
``
emitDelayedOrderSubmitted
¶
Details
Signature
emitDelayedOrderSubmitted(address account, 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)
DelayedOrderSubmitted
¶
Signature: DelayedOrderSubmitted(address account, bool isOffchain, int256 sizeDelta, uint256 targetRoundId, uint256 intentionTime, uint256 executableAtTime, uint256 commitDeposit, uint256 keeperDeposit, bytes32 trackingCode)