A Solana program for locking tokens for a specified period.
This contract is currently deployed on the Solana devnet.
Devnet: Cs3zUdBmUuo8jFzmtQUAtTHtK7ZKpnK75mfTFDYbLsWt
- Initialize HODL account
- Deposit tokens
- Withdraw tokens after lock period
- Partial withdrawals
- Pause/Unpause functionality (admin only)
- Staking rewards based on lock duration
- Initialize a HODL account
- Deposit tokens into the account
- Tokens are locked for 10 years by default
- After the lock period, tokens can be withdrawn along with earned rewards
Built using Anchor framework version 0.30.1.
anchor build
anchor test --provider.cluster devnet
anchor deploy --provider.cluster devnet
This contract has not been audited and is not ready for mainnet deployment.