PositionRouter
Verified contract
Active on
Base with 7,728 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
2 additional
variables
Balances ($0.00)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
WETH | ERC-20 | 0.001789 | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 15502751 | 5 months ago | | | 0.2805 | 0.0000014611155 | |
| 15463038 | 5 months ago | | | 0.0005 | 0.0000032825982 | |
| 15462928 | 5 months ago | | | 0.0005 | 0.0000031151187 | |
| 15462869 | 5 months ago | | | 0.0005 | 0.0000029476392 | |
| 15462850 | 5 months ago | | | 0.0005 | 0.0000028806474 | |
| 15462792 | 5 months ago | | | 0.0005 | 0.0000028136556 | |
| 15462735 | 5 months ago | | | 0.0005 | 0.0000027808569 | |
| 15462722 | 5 months ago | | | 0.0005 | 0.0000027472542 | |
| 15462712 | 5 months ago | | | 0.0005 | 0.0000027471558 | |
| 15462701 | 5 months ago | | | 0.0005 | 0.0000027131679 |
ABI
ABI objects
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 (uint256, uint256, uint256, uint256)
(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(uint256) view returns (bytes32)
decreasePositionRequests(bytes32) view returns (address account, address indexToken, uint256 collateralDelta, uint256 sizeDelta, bool isLong, address receiver, uint256 acceptablePrice, uint256 minOut, uint256 executionFee, uint256 blockNumber, uint256 blockTime, bool withdrawETH)
decreasePositionsIndex(address) view returns (uint256)
feeReserves(address) view returns (uint256)
getDecreasePositionRequestPath(bytes32 _key) view returns (address[])
getIncreasePositionRequestPath(bytes32 _key) view returns (address[])
getRequestKey(address _account, uint256 _index) pure returns (bytes32)
increasePositionRequestKeys(uint256) view returns (bytes32)
increasePositionRequests(bytes32) view returns (address account, address indexToken, uint256 amountIn, uint256 minOut, uint256 sizeDelta, bool isLong, uint256 acceptablePrice, uint256 executionFee, uint256 blockNumber, uint256 blockTime, bool hasCollateralInETH)
increasePositionsIndex(address) view returns (uint256)
isPositionKeeper(address) view returns (bool)
maxGlobalLongSizes(address) view returns (uint256)
maxGlobalShortSizes(address) view returns (uint256)
State-modifying
Events approve(address _token, address _spender, uint256 _amount)
cancelDecreasePosition(bytes32 _key, address _executionFeeReceiver) returns (bool)
cancelIncreasePosition(bytes32 _key, address _executionFeeReceiver) returns (bool)
createDecreasePosition(address[] _path, address _indexToken, uint256 _collateralDelta, uint256 _sizeDelta, bool _isLong, address _receiver, uint256 _acceptablePrice, uint256 _minOut, uint256 _executionFee, bool _withdrawETH) payable
createIncreasePosition(address[] _path, address _indexToken, uint256 _amountIn, uint256 _minOut, uint256 _sizeDelta, bool _isLong, uint256 _acceptablePrice, uint256 _executionFee, bytes32 _referralCode) payable
createIncreasePositionETH(address[] _path, address _indexToken, uint256 _minOut, uint256 _sizeDelta, bool _isLong, uint256 _acceptablePrice, uint256 _executionFee, bytes32 _referralCode) payable
executeDecreasePosition(bytes32 _key, address _executionFeeReceiver) returns (bool)
executeDecreasePositions(uint256 _endIndex, address _executionFeeReceiver)
executeIncreasePosition(bytes32 _key, address _executionFeeReceiver) returns (bool)
executeIncreasePositions(uint256 _endIndex, address _executionFeeReceiver)
sendValue(address _receiver, uint256 _amount)
setAdmin(address _admin)
setDelayValues(uint256 _minBlockDelayKeeper, uint256 _minTimeDelayPublic, uint256 _maxTimeDelay)
setDepositFee(uint256 _depositFee)
setGov(address _gov)
setIncreasePositionBufferBps(uint256 _increasePositionBufferBps)
setIsLeverageEnabled(bool _isLeverageEnabled)
setMaxGlobalSizes(address[] _tokens, uint256[] _longSizes, uint256[] _shortSizes)
setMinExecutionFee(uint256 _minExecutionFee)
setPositionKeeper(address _account, bool _isActive)
setReferralStorage(address _referralStorage)
setRequestKeysStartValues(uint256 _increasePositionRequestKeysStart, uint256 _decreasePositionRequestKeysStart)
withdrawFees(address _token, address _receiver)
CancelDecreasePosition(address indexed account, address[] path, address indexToken, uint256 collateralDelta, uint256 sizeDelta, bool isLong, address receiver, uint256 acceptablePrice, uint256 minOut, uint256 executionFee, uint256 blockGap, uint256 timeGap)
CancelIncreasePosition(address indexed account, address[] path, address indexToken, uint256 amountIn, uint256 minOut, uint256 sizeDelta, bool isLong, uint256 acceptablePrice, uint256 executionFee, uint256 blockGap, uint256 timeGap)
CreateDecreasePosition(address indexed account, address[] path, address indexToken, uint256 collateralDelta, uint256 sizeDelta, bool isLong, address receiver, uint256 acceptablePrice, uint256 minOut, uint256 executionFee, uint256 index, uint256 blockNumber, uint256 blockTime)
CreateIncreasePosition(address indexed account, address[] path, address indexToken, uint256 amountIn, uint256 minOut, uint256 sizeDelta, bool isLong, uint256 acceptablePrice, uint256 executionFee, uint256 index, uint256 blockNumber, uint256 blockTime, uint256 gasPrice)
DecreasePositionReferral(address account, uint256 sizeDelta, uint256 marginFeeBasisPoints, bytes32 referralCode, address referrer)
ExecuteDecreasePosition(address indexed account, address[] path, address indexToken, uint256 collateralDelta, uint256 sizeDelta, bool isLong, address receiver, uint256 acceptablePrice, uint256 minOut, uint256 executionFee, uint256 blockGap, uint256 timeGap)
ExecuteIncreasePosition(address indexed account, address[] path, address indexToken, uint256 amountIn, uint256 minOut, uint256 sizeDelta, bool isLong, uint256 acceptablePrice, uint256 executionFee, uint256 blockGap, uint256 timeGap)
IncreasePositionReferral(address account, uint256 sizeDelta, uint256 marginFeeBasisPoints, bytes32 referralCode, address referrer)
SetAdmin(address admin)
SetDelayValues(uint256 minBlockDelayKeeper, uint256 minTimeDelayPublic, uint256 maxTimeDelay)
SetDepositFee(uint256 depositFee)
SetIncreasePositionBufferBps(uint256 increasePositionBufferBps)
SetIsLeverageEnabled(bool isLeverageEnabled)
SetMaxGlobalSizes(address[] tokens, uint256[] longSizes, uint256[] shortSizes)
SetMinExecutionFee(uint256 minExecutionFee)
SetPositionKeeper(address indexed account, bool isActive)
SetReferralStorage(address referralStorage)
SetRequestKeysStartValues(uint256 increasePositionRequestKeysStart, uint256 decreasePositionRequestKeysStart)
WithdrawFees(address token, address receiver, uint256 amount)
constructor(address _vault, address _router, address _weth, uint256 _depositFee, uint256 _minExecutionFee)
receive()
This contract contains no error objects.