2 stable releases
4.0.1 | Apr 9, 2025 |
---|
#3 in #incentives
211 downloads per month
Used in 3 crates
22KB
472 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
~43MB
~653K SLoC