How LOCKHOOD works
Reference for the on-chain locker on Robinhood Chain.
Overview
LOCKHOOD is an upgradeable ERC-20 locker contract deployed on Robinhood Chain. Users deposit tokens into a per-lock vault with a strict unlock timestamp — the contract only releases funds after that time.
Creating a lock
- Approve the token to the LOCKHOOD contract.
- Call
createLock(token, amount, unlockTime)and pay the currentlockFeein ETH. - The contract records the received balance (deflationary tokens supported).
- A unique
lockIdis emitted viaLockCreated.
Withdrawing
After block.timestamp ≥ unlockTime, the owner can call withdraw(lockId, amount). Partial withdrawals are supported until the balance hits zero.
Extending
The owner can push the unlock further out with extendLock(lockId, newUnlockTime) — the new time must be strictly greater.
Transferring ownership
Ownership can be reassigned via transferLockOwnership(lockId, newOwner). This is irreversible from your side.
Fees
A flat lockFee in ETH is charged on lock creation and forwarded to the platform wallet. Withdrawals and extensions have no protocol fee.