OrderVault
Verified contract
Implementation
Active on
Base with 0 txns
Storage
Map
Table
Raw
Constants and immutables
32
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 48 additional slots
Balances ($0.00)
No balances found for "OrderVault"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "OrderVault"
ABI
ABI objects
Getter at block 21876842
lastAddPositionTriggerId() view returns (uint256)
0
Read-only
getAddPositionOrder(uint256 _posId) view returns (struct AddPositionOrder)
getAddPositionTrigger(uint256 _addPositionTriggerId) view returns (struct AddPositionTrigger)
getAliveTriggerIds(uint256 _posId) view returns (uint256[] _aliveTriggerIds)
getDecreasePositionOrder(uint256 _posId) view returns (struct DecreasePositionOrder)
getOrder(uint256 _posId) view returns (struct Order)
getPosAddPositionTriggerIds(uint256 _posId) view returns (uint256[] _addPositionTriggerIds)
getTriggerOrderInfo(uint256 _posId) view returns (struct PositionTrigger)
validateTrailingStopInputData(uint256[] _params) pure returns (bool)
validateTrailingStopPrice(uint256 _tokenId, bool _isLong, uint256 _posId, bool _raise) view returns (bool)
State-modifying
Events addTrailingStop(address _account, uint256 _posId, uint256[] _params)
addTriggerOrders(uint256 _posId, address _account, bool[] _isTPs, uint256[] _prices, uint256[] _amountPercents)
cancelAddPositionOrder(uint256 _posId)
cancelAddPositionTriggers(uint256[] _addPositionTriggerIds)
cancelAllTriggerOrders(uint256 _posId)
cancelMarketOrder(uint256 _posId)
cancelPendingOrder(address _account, uint256 _posId)
cancelPosAddPositionTriggers(uint256 _posId, address _positionOwner)
cancelTriggerOrder(uint256 _posId, uint256 _orderId)
cancelTriggerOrderPacked(uint256 x)
createAddPositionOrder(address _owner, uint256 _posId, uint256 _collateralDelta, uint256 _sizeDelta, uint256 _allowedPrice, uint256 _fee)
createAddPositionTrigger(bool _isTriggerAbove, uint256 _posId, uint256 _tokenId, uint256 _triggerPrice, uint256 _collateral, uint256 _size, uint256 _fee)
createDecreasePositionOrder(uint256 _posId, uint256 _sizeDelta, uint256 _allowedPrice)
createNewOrder(uint256 _posId, address _account, bool _isLong, uint256 _tokenId, uint256 _positionType, uint256[] _params, address _refer)
deleteAddPositionOrder(uint256 _posId)
deleteDecreasePositionOrder(uint256 _posId)
editTriggerOrder(uint256 _posId, uint256 _orderId, bool _isTP, uint256 _price, uint256 _amountPercent)
init(address _priceManager, address _positionVault, address _settingsManager, address _vault, address _operators)
initialize()
selfExecuteDecreasePositionOrder(uint256 _posId)
triggerForAddPositionTrigger(uint256 _addPositionTriggerId)
triggerForOpenOrders(uint256 _posId)
triggerForTPSL(uint256 _posId)
updateOrder(uint256 _posId, uint256 _positionType, uint256 _collateral, uint256 _size, uint8 _status)
updateTrailingStop(uint256 _posId)
AddTrailingStop(uint256 posId, uint256[] data)
AddTriggerOrders(uint256 posId, uint256 orderId, bool isTP, uint256 price, uint256 amountPercent, uint8 status)
CreateAddPositionTrigger(uint256 indexed addPositionTriggerId, uint256 posId, uint256 tokenId, bool isTriggerAbove, uint256 triggerPrice)
EditTriggerOrder(uint256 indexed posId, uint256 orderId, bool isTP, uint256 price, uint256 amountPercent)
ExecuteTriggerOrders(uint256 posId, uint256 amount, uint256 orderId, uint256 price)
FinishOrder(uint256 posId, uint256 positionType, uint8 orderStatus)
Initialized(uint8 version)
NewOrder(uint256 posId, address account, bool isLong, uint256 tokenId, uint256 positionType, uint8 orderStatus, uint256[] triggerData, address refer)
RemoveAddPositionTrigger(uint256 indexed addPositionTriggerId, uint256 posId)
UpdateOrder(uint256 posId, uint256 positionType, uint8 orderStatus)
UpdateTrailingStop(uint256 posId, uint256 stpPrice)
UpdateTriggerOrderStatus(uint256 posId, uint256 orderId, uint8 status)
This contract contains no constructor objects.
This contract contains no fallback and receive objects.
This contract contains no error objects.