PositionRouter

Verified contract

Active on Base with 8,340 txns
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
4 additional variables
ERC-20
Value $1,375.96
ERC-20
Value $407.46
ERC-20
Value $10.44
ERC-20
Value $3.22
ERC-20
Value $1.22
ERC-20
Value $0.11
ERC-20
Value $0.1
ERC-20
Value $0.05
ERC-20
Value $0
ERC-20
Value $0
0x208a709e15601f8601ae1e3c2db2cf58ce17ee69c7e2b3ef0f4ca72cac9d6d44
0xd9c7bcb4a4fa05f1859f9ee23c703341d1ec64f17ce6436753681ec5e0813bc8
0x5f06fb33274a9ec6354527cf3490a346d1699d65f6eb27e177adc62ae25c0059
0xc0b88d693708060e5c6fab8108654514058aa8c4a3433c6841deba5b0b78ef66
0x261535b9b6b40bfc3fcff07eb508b94862490516d2aacc678da07cd1bb6381e1
0x45e60fb77ccec2b8abd051b6cfa5f4d3c322259e975d86d979f1accff18ee52f
0x9f9894b62e464c6406406be55d379a818149741af68571df403475302f319720
0xb9dc68a53c89c662dd66a99312877d261f1b0268150ed3bd3cfe13c2b0d23728
0x54b87971f05bd7651f0af5d0b568651e71702a5ef0f08420e6cde31f144a4332
0x11ddb630ba9521658cfd876feb4e8bb61989f83c38752dd48819ca2587dda953

Functions
Getter at block 22752725
BASIS_POINTS_DIVISOR(view returns (uint256)
10000
admin(view returns (address)
0xb1dd2fdb023cb54b7cc2a0f5d9e8d47a9f7723ce
callbackGasLimit(view returns (uint256)
0
decreasePositionRequestKeysStart(view returns (uint256)
3104
depositFee(view returns (uint256)
30
getRequestQueueLengths(view returns (uint256uint256uint256uint256)
(5182, 5182, 3104, 3104)
gov(view returns (address)
0xe02fb5c70af32f80aa7f9e8775fe7f12550348ec
increasePositionBufferBps(view returns (uint256)
100
increasePositionRequestKeysStart(view returns (uint256)
5182
isLeverageEnabled(view returns (bool)
true
maxTimeDelay(view returns (uint256)
1800
minBlockDelayKeeper(view returns (uint256)
0
minExecutionFee(view returns (uint256)
200000000000000
minTimeDelayPublic(view returns (uint256)
180
referralStorage(view returns (address)
0xd9d396b94d19cfafea52513c2092102d145e06ae
router(view returns (address)
0xc608188e753b1e9558731724b7f7cdde40c3b174
shortsTracker(view returns (address)
0x37e62664c7b78e1e05ca47aa80924d9a6280f420
vault(view returns (address)
0xec8d8d4b215727f3476ff0ab41c406fa99b4272c
weth(view returns (address)
0x4200000000000000000000000000000000000006
Read-only
decreasePositionRequestKeys(uint256view returns (bytes32)
decreasePositionRequests(bytes32view returns (address accountaddress indexTokenuint256 collateralDeltauint256 sizeDeltabool isLongaddress receiveruint256 acceptablePriceuint256 minOutuint256 executionFeeuint256 blockNumberuint256 blockTimebool withdrawETHaddress callbackTarget)
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 hasCollateralInETHaddress callbackTarget)
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 _withdrawETHaddress _callbackTargetpayable returns (bytes32)
createIncreasePosition(address[] _pathaddress _indexTokenuint256 _amountInuint256 _minOutuint256 _sizeDeltabool _isLonguint256 _acceptablePriceuint256 _executionFeebytes32 _referralCodeaddress _callbackTargetpayable returns (bytes32)
createIncreasePositionETH(address[] _pathaddress _indexTokenuint256 _minOutuint256 _sizeDeltabool _isLonguint256 _acceptablePriceuint256 _executionFeebytes32 _referralCodeaddress _callbackTargetpayable returns (bytes32)
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
setCallbackGasLimit(uint256 _callbackGasLimit
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
Callback(address callbackTargetbool success
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 queueIndexuint256 blockNumberuint256 blockTime
CreateIncreasePosition(address indexed accountaddress[] pathaddress indexTokenuint256 amountInuint256 minOutuint256 sizeDeltabool isLonguint256 acceptablePriceuint256 executionFeeuint256 indexuint256 queueIndexuint256 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
SetCallbackGasLimit(uint256 callbackGasLimit
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 _wethaddress _shortsTrackeruint256 _depositFeeuint256 _minExecutionFee
Fallback and receive
receive(
Errors

This contract contains no error objects.