Liquidity Book Token

Verified contract

Implementation

Active on Base with 0 txns
Deployed by via 0xf2a20444 at 2431014
Slot
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

No balances found for "Liquidity Book Token"

No transactions found for "Liquidity Book Token"


Functions
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 sampleLifetimeuint16 sizeuint16 activeSizeuint40 lastUpdateduint40 firstTimestamp)
(sampleLifetime=120, size=0, activeSize=0, lastUpdated=0, firstTimestamp=0)
getProtocolFees(view returns (uint128 protocolFeeXuint128 protocolFeeY)
(protocolFeeX=0, protocolFeeY=0)
getReserves(view returns (uint128 reserveXuint128 reserveY)
(reserveX=0, reserveY=0)
getStaticFeeParameters(view returns (uint16 baseFactoruint16 filterPerioduint16 decayPerioduint16 reductionFactoruint24 variableFeeControluint16 protocolShareuint24 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 volatilityAccumulatoruint24 volatilityReferenceuint24 idReferenceuint40 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 accountuint256 idview returns (uint256)
balanceOfBatch(address[] accountsuint256[] idsview returns (uint256[] batchBalances)
getBin(uint24 idview returns (uint128 binReserveXuint128 binReserveY)
getIdFromPrice(uint256 pricepure returns (uint24 id)
getNextNonEmptyBin(bool swapForYuint24 idview returns (uint24 nextId)
getOracleSampleAt(uint40 lookupTimestampview returns (uint64 cumulativeIduint64 cumulativeVolatilityuint64 cumulativeBinCrossed)
getPriceFromId(uint24 idpure returns (uint256 price)
getSwapIn(uint128 amountOutbool swapForYview returns (uint128 amountInuint128 amountOutLeftuint128 fee)
getSwapOut(uint128 amountInbool swapForYview returns (uint128 amountInLeftuint128 amountOutuint128 fee)
isApprovedForAll(address owneraddress spenderview returns (bool)
totalSupply(uint256 idview returns (uint256)
State-modifying
approveForAll(address spenderbool approved
batchTransferFrom(address fromaddress touint256[] idsuint256[] amounts
burn(address fromaddress touint256[] idsuint256[] amountsToBurnreturns (bytes32[] amounts)
collectProtocolFees(returns (bytes32 collectedProtocolFees)
flashLoan(address receiverbytes32 amountsbytes data
forceDecay(
increaseOracleLength(uint16 newLength
initialize(uint16 baseFactoruint16 filterPerioduint16 decayPerioduint16 reductionFactoruint24 variableFeeControluint16 protocolShareuint24 maxVolatilityAccumulatoruint24 activeId
mint(address tobytes32[] liquidityConfigsaddress refundToreturns (bytes32 amountsReceivedbytes32 amountsLeftuint256[] liquidityMinted)
setStaticFeeParameters(uint16 baseFactoruint16 filterPerioduint16 decayPerioduint16 reductionFactoruint24 variableFeeControluint16 protocolShareuint24 maxVolatilityAccumulator
swap(bool swapForYaddress toreturns (bytes32 amountsOut)
Events
ApprovalForAll(address indexed accountaddress indexed senderbool approved
CollectedProtocolFees(address indexed feeRecipientbytes32 protocolFees
CompositionFees(address indexed senderuint24 idbytes32 totalFeesbytes32 protocolFees
DepositedToBins(address indexed senderaddress indexed touint256[] idsbytes32[] amounts
FlashLoan(address indexed senderaddress indexed receiveruint24 activeIdbytes32 amountsbytes32 totalFeesbytes32 protocolFees
ForcedDecay(address indexed senderuint24 idReferenceuint24 volatilityReference
OracleLengthIncreased(address indexed senderuint16 oracleLength
StaticFeeParametersSet(address indexed senderuint16 baseFactoruint16 filterPerioduint16 decayPerioduint16 reductionFactoruint24 variableFeeControluint16 protocolShareuint24 maxVolatilityAccumulator
Swap(address indexed senderaddress indexed touint24 idbytes32 amountsInbytes32 amountsOutuint24 volatilityAccumulatorbytes32 totalFeesbytes32 protocolFees
TransferBatch(address indexed senderaddress indexed fromaddress indexed touint256[] idsuint256[] amounts
WithdrawnFromBins(address indexed senderaddress indexed touint256[] idsbytes32[] amounts
Constructor
constructor(address factory_
Fallback and receive

This contract contains no fallback and receive objects.

Errors
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 fromuint256 iduint256 amount
LBToken__InvalidLength(
LBToken__SelfApproval(address owner
LBToken__SpenderNotApproved(address fromaddress spender
LBToken__TransferExceedsBalance(address fromuint256 iduint256 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 xint256 y
Uint256x256Math__MulDivOverflow(
Uint256x256Math__MulShiftOverflow(