Verified contractExactMIT
PumperLPLocker
Address0xea899ecbe2b69ac0e33e9f8bbc01ea4622b472d2
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.8.35
- Same code
Only this contract
Details
- Compiler
- solc 0.8.35+commit.47b9dedd
- Language
- solidity
- Optimization
- Yes, 200 runs
- EVM version
- osaka
- Via IR
- yes
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 26,384,439
- Creation transaction
- 0xbe9686ff64…58f7523fa7
Read11
- MAX_LOCK_DURATION() → (uint64)
- getLock(uint256) → (tuple)
- lockCount() → (uint256)
- lockIdForPosition(address,uint256) → (bool,uint256)
- lockIdsForLocker(address) → (uint256[])
- lockIdsForLockerRange(address,uint256,uint256) → (uint256[])
- lockIdsForToken(address) → (uint256[])
- lockIdsForTokenRange(address,uint256,uint256) → (uint256[])
- lockerLockCount(address) → (uint256)
- pendingDepositor(address,uint256) → (address)
- tokenLockCount(address) → (uint256)
Write9
- collectFeesNFT(uint256,address) → (uint256,uint256)
- increaseLockERC20(uint256,uint256)
- lock(address,uint256,address)
- lockERC20(address,uint256,uint64) → (uint256)
- onERC721Received(address,address,uint256,bytes) → (bytes4)
- reclaimPending(address,uint256)
- relock(uint256,uint64)
- withdrawERC20(uint256)
- withdrawNFT(uint256)
Events8
- FeesCollected(uint256,address,uint256,uint256)
- LockExtended(uint256,uint64,uint64)
- LockIncreased(uint256,uint256,uint256)
- LockedERC20(uint256,address,address,uint256,uint64)
- LockedNFT(uint256,address,uint256,address,uint64)
- PendingReclaimed(address,uint256,address)
- WithdrawnERC20(uint256,address,uint256)
- WithdrawnNFT(uint256,address,uint256)
Errors15
- AlreadyLocked()
- AlreadyWithdrawn()
- BadLockData()
- NotHeld()
- NotLater()
- NotLocker()
- NothingPending()
- Reentrant()
- StillLocked(uint64)
- TransferFailed()
- UnlockInPast()
- UnlockTooFar()
- WrongKind()
- ZeroAddress()
- ZeroAmount()
ABI as JSON
[
{
"name": "AlreadyLocked",
"type": "error",
"inputs": []
},
{
"name": "AlreadyWithdrawn",
"type": "error",
"inputs": []
},
{
"name": "BadLockData",
"type": "error",
"inputs": []
},
{
"name": "NotHeld",
"type": "error",
"inputs": []
},
{
"name": "NotLater",
"type": "error",
"inputs": []
},
{
"name": "NotLocker",
"type": "error",
"inputs": []
},
{
"name": "NothingPending",
"type": "error",
"inputs": []
},
{
"name": "Reentrant",
"type": "error",
"inputs": []
},
{
"name": "StillLocked",
"type": "error",
"inputs": [
{
"name": "unlockTime",
"type": "uint64",
"internalType": "uint64"
}
]
},
{
"name": "TransferFailed",
"type": "error",
"inputs": []
},
{
"name": "UnlockInPast",
"type": "error",
"inputs": []
},
{
"name": "UnlockTooFar",
"type": "error",
"inputs": []
},
{
"name": "WrongKind",
"type": "error",
"inputs": []
},
{
"name": "ZeroAddress",
"type": "error",
"inputs": []
},
{
"name": "ZeroAmount",
"type": "error",
"inputs": []
},
{
"name": "FeesCollected",
"type": "event",
"inputs": [
{
"name": "lockId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "recipient",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount0",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "amount1",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "LockExtended",
"type": "event",
"inputs": [
{
"name": "lockId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "previousUnlockTime",
"type": "uint64",
"indexed": false,
"internalType": "uint64"
},
{
"name": "newUnlockTime",
"type": "uint64",
"indexed": false,
"internalType": "uint64"
}
],
"anonymous": false
},
{
"name": "LockIncreased",
"type": "event",
"inputs": [
{
"name": "lockId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "addedAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "newAmount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "LockedERC20",
"type": "event",
"inputs": [
{
"name": "lockId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "token",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "locker",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "unlockTime",
"type": "uint64",
"indexed": false,
"internalType": "uint64"
}
],
"anonymous": false
},
{
"name": "LockedNFT",
"type": "event",
"inputs": [
{
"name": "lockId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "positionManager",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "locker",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "unlockTime",
"type": "uint64",
"indexed": false,
"internalType": "uint64"
}
],
"anonymous": false
},
{
"name": "PendingReclaimed",
"type": "event",
"inputs": [
{
"name": "positionManager",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "depositor",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"name": "WithdrawnERC20",
"type": "event",
"inputs": [
{
"name": "lockId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "locker",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "WithdrawnNFT",
"type": "event",
"inputs": [
{
"name": "lockId",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
},
{
"name": "locker",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"name": "MAX_LOCK_DURATION",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint64",
"internalType": "uint64"
}
],
"stateMutability": "view"
},
{
"name": "collectFeesNFT",
"type": "function",
"inputs": [
{
"name": "lockId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "recipient",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "amount0",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "amount1",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "getLock",
"type": "function",
"inputs": [
{
"name": "lockId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "tuple",
"components": [
{
"name": "kind",
"type": "uint8",
"internalType": "enum PumperLPLocker.Kind"
},
{
"name": "asset",
"type": "address",
"internalType": "address"
},
{
"name": "amountOrId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "locker",
"type": "address",
"internalType": "address"
},
{
"name": "unlockTime",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "createdAt",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "withdrawn",
"type": "bool",
"internalType": "bool"
}
],
"internalType": "struct PumperLPLocker.Lock"
}
],
"stateMutability": "view"
},
{
"name": "increaseLockERC20",
"type": "function",
"inputs": [
{
"name": "lockId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "lock",
"type": "function",
"inputs": [
{
"name": "positionManager",
"type": "address",
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "owner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "lockCount",
"type": "function",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "lockERC20",
"type": "function",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "unlockTime",
"type": "uint64",
"internalType": "uint64"
}
],
"outputs": [
{
"name": "lockId",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"name": "lockIdForPosition",
"type": "function",
"inputs": [
{
"name": "positionManager",
"type": "address",
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "locked",
"type": "bool",
"internalType": "bool"
},
{
"name": "lockId",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "lockIdsForLocker",
"type": "function",
"inputs": [
{
"name": "locker",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256[]",
"internalType": "uint256[]"
}
],
"stateMutability": "view"
},
{
"name": "lockIdsForLockerRange",
"type": "function",
"inputs": [
{
"name": "locker",
"type": "address",
"internalType": "address"
},
{
"name": "start",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "count",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256[]",
"internalType": "uint256[]"
}
],
"stateMutability": "view"
},
{
"name": "lockIdsForToken",
"type": "function",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256[]",
"internalType": "uint256[]"
}
],
"stateMutability": "view"
},
{
"name": "lockIdsForTokenRange",
"type": "function",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "start",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "count",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "uint256[]",
"internalType": "uint256[]"
}
],
"stateMutability": "view"
},
{
"name": "lockerLockCount",
"type": "function",
"inputs": [
{
"name": "locker",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "onERC721Received",
"type": "function",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
},
{
"name": "from",
"type": "address",
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "data",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [
{
"name": "",
"type": "bytes4",
"internalType": "bytes4"
}
],
"stateMutability": "nonpayable"
},
{
"name": "pendingDepositor",
"type": "function",
"inputs": [
{
"name": "positionManager",
"type": "address",
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"name": "reclaimPending",
"type": "function",
"inputs": [
{
"name": "positionManager",
"type": "address",
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "relock",
"type": "function",
"inputs": [
{
"name": "lockId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "newUnlockTime",
"type": "uint64",
"internalType": "uint64"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "tokenLockCount",
"type": "function",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"name": "withdrawERC20",
"type": "function",
"inputs": [
{
"name": "lockId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"name": "withdrawNFT",
"type": "function",
"inputs": [
{
"name": "lockId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
}
]Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.