#solana #mining

ore-boost-api

API for interacting with the ORE boost program

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

Download history 43/week @ 2025-09-18 59/week @ 2025-09-25 56/week @ 2025-10-02 26/week @ 2025-10-09 60/week @ 2025-10-16 115/week @ 2025-10-23 102/week @ 2025-10-30 221/week @ 2025-11-06 62/week @ 2025-11-13 47/week @ 2025-11-20 31/week @ 2025-11-27 37/week @ 2025-12-04 32/week @ 2025-12-11 34/week @ 2025-12-18 16/week @ 2025-12-25 31/week @ 2026-01-01

118 downloads per month
Used in 5 crates (4 directly)

Apache-2.0

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