PositionRouter

Verified contract

Active on Base with 7,728 txns
Deployed by via 0xf07df207 at 2521089
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
2 additional variables
ERC-20
--
0x88c44fbf1c606175e6e5359c6835ffcdc79ac5b9f10d2f68adf35c8a75f13aff
0x90e949bac5f1440d41311fec7f31e4e609141dd6a4f7ced75cf6659c0896ab75
0x3d1edd556dcc106993cab485152e8a0ab20216e69f8cff031c2a22443f852085
0x042da5ef228c119f731c5f6a81ce5398b3c633bba433ef0051a42222c9fa0e25
0x63df59d55cd23cf0b391da13de38b3bf4edf569c2e265407124a81cbd0c8a603
0xa608fb5f1dd0b63e8026d6c962929f7fe3226a802aec8a6c170ed0004c9275b7
0xe3b14b9c0b8d448f6cc99ad884f33fa0d09f6c5966264392f54e53bfbf83f071
0xa746720a1ae69a20a0b647a1f29c4a584d426758deb8ecef4b71db425418e45c
0x4a94f8806b8722dbba7c66463eca7cdc53b2a48360d6ef2d583c4258e802f2f4
0xd897e40582465c67e98a680fe6890b80dd3420d76410b4cd67f40c20a78cda54

Functions
Getter at block 21750505
BASIS_POINTS_DIVISOR(view returns (uint256)
10000
admin(view returns (address)
0x13a8a2dfd6481f34523fa9208271f50249f8079b
decreasePositionRequestKeysStart(view returns (uint256)
3610
depositFee(view returns (uint256)
30
getRequestQueueLengths(view returns (uint256uint256uint256uint256)
(4091, 4091, 3610, 3610)
gov(view returns (address)
0x13a8a2dfd6481f34523fa9208271f50249f8079b
increasePositionBufferBps(view returns (uint256)
100
increasePositionRequestKeysStart(view returns (uint256)
4091
isLeverageEnabled(view returns (bool)
true
maxTimeDelay(view returns (uint256)
1800
minBlockDelayKeeper(view returns (uint256)
1
minExecutionFee(view returns (uint256)
500000000000000
minTimeDelayPublic(view returns (uint256)
180
referralStorage(view returns (address)
0x4d0247e79a00a31e92f81c9d90b734088fe8f278
router(view returns (address)
0xb575cea2d54c08d9c25ac033b8c93bce2fb49495
vault(view returns (address)
0x1ce0ebd2b95221b924765456fde017b076e79dbe
weth(view returns (address)
0xd6c5469a7cc587e1e89a841fb7c102ff1370c05f
Read-only
decreasePositionRequestKeys(uint256view returns (bytes32)
decreasePositionRequests(bytes32view returns (address accountaddress indexTokenuint256 collateralDeltauint256 sizeDeltabool isLongaddress receiveruint256 acceptablePriceuint256 minOutuint256 executionFeeuint256 blockNumberuint256 blockTimebool withdrawETH)
decreasePositionsIndex(addressview returns (uint256)
feeReserves(addressview returns (uint256)
getDecreasePositionRequestPath(bytes32 _keyview returns (address[])
getIncreasePositionRequestPath(bytes32 _keyview returns (address[])
getRequestKey(address _accountuint256 _indexpure returns (bytes32)
increasePositionRequestKeys(uint256view returns (bytes32)
increasePositionRequests(bytes32view returns (address accountaddress indexTokenuint256 amountInuint256 minOutuint256 sizeDeltabool isLonguint256 acceptablePriceuint256 executionFeeuint256 blockNumberuint256 blockTimebool hasCollateralInETH)
increasePositionsIndex(addressview returns (uint256)
isPositionKeeper(addressview returns (bool)
maxGlobalLongSizes(addressview returns (uint256)
maxGlobalShortSizes(addressview returns (uint256)
State-modifying
approve(address _tokenaddress _spenderuint256 _amount
cancelDecreasePosition(bytes32 _keyaddress _executionFeeReceiverreturns (bool)
cancelIncreasePosition(bytes32 _keyaddress _executionFeeReceiverreturns (bool)
createDecreasePosition(address[] _pathaddress _indexTokenuint256 _collateralDeltauint256 _sizeDeltabool _isLongaddress _receiveruint256 _acceptablePriceuint256 _minOutuint256 _executionFeebool _withdrawETHpayable 
createIncreasePosition(address[] _pathaddress _indexTokenuint256 _amountInuint256 _minOutuint256 _sizeDeltabool _isLonguint256 _acceptablePriceuint256 _executionFeebytes32 _referralCodepayable 
createIncreasePositionETH(address[] _pathaddress _indexTokenuint256 _minOutuint256 _sizeDeltabool _isLonguint256 _acceptablePriceuint256 _executionFeebytes32 _referralCodepayable 
executeDecreasePosition(bytes32 _keyaddress _executionFeeReceiverreturns (bool)
executeDecreasePositions(uint256 _endIndexaddress _executionFeeReceiver
executeIncreasePosition(bytes32 _keyaddress _executionFeeReceiverreturns (bool)
executeIncreasePositions(uint256 _endIndexaddress _executionFeeReceiver
sendValue(address _receiveruint256 _amount
setAdmin(address _admin
setDelayValues(uint256 _minBlockDelayKeeperuint256 _minTimeDelayPublicuint256 _maxTimeDelay
setDepositFee(uint256 _depositFee
setGov(address _gov
setIncreasePositionBufferBps(uint256 _increasePositionBufferBps
setIsLeverageEnabled(bool _isLeverageEnabled
setMaxGlobalSizes(address[] _tokensuint256[] _longSizesuint256[] _shortSizes
setMinExecutionFee(uint256 _minExecutionFee
setPositionKeeper(address _accountbool _isActive
setReferralStorage(address _referralStorage
setRequestKeysStartValues(uint256 _increasePositionRequestKeysStartuint256 _decreasePositionRequestKeysStart
withdrawFees(address _tokenaddress _receiver
Events
CancelDecreasePosition(address indexed accountaddress[] pathaddress indexTokenuint256 collateralDeltauint256 sizeDeltabool isLongaddress receiveruint256 acceptablePriceuint256 minOutuint256 executionFeeuint256 blockGapuint256 timeGap
CancelIncreasePosition(address indexed accountaddress[] pathaddress indexTokenuint256 amountInuint256 minOutuint256 sizeDeltabool isLonguint256 acceptablePriceuint256 executionFeeuint256 blockGapuint256 timeGap
CreateDecreasePosition(address indexed accountaddress[] pathaddress indexTokenuint256 collateralDeltauint256 sizeDeltabool isLongaddress receiveruint256 acceptablePriceuint256 minOutuint256 executionFeeuint256 indexuint256 blockNumberuint256 blockTime
CreateIncreasePosition(address indexed accountaddress[] pathaddress indexTokenuint256 amountInuint256 minOutuint256 sizeDeltabool isLonguint256 acceptablePriceuint256 executionFeeuint256 indexuint256 blockNumberuint256 blockTimeuint256 gasPrice
DecreasePositionReferral(address accountuint256 sizeDeltauint256 marginFeeBasisPointsbytes32 referralCodeaddress referrer
ExecuteDecreasePosition(address indexed accountaddress[] pathaddress indexTokenuint256 collateralDeltauint256 sizeDeltabool isLongaddress receiveruint256 acceptablePriceuint256 minOutuint256 executionFeeuint256 blockGapuint256 timeGap
ExecuteIncreasePosition(address indexed accountaddress[] pathaddress indexTokenuint256 amountInuint256 minOutuint256 sizeDeltabool isLonguint256 acceptablePriceuint256 executionFeeuint256 blockGapuint256 timeGap
IncreasePositionReferral(address accountuint256 sizeDeltauint256 marginFeeBasisPointsbytes32 referralCodeaddress referrer
SetAdmin(address admin
SetDelayValues(uint256 minBlockDelayKeeperuint256 minTimeDelayPublicuint256 maxTimeDelay
SetDepositFee(uint256 depositFee
SetIncreasePositionBufferBps(uint256 increasePositionBufferBps
SetIsLeverageEnabled(bool isLeverageEnabled
SetMaxGlobalSizes(address[] tokensuint256[] longSizesuint256[] shortSizes
SetMinExecutionFee(uint256 minExecutionFee
SetPositionKeeper(address indexed accountbool isActive
SetReferralStorage(address referralStorage
SetRequestKeysStartValues(uint256 increasePositionRequestKeysStartuint256 decreasePositionRequestKeysStart
WithdrawFees(address tokenaddress receiveruint256 amount
Constructor
constructor(address _vaultaddress _routeraddress _wethuint256 _depositFeeuint256 _minExecutionFee
Fallback and receive
receive(
Errors

This contract contains no error objects.