VeToken is an open source vote escrow based simplified solana staking program for any Tokenk or Token22.
| Network | Program Address |
|---|---|
| Devnet | veTbq5fF2HWYpgmkwjGKTYLVpY6miWYYmakML7R7LRf |
| Mainnet | veTbq5fF2HWYpgmkwjGKTYLVpY6miWYYmakML7R7LRf |
The endpoints' detailed explanation can be found at lib.rs.
- Simplified Lockup structure with different voting power & rewards multiplier support.
- Proposals and Proposal votes are based on the voting power of the lockup.
- Stake and StakeTo with different rewards settings.
- Security Council and Review Council governance model.
- Distribution
Inside the tests, there is a setupCloneAccounts function, however solana devnet will re-claim rent (and hence delete) from inactive accounts. You may need to manually airdrop devnet SOL to the accounts first so that cloning is successful
# Make sure you have the correct anchor and solana version installed, e.g:
avm install 0.29.0
sh -c "$(curl -sSfL https://release.anza.xyz/v1.18.11/install)"
# Test build and running the bankrun tests
npm i
anchor build && npm run test -- run
# Production build
anchor build
# Update IDL (if there's any IDL change)
anchor run update_idlApache 2.0
