Liquidity Book Token
Verified contract
Implementation
Active on
Base with 0 txns
Storage
Map
Table
Raw
Constants and immutables
51
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)
No balances found for "Liquidity Book Token"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|
No transactions found for "Liquidity Book Token"
ABI
ABI objects
Getter at block 23185936
getActiveId() view returns (uint24 activeId)
0
getBinStep() pure returns (uint16)
0
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=0, reserveY=0)
getStaticFeeParameters() view returns (uint16 baseFactor, uint16 filterPeriod, uint16 decayPeriod, uint16 reductionFactor, uint24 variableFeeControl, uint16 protocolShare, uint24 maxVolatilityAccumulator)
(baseFactor=1, filterPeriod=0, decayPeriod=0, reductionFactor=0, variableFeeControl=0, protocolShare=0, maxVolatilityAccumulator=0)
getTokenX() pure returns (address tokenX)
0x0000000000000000000000000000000000000000
getTokenY() pure returns (address tokenY)
0x0000000000000000000000000000000000000000
getVariableFeeParameters() view returns (uint24 volatilityAccumulator, uint24 volatilityReference, uint24 idReference, uint40 timeOfLastUpdate)
(volatilityAccumulator=0, volatilityReference=0, idReference=0, timeOfLastUpdate=0)
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)
constructor(address factory_)
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()