LBRouter

Verified contract

Active on Base with 136 txns
Deployed by via 0x7a17b677 at 2742270
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "LBRouter"

0x4f439b54ff64652007eff5e590d227aa2ff4094b12057280723be08e438e2423
0x08547e682cac9e3414e1c585452b01e2377b2bad0cf6ab58abb72af15d6405f8
0xedddf7612adec5605a8485fa191441a94a686bc573dd55bf08673ad569bcb7e3
0x760464dc283e58d8d7eab082fc1cdabe9ecc6c8d70c4e202c3bf31299fe7456a
0x014e135fee2bd1bc80b552f007154b7ad93424be67900033645e972ebb556a78
0x7e4b2ee135d3d4ce1760bc3ea5c48cd0ae0b9517be8d104cc300134248ccd033
0x780c8013d7281145f3c6771662f39c47c0082e34feb09fdc35995737ea974412
0x0adc8a43bb14f6a0bfb9f29163492b9d50caf108d9a8a4b96996e236bfa66c39
0xfc58db075cf19fae94665a41a58414d411001d06023d4888c2d8f1f561635b7b
0xa2627ea7b92753b0c2070d89e80d979edadbb54c5d0e9706af6649a1b1aeb1bd

Functions
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 pairuint256 priceview returns (uint24)
getPriceFromId(address pairuint24 idview returns (uint256)
getSwapIn(address pairuint128 amountOutbool swapForYview returns (uint128 amountInuint128 amountOutLeftuint128 fee)
getSwapOut(address pairuint128 amountInbool swapForYview returns (uint128 amountInLeftuint128 amountOutuint128 fee)
totalRewardToken(addressview returns (uint256)
State-modifying
addLiquidity(struct ILBRouterLiquidityParameters liquidityParametersreturns (uint256 amountXAddeduint256 amountYAddeduint256 amountXLeftuint256 amountYLeftuint256[] depositIdsuint256[] liquidityMinted)
addLiquidityNATIVE(struct ILBRouterLiquidityParameters liquidityParameterspayable returns (uint256 amountXAddeduint256 amountYAddeduint256 amountXLeftuint256 amountYLeftuint256[] depositIdsuint256[] liquidityMinted)
createLBPair(address tokenXaddress tokenYuint24 activeIduint16 binStepreturns (address pair)
removeLiquidity(address tokenXaddress tokenYuint16 binStepuint256 amountXMinuint256 amountYMinuint256[] idsuint256[] amountsaddress touint256 deadlinereturns (uint256 amountXuint256 amountY)
removeLiquidityNATIVE(address tokenuint16 binStepuint256 amountTokenMinuint256 amountNATIVEMinuint256[] idsuint256[] amountsaddress touint256 deadlinereturns (uint256 amountTokenuint256 amountNATIVE)
setBonziRewardToken(address _bonziRewardToken
setBonziToken(address _bonziToken
swapExactNATIVEForTokens(uint256 amountOutMinstruct ILBRouterPath pathaddress touint256 deadlinepayable returns (uint256 amountOut)
swapExactNATIVEForTokensSupportingFeeOnTransferTokens(uint256 amountOutMinstruct ILBRouterPath pathaddress touint256 deadlinepayable returns (uint256 amountOut)
swapExactTokensForNATIVE(uint256 amountInuint256 amountOutMinNATIVEstruct ILBRouterPath pathaddress touint256 deadlinereturns (uint256 amountOut)
swapExactTokensForNATIVESupportingFeeOnTransferTokens(uint256 amountInuint256 amountOutMinNATIVEstruct ILBRouterPath pathaddress touint256 deadlinereturns (uint256 amountOut)
swapExactTokensForTokens(uint256 amountInuint256 amountOutMinstruct ILBRouterPath pathaddress touint256 deadlinereturns (uint256 amountOut)
swapExactTokensForTokensSupportingFeeOnTransferTokens(uint256 amountInuint256 amountOutMinstruct ILBRouterPath pathaddress touint256 deadlinereturns (uint256 amountOut)
swapNATIVEForExactTokens(uint256 amountOutstruct ILBRouterPath pathaddress touint256 deadlinepayable returns (uint256[] amountsIn)
swapTokensForExactNATIVE(uint256 amountNATIVEOutuint256 amountInMaxstruct ILBRouterPath pathaddress touint256 deadlinereturns (uint256[] amountsIn)
swapTokensForExactTokens(uint256 amountOutuint256 amountInMaxstruct ILBRouterPath pathaddress touint256 deadlinereturns (uint256[] amountsIn)
sweep(address tokenaddress touint256 amount
sweepLBToken(address lbTokenaddress touint256[] idsuint256[] amounts
Events

This contract contains no event objects.

Constructor
constructor(address factoryaddress factoryV1address legacyFactoryaddress legacyRouteraddress wnative
Fallback and receive
receive(
Errors
AddressHelper__CallFailed(
AddressHelper__NonContract(
JoeLibrary__InsufficientAmount(
JoeLibrary__InsufficientLiquidity(
LBRouter__AmountSlippageBPTooBig(uint256 amountSlippage
LBRouter__AmountSlippageCaught(uint256 amountXMinuint256 amountXuint256 amountYMinuint256 amountY
LBRouter__BinReserveOverflows(uint256 id
LBRouter__BrokenSwapSafetyCheck(
LBRouter__DeadlineExceeded(uint256 deadlineuint256 currentTimestamp
LBRouter__FailedToSendNATIVE(address recipientuint256 amount
LBRouter__IdDesiredOverflows(uint256 idDesireduint256 idSlippage
LBRouter__IdOverflows(int256 id
LBRouter__IdSlippageCaught(uint256 activeIdDesireduint256 idSlippageuint256 activeId
LBRouter__InsufficientAmountOut(uint256 amountOutMinuint256 amountOut
LBRouter__InvalidTokenPath(address wrongToken
LBRouter__InvalidVersion(uint256 version
LBRouter__LengthsMismatch(
LBRouter__MaxAmountInExceeded(uint256 amountInMaxuint256 amountIn
LBRouter__NotFactoryOwner(
LBRouter__PairNotCreated(address tokenXaddress tokenYuint256 binStep
LBRouter__SenderIsNotWNATIVE(
LBRouter__SwapOverflows(uint256 id
LBRouter__TooMuchTokensIn(uint256 excess
LBRouter__WrongAmounts(uint256 amountuint256 reserve
LBRouter__WrongNativeLiquidityParameters(address tokenXaddress tokenYuint256 amountXuint256 amountYuint256 msgValue
LBRouter__WrongTokenOrder(
TokenHelper__TransferFailed(