Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Balances ($0.00)
No balances found for "LBRouter"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 2978942 | a year ago | | | 0 | 0.00071827307 | |
| 2978721 | a year ago | | | 0.001 | 0.00036140529 | |
| 2908166 | a year ago | | | 0 | 0.00071853755 | |
| 2907333 | a year ago | | | 0 | 0.037717154 | |
| 2907210 | a year ago | | | 0 | 0.0083547415 | |
| 2906984 | a year ago | | | 0.022 | 0.0000044677100 | |
| 2906936 | a year ago | | | 0.00032609 | 0.000017596650 | |
| 2906872 | a year ago | | | 0.0001087 | 0.00014781186 | |
| 2906838 | a year ago | | | 0.02173948 | 0.00014753214 | |
| 2900648 | a year ago | | | 0.028 | 0.00069303271 |
ABI
ABI objects
Getter at block 21783097
bonziRewardToken() view returns (address)
0x953b73df1f01c728f22733c82cc795b367fc902c
bonziToken() view returns (address)
0x3ce1d02f6968a30925c4ac7de02f29d36ccf5211
getFactory() view returns (address lbFactory)
0x1fe65924b5a8563f25fe344aff71ec59fef45f7f
getLegacyFactory() view returns (address legacyLBfactory)
0x0000000000000000000000000000000000000000
getLegacyRouter() view returns (address legacyRouter)
0x0000000000000000000000000000000000000000
getV1Factory() view returns (address factoryV1)
0x0000000000000000000000000000000000000000
getWNATIVE() view returns (address wnative)
0x4200000000000000000000000000000000000006
Read-only
getIdFromPrice(address pair, uint256 price) view returns (uint24)
getPriceFromId(address pair, uint24 id) view returns (uint256)
getSwapIn(address pair, uint128 amountOut, bool swapForY) view returns (uint128 amountIn, uint128 amountOutLeft, uint128 fee)
getSwapOut(address pair, uint128 amountIn, bool swapForY) view returns (uint128 amountInLeft, uint128 amountOut, uint128 fee)
totalRewardToken(address) view returns (uint256)
State-modifying
Events addLiquidity(struct ILBRouterLiquidityParameters liquidityParameters) returns (uint256 amountXAdded, uint256 amountYAdded, uint256 amountXLeft, uint256 amountYLeft, uint256[] depositIds, uint256[] liquidityMinted)
addLiquidityNATIVE(struct ILBRouterLiquidityParameters liquidityParameters) payable returns (uint256 amountXAdded, uint256 amountYAdded, uint256 amountXLeft, uint256 amountYLeft, uint256[] depositIds, uint256[] liquidityMinted)
createLBPair(address tokenX, address tokenY, uint24 activeId, uint16 binStep) returns (address pair)
removeLiquidity(address tokenX, address tokenY, uint16 binStep, uint256 amountXMin, uint256 amountYMin, uint256[] ids, uint256[] amounts, address to, uint256 deadline) returns (uint256 amountX, uint256 amountY)
removeLiquidityNATIVE(address token, uint16 binStep, uint256 amountTokenMin, uint256 amountNATIVEMin, uint256[] ids, uint256[] amounts, address to, uint256 deadline) returns (uint256 amountToken, uint256 amountNATIVE)
setBonziRewardToken(address _bonziRewardToken)
setBonziToken(address _bonziToken)
swapExactNATIVEForTokens(uint256 amountOutMin, struct ILBRouterPath path, address to, uint256 deadline) payable returns (uint256 amountOut)
swapExactNATIVEForTokensSupportingFeeOnTransferTokens(uint256 amountOutMin, struct ILBRouterPath path, address to, uint256 deadline) payable returns (uint256 amountOut)
swapExactTokensForNATIVE(uint256 amountIn, uint256 amountOutMinNATIVE, struct ILBRouterPath path, address to, uint256 deadline) returns (uint256 amountOut)
swapExactTokensForNATIVESupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMinNATIVE, struct ILBRouterPath path, address to, uint256 deadline) returns (uint256 amountOut)
swapExactTokensForTokens(uint256 amountIn, uint256 amountOutMin, struct ILBRouterPath path, address to, uint256 deadline) returns (uint256 amountOut)
swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256 amountIn, uint256 amountOutMin, struct ILBRouterPath path, address to, uint256 deadline) returns (uint256 amountOut)
swapNATIVEForExactTokens(uint256 amountOut, struct ILBRouterPath path, address to, uint256 deadline) payable returns (uint256[] amountsIn)
swapTokensForExactNATIVE(uint256 amountNATIVEOut, uint256 amountInMax, struct ILBRouterPath path, address to, uint256 deadline) returns (uint256[] amountsIn)
swapTokensForExactTokens(uint256 amountOut, uint256 amountInMax, struct ILBRouterPath path, address to, uint256 deadline) returns (uint256[] amountsIn)
sweep(address token, address to, uint256 amount)
sweepLBToken(address lbToken, address to, uint256[] ids, uint256[] amounts)
This contract contains no event objects.
constructor(address factory, address factoryV1, address legacyFactory, address legacyRouter, address wnative)
receive()
AddressHelper__CallFailed()
AddressHelper__NonContract()
JoeLibrary__InsufficientAmount()
JoeLibrary__InsufficientLiquidity()
LBRouter__AmountSlippageBPTooBig(uint256 amountSlippage)
LBRouter__AmountSlippageCaught(uint256 amountXMin, uint256 amountX, uint256 amountYMin, uint256 amountY)
LBRouter__BinReserveOverflows(uint256 id)
LBRouter__BrokenSwapSafetyCheck()
LBRouter__DeadlineExceeded(uint256 deadline, uint256 currentTimestamp)
LBRouter__FailedToSendNATIVE(address recipient, uint256 amount)
LBRouter__IdDesiredOverflows(uint256 idDesired, uint256 idSlippage)
LBRouter__IdOverflows(int256 id)
LBRouter__IdSlippageCaught(uint256 activeIdDesired, uint256 idSlippage, uint256 activeId)
LBRouter__InsufficientAmountOut(uint256 amountOutMin, uint256 amountOut)
LBRouter__InvalidTokenPath(address wrongToken)
LBRouter__InvalidVersion(uint256 version)
LBRouter__LengthsMismatch()
LBRouter__MaxAmountInExceeded(uint256 amountInMax, uint256 amountIn)
LBRouter__NotFactoryOwner()
LBRouter__PairNotCreated(address tokenX, address tokenY, uint256 binStep)
LBRouter__SenderIsNotWNATIVE()
LBRouter__SwapOverflows(uint256 id)
LBRouter__TooMuchTokensIn(uint256 excess)
LBRouter__WrongAmounts(uint256 amount, uint256 reserve)
LBRouter__WrongNativeLiquidityParameters(address tokenX, address tokenY, uint256 amountX, uint256 amountY, uint256 msgValue)
LBRouter__WrongTokenOrder()
TokenHelper__TransferFailed()