14 releases (8 stable)
| 4.1.0-alpha | Aug 13, 2025 |
|---|---|
| 4.0.0 | Apr 7, 2025 |
| 3.0.1 | Mar 19, 2025 |
| 1.5.0-boostv3 | Mar 17, 2025 |
| 0.3.0 | Oct 25, 2024 |
#55 in #mining
118 downloads per month
Used in 5 crates
(4 directly)
24KB
495 lines
ORE Boost
ORE Boost is a liquidity mining program for earning yield on staked assets.
API
Consts– Program constants.Error– Custom program errors.Event– Custom program events.Instruction– Declared instructions and arguments.
Instructions
User
Claim– Allows a staker to claim their rewards.Close– Closes a stake account.Deposit– Deposits tokens into a stake account.Open– Opens a new stake account.Withdraw– Withdraws tokens from a stake account.
Admin
Activate– Activate adds a boost to the directory.Deactivate– Removes a boost from the directory.Initialize– Initializes the program and creates the global accounts.New– Creates a new boost account.UpdateAdmin– Updates the admin key.UpdateBoost– Updates the data on a boost.
State
Boost- An account (1 per mint) which tracks the priority, deposits, and rewards of a staking incentive.Config– A singleton account which manages program-wide variables.Stake- An account (1 per user per mint) which records how many tokens of a given mint a user has staked.
Tests
To run the test suite, use the Solana toolchain:
cargo test-sbf
For line coverage, use llvm-cov:
cargo llvm-cov
Dependencies
~35MB
~569K SLoC