ORE Boost is a liquidity mining program for earning yield on staked assets.
Consts
– Program constants.Error
– Custom program errors.Event
– Custom program events.Instruction
– Declared instructions and arguments.
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.
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.
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.
To run the test suite, use the Solana toolchain:
cargo test-sbf
For line coverage, use llvm-cov:
cargo llvm-cov