LockBox

Verified contract

Active on Base with 1,268 txns
Deployed by via 0x1b083f2c at 18733446
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
ERC-20
Value $222,504.66
ERC-20
--
0xb929ac9679fe7705221cc7fa27012b677d6b50081d862e7eb8dc8fb0a69f882e
0x4a3c9e049fa506251dc1dac6e2f771396e77c79c3d9e061a6fd05070f726ff49
0x10657b083d9d6dbe7a39715a0ecfed591c832078dc3d1e940d42ac08e61943b3
0xfe579c054f24697a8cf2317e9dbb37ea1a61073b37fc5611bf6270ef6fc14999
0x2683555b86a9ee164cdce0dd6d3ca9f58e9b53b1560283cda3f07950f9321b0a
0xcb11b68d3157bb391d25bb706f2017085950cbc46922f908a03c1ad0012cb79f
0xc5ab2ad185b21a3fada9ebaf8eaaa0a14e02662ae2b9ab4462e09ec4bbb7e325
0x068f125e96b50111300617d538b55825e8cafcbd30d94b0ae5361ba3b11858a7
0x4a5e7bc9478cd247f24f203a8f650b055fef2fe2cea8b1b08e5e55d4cfef021f
0xf2e6be92ce0a8d07e6e31bc90d557e666690969106df75d25125433db40672ca

Functions
Getter at block 22768186
assetContract(view returns (address)
0x917f39bb33b2483dd19546b1e8d2f09ce481ee44
computeLpStats(view returns (uint256 currentLpTokensuint256 currentAssetuint256 lastLpTokensuint256 lastAssetuint256 averageLpTokensuint256 averageAssetuint32 timestampbool useAveragebool persistUpdate)
(currentLpTokens=182733019544355518848377, currentAsset=338919596132621434463291762, lastLpTokens=182733019544355518848377, lastAsset=338915237832272065633100167, averageLpTokens=182731392481310919123800, averageAsset=338878141105504141499047149, timestamp=1732324269, useAverage=true, persistUpdate=true)
getCurrentLpStats(view returns (uint256 totalLpTokensOutstandinguint256 totalAssetUnitsStakeduint32 timestamp)
(totalLpTokensOutstanding=182733019544355518848377, totalAssetUnitsStaked=338919596132621434463291762, timestamp=1732324269)
getLpStats(view returns (uint256 lastLpTokensuint256 lastAssetuint256 averageLpTokensuint256 averageAssetuint32 timestamp)
(lastLpTokens=182733019544355518848377, lastAsset=338915237832272065633100167, averageLpTokens=182729765418266319399223, averageAsset=338836686078386848534802537, timestamp=1732314365)
lpTokenContract(view returns (address)
0x6183e613dda1fa146c90be6e1757aef15bacad9d
name(view returns (string)
LockBox
symbol(view returns (string)
LBX
totalAssetLocked(view returns (uint256)
219168906565971861376755804
totalLpTokenLocked(view returns (uint256)
80475053295953906112703
totalSupply(view returns (uint256)
496
Read-only
balanceOf(address ownerview returns (uint256)
getApproved(uint256 tokenIdview returns (address)
isApprovedForAll(address owneraddress operatorview returns (bool)
kvStore(uint256stringview returns (bytes)
lockups(uint256view returns (uint256 amountAssetuint256 amountLpTokenuint256 lpTokenValuationuint256 assetSecondsLockeduint256 lpSecondsLockeduint64 createTimeuint64 lastDepositTimeuint64 durationSecondsbool autoRelock)
ownerOf(uint256 tokenIdview returns (address)
supportsInterface(bytes4 interfaceIdview returns (bool)
tokenByIndex(uint256 indexview returns (uint256)
tokenOfOwnerByIndex(address owneruint256 indexview returns (uint256)
tokenURI(uint256 tokenIdview returns (string)
State-modifying
addAssets(uint256 lockupIduint256 assetToAdduint256 lpTokenToAddbool resetStartTimestruct ILockBoxKeyVal[] entriesToUpdate
approve(address touint256 tokenId
changeDuration(uint256 lockupIduint64 newDurationSecondsbool autoRelockstruct ILockBoxKeyVal[] entriesToUpdate
computeUpdateLpStats(returns (uint256 totalLpTokensOutstandinguint256 totalAssetUnitsStaked)
createLockup(uint256 amountAssetuint256 amountLpTokenuint64 durationSecondsbool autoRelockstruct ILockBoxKeyVal[] entriesToUpdatereturns (uint256)
safeTransferFrom(address fromaddress touint256 tokenId
safeTransferFrom(address fromaddress touint256 tokenIdbytes data
setApprovalForAll(address operatorbool approved
setKvStore(uint256 tokenIdstruct ILockBoxKeyVal[] entriesToUpdate
transferFrom(address fromaddress touint256 tokenId
unlock(uint256 lockupId
Events
Approval(address indexed owneraddress indexed approveduint256 indexed tokenId
ApprovalForAll(address indexed owneraddress indexed operatorbool approved
AssetsAdded(uint256 tokenIdaddress addedBybool resetStartTimeuint256 amountAssetuint256 amountLpTokenuint64 effectiveDurationuint256 lpTokenValuation
DurationChanged(uint256 tokenIduint64 newDurationbool autoRelock
KvUpdate(uint256 tokenIdstring keybytes value
LockupCreated(uint256 tokenIdaddress owneruint256 amountAssetuint256 amountLpTokenuint64 durationSecondsuint256 lpTokenValuationbool autoRelock
Transfer(address indexed fromaddress indexed touint256 indexed tokenId
Unlocked(uint256 tokenIdaddress owneruint256 amountAssetuint256 amountLpToken
Constructor
constructor(address assetAddressaddress lpTokenAddress
Fallback and receive

This contract contains no fallback and receive objects.

Errors
AddressEmptyCode(address target
AddressInsufficientBalance(address account
ERC721EnumerableForbiddenBatchMint(
ERC721IncorrectOwner(address senderuint256 tokenIdaddress owner
ERC721InsufficientApproval(address operatoruint256 tokenId
ERC721InvalidApprover(address approver
ERC721InvalidOperator(address operator
ERC721InvalidOwner(address owner
ERC721InvalidReceiver(address receiver
ERC721InvalidSender(address sender
ERC721NonexistentToken(uint256 tokenId
ERC721OutOfBoundsIndex(address owneruint256 index
EnabledAutoRelock(
FailedInnerCall(
MismatchUniswapPairToken(
NoLPTokenOutstanding(
NotOwner(
ReentrancyGuardReentrantCall(
SafeERC20FailedOperation(address token
TooManyEntries(
UnexpiredLockup(
WrongDuration(