Liquidity Book Token
Unverified contract
Proxy
Active on
Base with 85 txns
Unified storage
Map
Table
Raw
Constants and immutables
0
Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
-
variable spans 2 additional slots
-
variable spans 65534 additional slots
Balances ($0.00)
Asset | Symbol | Type | Quantity | Price | Value |
---|---|---|---|---|---|
WETH | ERC-20 | 0 | $2,711.15 |
$0 | |
BONZI | ERC-20 | 198.25409K | -- | -- |
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 2978932 | a year ago | | | 0 | 0.00012258260 | |
| 2945667 | a year ago | | | 0 | 0.000072832504 | |
| 2945573 | a year ago | | | 0 | 0.000072832504 | |
| 2945558 | a year ago | | | 0 | 0.000072832504 | |
| 2908155 | a year ago | | | 0 | 0.00012258251 | |
| 2907312 | a year ago | | | 0 | 0.000072832508 | |
| 2905026 | a year ago | | | 0 | 0.00012258251 | |
| 2900303 | a year ago | | | 0 | 0.0000032046300 | |
| 2900149 | a year ago | | | 0 | 2.9133000e-7 | |
| 2900122 | a year ago | | | 0 | 0.0000046612800 |
ABI
ABI objects
Getter at block 21754420
getActiveId() view returns (uint24 activeId)
8378777
getBinStep() pure returns (uint16)
10
getFactory() view returns (address factory)
0x1fe65924b5a8563f25fe344aff71ec59fef45f7f
getOracleParameters() view returns (uint8 sampleLifetime, uint16 size, uint16 activeSize, uint40 lastUpdated, uint40 firstTimestamp)
(sampleLifetime=120, size=0, activeSize=0, lastUpdated=0, firstTimestamp=0)
getProtocolFees() view returns (uint128 protocolFeeX, uint128 protocolFeeY)
(protocolFeeX=0, protocolFeeY=0)
getReserves() view returns (uint128 reserveX, uint128 reserveY)
(reserveX=198254089989719227463013, reserveY=1302795445)
getStaticFeeParameters() view returns (uint16 baseFactor, uint16 filterPeriod, uint16 decayPeriod, uint16 reductionFactor, uint24 variableFeeControl, uint16 protocolShare, uint24 maxVolatilityAccumulator)
(baseFactor=10000, filterPeriod=30, decayPeriod=600, reductionFactor=5000, variableFeeControl=40000, protocolShare=0, maxVolatilityAccumulator=350000)
getTokenX() pure returns (address tokenX)
0x3ce1d02f6968a30925c4ac7de02f29d36ccf5211
getTokenY() pure returns (address tokenY)
0x4200000000000000000000000000000000000006
getVariableFeeParameters() view returns (uint24 volatilityAccumulator, uint24 volatilityReference, uint24 idReference, uint40 timeOfLastUpdate)
(volatilityAccumulator=0, volatilityReference=0, idReference=8378777, timeOfLastUpdate=1718467091)
name() view returns (string)
Liquidity Book Token
symbol() view returns (string)
LBT
Read-only
balanceOf(address account, uint256 id) view returns (uint256)
balanceOfBatch(address[] accounts, uint256[] ids) view returns (uint256[] batchBalances)
getBin(uint24 id) view returns (uint128 binReserveX, uint128 binReserveY)
getIdFromPrice(uint256 price) pure returns (uint24 id)
getNextNonEmptyBin(bool swapForY, uint24 id) view returns (uint24 nextId)
getOracleSampleAt(uint40 lookupTimestamp) view returns (uint64 cumulativeId, uint64 cumulativeVolatility, uint64 cumulativeBinCrossed)
getPriceFromId(uint24 id) pure returns (uint256 price)
getSwapIn(uint128 amountOut, bool swapForY) view returns (uint128 amountIn, uint128 amountOutLeft, uint128 fee)
getSwapOut(uint128 amountIn, bool swapForY) view returns (uint128 amountInLeft, uint128 amountOut, uint128 fee)
isApprovedForAll(address owner, address spender) view returns (bool)
totalSupply(uint256 id) view returns (uint256)
State-modifying
Events approveForAll(address spender, bool approved)
batchTransferFrom(address from, address to, uint256[] ids, uint256[] amounts)
burn(address from, address to, uint256[] ids, uint256[] amountsToBurn) returns (bytes32[] amounts)
collectProtocolFees() returns (bytes32 collectedProtocolFees)
flashLoan(address receiver, bytes32 amounts, bytes data)
forceDecay()
increaseOracleLength(uint16 newLength)
initialize(uint16 baseFactor, uint16 filterPeriod, uint16 decayPeriod, uint16 reductionFactor, uint24 variableFeeControl, uint16 protocolShare, uint24 maxVolatilityAccumulator, uint24 activeId)
mint(address to, bytes32[] liquidityConfigs, address refundTo) returns (bytes32 amountsReceived, bytes32 amountsLeft, uint256[] liquidityMinted)
setStaticFeeParameters(uint16 baseFactor, uint16 filterPeriod, uint16 decayPeriod, uint16 reductionFactor, uint24 variableFeeControl, uint16 protocolShare, uint24 maxVolatilityAccumulator)
swap(bool swapForY, address to) returns (bytes32 amountsOut)
ApprovalForAll(address indexed account, address indexed sender, bool approved)
CollectedProtocolFees(address indexed feeRecipient, bytes32 protocolFees)
CompositionFees(address indexed sender, uint24 id, bytes32 totalFees, bytes32 protocolFees)
DepositedToBins(address indexed sender, address indexed to, uint256[] ids, bytes32[] amounts)
FlashLoan(address indexed sender, address indexed receiver, uint24 activeId, bytes32 amounts, bytes32 totalFees, bytes32 protocolFees)
ForcedDecay(address indexed sender, uint24 idReference, uint24 volatilityReference)
OracleLengthIncreased(address indexed sender, uint16 oracleLength)
StaticFeeParametersSet(address indexed sender, uint16 baseFactor, uint16 filterPeriod, uint16 decayPeriod, uint16 reductionFactor, uint24 variableFeeControl, uint16 protocolShare, uint24 maxVolatilityAccumulator)
Swap(address indexed sender, address indexed to, uint24 id, bytes32 amountsIn, bytes32 amountsOut, uint24 volatilityAccumulator, bytes32 totalFees, bytes32 protocolFees)
TransferBatch(address indexed sender, address indexed from, address indexed to, uint256[] ids, uint256[] amounts)
WithdrawnFromBins(address indexed sender, address indexed to, uint256[] ids, bytes32[] amounts)
This contract contains no constructor objects.
This contract contains no fallback and receive objects.
AddressHelper__CallFailed()
AddressHelper__NonContract()
BinHelper__CompositionFactorFlawed(uint24 id)
BinHelper__LiquidityOverflow()
FeeHelper__FeeTooLarge()
LBPair__AddressZero()
LBPair__AlreadyInitialized()
LBPair__EmptyMarketConfigs()
LBPair__FlashLoanCallbackFailed()
LBPair__FlashLoanInsufficientAmount()
LBPair__InsufficientAmountIn()
LBPair__InsufficientAmountOut()
LBPair__InvalidInput()
LBPair__InvalidStaticFeeParameters()
LBPair__MaxTotalFeeExceeded()
LBPair__OnlyFactory()
LBPair__OnlyProtocolFeeRecipient()
LBPair__OutOfLiquidity()
LBPair__TokenNotSupported()
LBPair__ZeroAmount(uint24 id)
LBPair__ZeroAmountsOut(uint24 id)
LBPair__ZeroBorrowAmount()
LBPair__ZeroShares(uint24 id)
LBToken__AddressThisOrZero()
LBToken__BurnExceedsBalance(address from, uint256 id, uint256 amount)
LBToken__InvalidLength()
LBToken__SelfApproval(address owner)
LBToken__SpenderNotApproved(address from, address spender)
LBToken__TransferExceedsBalance(address from, uint256 id, uint256 amount)
LiquidityConfigurations__InvalidConfig()
OracleHelper__InvalidOracleId()
OracleHelper__LookUpTimestampTooOld()
OracleHelper__NewLengthTooSmall()
PackedUint128Math__AddOverflow()
PackedUint128Math__MultiplierTooLarge()
PackedUint128Math__SubUnderflow()
PairParametersHelper__InvalidParameter()
ReentrancyGuard__ReentrantCall()
SafeCast__Exceeds128Bits()
SafeCast__Exceeds24Bits()
SafeCast__Exceeds40Bits()
TokenHelper__TransferFailed()
Uint128x128Math__LogUnderflow()
Uint128x128Math__PowUnderflow(uint256 x, int256 y)
Uint256x256Math__MulDivOverflow()
Uint256x256Math__MulShiftOverflow()