OrderBook

Verified contract

Active on Base with 2,604 txns
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $838.34
ERC-20
Value $0.11
ERC-20
Value $0
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
0x57060520e1190464fd2441aa89af3a9fd55e64793afe39f3986513a9d64653aa
0x347e53c8d7d7ff013933aca904a6c99a4711beca424a366ea1679f162447223e
0xdf2b65d0b9e792534e4a2f23a9ffd8369d8f08c687ef4f4159af347e6b4c87c6
0x4892150fb82fdda94b480e8192c8fede70c4fbac4446c6a2059375d90b95cd21
0x41593302de8e26b37a353d9467757797cef3d56a8dd97ffbe102b7a4d053db41
0xbf4398ce84378e3860f42d7701967bf8638d3492b607a8dff81e8aba1517d9fd
0xa7502fcb46a1fe319453f124866ceaee5025188e9321fa324c53ac459425d422
0xe5ee6209159626c033c0989e2a4cc17196b5429dbb758e9009ee792b36a75ed7
0xd5170e036de8d069aff4a1d0106bb4969d4944289bf2db68bda70a17c7a03040
0x7a15d7e9e988b54b19ba8a4d26c0f866a447aeb3cf2ce6047eb728d27dbcddb5

Functions
Getter at block 22746658
PRICE_PRECISION(view returns (uint256)
1000000000000000000000000000000
USDG_PRECISION(view returns (uint256)
1000000000000000000
gov(view returns (address)
0xe02fb5c70af32f80aa7f9e8775fe7f12550348ec
isInitialized(view returns (bool)
true
minExecutionFee(view returns (uint256)
200000000000000
minPurchaseTokenAmountUsd(view returns (uint256)
10000000000000000000000000000000
router(view returns (address)
0xc608188e753b1e9558731724b7f7cdde40c3b174
usdg(view returns (address)
0xe974a88385935cb8846482f3ab01b6c0f70fa5f3
vault(view returns (address)
0xec8d8d4b215727f3476ff0ab41c406fa99b4272c
weth(view returns (address)
0x4200000000000000000000000000000000000006
Read-only
decreaseOrders(addressuint256view returns (address accountaddress collateralTokenuint256 collateralDeltaaddress indexTokenuint256 sizeDeltabool isLonguint256 triggerPricebool triggerAboveThresholduint256 executionFee)
decreaseOrdersIndex(addressview returns (uint256)
getDecreaseOrder(address _accountuint256 _orderIndexview returns (address collateralTokenuint256 collateralDeltaaddress indexTokenuint256 sizeDeltabool isLonguint256 triggerPricebool triggerAboveThresholduint256 executionFee)
getIncreaseOrder(address _accountuint256 _orderIndexview returns (address purchaseTokenuint256 purchaseTokenAmountaddress collateralTokenaddress indexTokenuint256 sizeDeltabool isLonguint256 triggerPricebool triggerAboveThresholduint256 executionFee)
getSwapOrder(address _accountuint256 _orderIndexview returns (address path0address path1address path2uint256 amountInuint256 minOutuint256 triggerRatiobool triggerAboveThresholdbool shouldUnwrapuint256 executionFee)
getUsdgMinPrice(address _otherTokenview returns (uint256)
increaseOrders(addressuint256view returns (address accountaddress purchaseTokenuint256 purchaseTokenAmountaddress collateralTokenaddress indexTokenuint256 sizeDeltabool isLonguint256 triggerPricebool triggerAboveThresholduint256 executionFee)
increaseOrdersIndex(addressview returns (uint256)
swapOrders(addressuint256view returns (address accountuint256 amountInuint256 minOutuint256 triggerRatiobool triggerAboveThresholdbool shouldUnwrapuint256 executionFee)
swapOrdersIndex(addressview returns (uint256)
validatePositionOrderPrice(bool _triggerAboveThresholduint256 _triggerPriceaddress _indexTokenbool _maximizePricebool _raiseview returns (uint256bool)
validateSwapOrderPriceWithTriggerAboveThreshold(address[] _pathuint256 _triggerRatioview returns (bool)
State-modifying
cancelDecreaseOrder(uint256 _orderIndex
cancelIncreaseOrder(uint256 _orderIndex
cancelMultiple(uint256[] _swapOrderIndexesuint256[] _increaseOrderIndexesuint256[] _decreaseOrderIndexes
cancelSwapOrder(uint256 _orderIndex
createDecreaseOrder(address _indexTokenuint256 _sizeDeltaaddress _collateralTokenuint256 _collateralDeltabool _isLonguint256 _triggerPricebool _triggerAboveThresholdpayable 
createIncreaseOrder(address[] _pathuint256 _amountInaddress _indexTokenuint256 _minOutuint256 _sizeDeltaaddress _collateralTokenbool _isLonguint256 _triggerPricebool _triggerAboveThresholduint256 _executionFeebool _shouldWrappayable 
createSwapOrder(address[] _pathuint256 _amountInuint256 _minOutuint256 _triggerRatiobool _triggerAboveThresholduint256 _executionFeebool _shouldWrapbool _shouldUnwrappayable 
executeDecreaseOrder(address _addressuint256 _orderIndexaddress _feeReceiver
executeIncreaseOrder(address _addressuint256 _orderIndexaddress _feeReceiver
executeSwapOrder(address _accountuint256 _orderIndexaddress _feeReceiver
initialize(address _routeraddress _vaultaddress _wethaddress _usdguint256 _minExecutionFeeuint256 _minPurchaseTokenAmountUsd
setGov(address _gov
setMinExecutionFee(uint256 _minExecutionFee
setMinPurchaseTokenAmountUsd(uint256 _minPurchaseTokenAmountUsd
updateDecreaseOrder(uint256 _orderIndexuint256 _collateralDeltauint256 _sizeDeltauint256 _triggerPricebool _triggerAboveThreshold
updateIncreaseOrder(uint256 _orderIndexuint256 _sizeDeltauint256 _triggerPricebool _triggerAboveThreshold
updateSwapOrder(uint256 _orderIndexuint256 _minOutuint256 _triggerRatiobool _triggerAboveThreshold
Events
CancelDecreaseOrder(address indexed accountuint256 orderIndexaddress collateralTokenuint256 collateralDeltaaddress indexTokenuint256 sizeDeltabool isLonguint256 triggerPricebool triggerAboveThresholduint256 executionFee
CancelIncreaseOrder(address indexed accountuint256 orderIndexaddress purchaseTokenuint256 purchaseTokenAmountaddress collateralTokenaddress indexTokenuint256 sizeDeltabool isLonguint256 triggerPricebool triggerAboveThresholduint256 executionFee
CancelSwapOrder(address indexed accountuint256 orderIndexaddress[] pathuint256 amountInuint256 minOutuint256 triggerRatiobool triggerAboveThresholdbool shouldUnwrapuint256 executionFee
CreateDecreaseOrder(address indexed accountuint256 orderIndexaddress collateralTokenuint256 collateralDeltaaddress indexTokenuint256 sizeDeltabool isLonguint256 triggerPricebool triggerAboveThresholduint256 executionFee
CreateIncreaseOrder(address indexed accountuint256 orderIndexaddress purchaseTokenuint256 purchaseTokenAmountaddress collateralTokenaddress indexTokenuint256 sizeDeltabool isLonguint256 triggerPricebool triggerAboveThresholduint256 executionFee
CreateSwapOrder(address indexed accountuint256 orderIndexaddress[] pathuint256 amountInuint256 minOutuint256 triggerRatiobool triggerAboveThresholdbool shouldUnwrapuint256 executionFee
ExecuteDecreaseOrder(address indexed accountuint256 orderIndexaddress collateralTokenuint256 collateralDeltaaddress indexTokenuint256 sizeDeltabool isLonguint256 triggerPricebool triggerAboveThresholduint256 executionFeeuint256 executionPrice
ExecuteIncreaseOrder(address indexed accountuint256 orderIndexaddress purchaseTokenuint256 purchaseTokenAmountaddress collateralTokenaddress indexTokenuint256 sizeDeltabool isLonguint256 triggerPricebool triggerAboveThresholduint256 executionFeeuint256 executionPrice
ExecuteSwapOrder(address indexed accountuint256 orderIndexaddress[] pathuint256 amountInuint256 minOutuint256 amountOutuint256 triggerRatiobool triggerAboveThresholdbool shouldUnwrapuint256 executionFee
Initialize(address routeraddress vaultaddress wethaddress usdguint256 minExecutionFeeuint256 minPurchaseTokenAmountUsd
UpdateDecreaseOrder(address indexed accountuint256 orderIndexaddress collateralTokenuint256 collateralDeltaaddress indexTokenuint256 sizeDeltabool isLonguint256 triggerPricebool triggerAboveThreshold
UpdateGov(address gov
UpdateIncreaseOrder(address indexed accountuint256 orderIndexaddress collateralTokenaddress indexTokenbool isLonguint256 sizeDeltauint256 triggerPricebool triggerAboveThreshold
UpdateMinExecutionFee(uint256 minExecutionFee
UpdateMinPurchaseTokenAmountUsd(uint256 minPurchaseTokenAmountUsd
UpdateSwapOrder(address indexed accountuint256 ordexIndexaddress[] pathuint256 amountInuint256 minOutuint256 triggerRatiobool triggerAboveThresholdbool shouldUnwrapuint256 executionFee
Constructor
constructor(
Fallback and receive
receive(
Errors

This contract contains no error objects.