PositionRouter

Verified contract

Active on Base with 27,565 txns
Deployed by via 0xc9fac587 at 2492350
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
4 additional variables
ERC-20
Value $0.1
ERC-20
--
ERC-20
--
ERC-20
--
ERC-20
--
0x18e071cdfbd66a46802b75d1dd6867cb813091507cfb62923f919e60bef5eb36
0x5fd6343b1f0456b5d30a1e40937fa450f44d514835c3bb0e500c4f635292e64c
0x46d0ecfc20902749b9630a432cdee1710c4f74a9f3a550f0872de46811611bbf
0xb91d123ec44e6451b1bc5f83b5cf6608c5f174ff339325ac5249e86f95d72d84
0xdecdfa27c36fb1d1d2370f887a1e9343d9cf5d20206707211df5bef71e766410
0x4ddc8a7a1ab8294377e1e0f3f1d11e8c755c784f56a9fe9e9e94b279f931915b
0xabe5a1f06368483d78cc2e0f7b94bc2c14db836e68e69a257ff598350de05cc5
0x639719691c0d8f83a2c9e8e6d9ea3f1569589d3b489270571f0cbe59788edf68
0xe0931df2b30599a9aa52217f8beac0c7c895430fc6e98a0ad4a0e524a3fe7ba4
0xcffe562241a5f3502a22b342c414d4684d05a2735c0f4a4fa723433d58c288e0

Functions
Getter at block 22751135
BASIS_POINTS_DIVISOR(view returns (uint256)
10000
admin(view returns (address)
0x948d447ef250e3468481e8622a475980f01015e1
callbackGasLimit(view returns (uint256)
1000000000000000000
decreasePositionRequestKeysStart(view returns (uint256)
49
depositFee(view returns (uint256)
30
getRequestQueueLengths(view returns (uint256uint256uint256uint256)
(106, 106, 49, 49)
gov(view returns (address)
0x1e61a5c911ab51f98a8dfbe90c0aa42e355885c5
increasePositionBufferBps(view returns (uint256)
100
increasePositionRequestKeysStart(view returns (uint256)
106
isLeverageEnabled(view returns (bool)
false
maxTimeDelay(view returns (uint256)
1800
minBlockDelayKeeper(view returns (uint256)
0
minExecutionFee(view returns (uint256)
180000000000000
minTimeDelayPublic(view returns (uint256)
10
referralStorage(view returns (address)
0x8e9e2957f2220247a810695aa006489a819fb6d5
router(view returns (address)
0xd00c4ad1e462c99369b5e4b79427756ededfce14
shortsTracker(view returns (address)
0x8e5cab4e44b7626a530b258a0f52e8f554e50190
vault(view returns (address)
0x853a8ce6b6338f5b0a14bcfc97f9d68396099c9c
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.