OrderVault
Verified contract
Implementation
Active on
Base with 0 txns
Storage
Map
Table
Raw
Constants and immutables
31
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 22943101
This contract contains no getter function objects.
Read-only
addPositionOrders(uint256) view returns (address owner, uint256 collateral, uint256 size, uint256 allowedPrice, uint256 timestamp, uint256 fee)
decreasePositionOrders(uint256) view returns (uint256 size, uint256 allowedPrice, uint256 timestamp)
getAddPositionOrder(uint256 _posId) view returns (struct AddPositionOrder)
getAliveTriggerIds(uint256 _posId) view returns (uint256[] _aliveTriggerIds)
getDecreasePositionOrder(uint256 _posId) view returns (struct DecreasePositionOrder)
getOrder(uint256 _posId) view returns (struct Order)
getTriggerOrderInfo(uint256 _posId) view returns (struct PositionTrigger)
orders(uint256) view returns (uint8 status, uint256 lmtPrice, uint256 size, uint256 collateral, uint256 positionType, uint256 stepAmount, uint256 stepType, uint256 stpPrice, uint256 timestamp)
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)
cancelAllTriggerOrders(uint256 _posId)
cancelMarketOrder(uint256 _posId)
cancelPendingOrder(address _account, uint256 _posId)
cancelTriggerOrder(uint256 _posId, uint256 _orderId)
cancelTriggerOrderPacked(uint256 x)
createAddPositionOrder(address _owner, uint256 _posId, uint256 _collateralDelta, uint256 _sizeDelta, uint256 _allowedPrice, 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()
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)
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)
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.