2 stable releases

4.0.1 Apr 9, 2025

#3 in #incentives

Download history 21471/week @ 2025-04-07 4105/week @ 2025-04-14 463/week @ 2025-04-21 233/week @ 2025-04-28 119/week @ 2025-05-05 228/week @ 2025-05-12 288/week @ 2025-05-19 142/week @ 2025-05-26 96/week @ 2025-06-02 45/week @ 2025-06-09 41/week @ 2025-06-16 76/week @ 2025-06-23 31/week @ 2025-06-30

211 downloads per month
Used in 3 crates

Apache-2.0 and LGPL-3.0-only

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