PositionRouter
Verified contract
Active on
Base with 7,588 txns
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
6 additional
variables
Balances ($156.42)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
tBTC | ERC-20 | 0.001285 | $94,525.00 |
$121.47 | |
WETH | ERC-20 | 0.010168 | $3,431.62 |
$34.89 | |
WGC | ERC-20 | 200 | $0.000321 |
$0.06 | |
USA | ERC-20 | 1 | $0.000717 |
$0 | |
kurbi | ERC-20 | 0.2 | $0.000531 |
$0 | |
OHNO | ERC-20 | 52 | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 21689750 | a month ago | | | 0.00005 | 0.0000049519684 | |
| 21689060 | a month ago | | | 0.01005 | 0.0000043034316 | |
| 19397968 | 3 months ago | | | 0.01005 | 0.0000010222773 | |
| 19397875 | 3 months ago | | | 0.03005 | 0.0000011139691 | |
| 19329245 | 3 months ago | | | 0.00005 | 0.0000018292504 | |
| 19329239 | 3 months ago | | | 0.00005 | 0.0000021540968 | |
| 19329074 | 3 months ago | | | 0.00005 | 0.0000017977116 | |
| 19329038 | 3 months ago | | | 0.00005 | 0.0000021540272 | |
| 19328880 | 3 months ago | | | 0.00005 | 0.0000020798176 | |
| 19328605 | 3 months ago | | | 0.00005 | 0.0000017031600 |
ABI
ABI objects
Getter at block 22905753
BASIS_POINTS_DIVISOR() view returns (uint256)
10000
admin() view returns (address)
0x4f6e437f7e90087f7090acfe967d77ba0b4c7444
callbackGasLimit() view returns (uint256)
800000
decreasePositionRequestKeysStart() view returns (uint256)
3545
depositFee() view returns (uint256)
30
ethTransferGasLimit() view returns (uint256)
500000
getRequestQueueLengths() view returns (uint256, uint256, uint256, uint256)
(4034, 4034, 3545, 3545)
gov() view returns (address)
0x4f6e437f7e90087f7090acfe967d77ba0b4c7444
increasePositionBufferBps() view returns (uint256)
100
increasePositionRequestKeysStart() view returns (uint256)
4034
isLeverageEnabled() view returns (bool)
true
maxTimeDelay() view returns (uint256)
1800
minBlockDelayKeeper() view returns (uint256)
0
minExecutionFee() view returns (uint256)
50000000000000
minTimeDelayPublic() view returns (uint256)
180
referralStorage() view returns (address)
0x695567657651c05daf617a8e851a7436ce56e1df
router() view returns (address)
0x6a5a8aa9d251034b9e5034e1c0305c06f7102fae
shortsTracker() view returns (address)
0x83f29709dbaf3d8612d85091e75bc01b607e8238
vault() view returns (address)
0x102b73ca761f5dfb59918f62604b54aeb2fb0b3e
weth() view returns (address)
0x4200000000000000000000000000000000000006
Read-only
customCallbackGasLimits(address) view returns (uint256)
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, address callbackTarget)
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, address callbackTarget)
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, address _callbackTarget) payable returns (bytes32)
createIncreasePosition(address[] _path, address _indexToken, uint256 _amountIn, uint256 _minOut, uint256 _sizeDelta, bool _isLong, uint256 _acceptablePrice, uint256 _executionFee, bytes32 _referralCode, address _callbackTarget) payable returns (bytes32)
createIncreasePositionETH(address[] _path, address _indexToken, uint256 _minOut, uint256 _sizeDelta, bool _isLong, uint256 _acceptablePrice, uint256 _executionFee, bytes32 _referralCode, address _callbackTarget) payable returns (bytes32)
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)
setCallbackGasLimit(uint256 _callbackGasLimit)
setCustomCallbackGasLimit(address _callbackTarget, uint256 _callbackGasLimit)
setDelayValues(uint256 _minBlockDelayKeeper, uint256 _minTimeDelayPublic, uint256 _maxTimeDelay)
setDepositFee(uint256 _depositFee)
setEthTransferGasLimit(uint256 _ethTransferGasLimit)
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)
Callback(address callbackTarget, bool success, uint256 callbackGasLimit)
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 queueIndex, 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 queueIndex, 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)
SetCallbackGasLimit(uint256 callbackGasLimit)
SetCustomCallbackGasLimit(address callbackTarget, uint256 callbackGasLimit)
SetDelayValues(uint256 minBlockDelayKeeper, uint256 minTimeDelayPublic, uint256 maxTimeDelay)
SetDepositFee(uint256 depositFee)
SetEthTransferGasLimit(uint256 ethTransferGasLimit)
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, address _shortsTracker, uint256 _depositFee, uint256 _minExecutionFee)
receive()
AddressEmptyCode(address target)
AddressInsufficientBalance(address account)
FailedInnerCall()
PositionRouter_403()
PositionRouter_CallbackFailed()
PositionRouter_expired()
ReentrancyGuardReentrantCall()
SafeERC20FailedOperation(address token)