32 stable releases (5 major)

5.2.0 Jul 27, 2022
5.0.2 Apr 17, 2022
4.2.1 Apr 16, 2022
4.1.0 Mar 29, 2022
0.2.0 Aug 27, 2021

#1 in #quarry

Download history 47/week @ 2025-10-13 61/week @ 2025-10-20 38/week @ 2025-10-27 28/week @ 2025-11-03 26/week @ 2025-11-10 39/week @ 2025-11-17 33/week @ 2025-11-24 30/week @ 2025-12-01 23/week @ 2025-12-08 30/week @ 2025-12-15 39/week @ 2025-12-22 24/week @ 2025-12-29 16/week @ 2026-01-05 3/week @ 2026-01-12 33/week @ 2026-01-19 22/week @ 2026-01-26

80 downloads per month
Used in 17 crates (9 directly)

AGPL-3.0

120KB
2.5K SLoC

Liquidity mining rewards distribution program.

The program consists of three types of accounts:

  • [Rewarder], which controls token rewards distribution
  • [Quarry], which receive rewards, and
  • [Miner], which stake tokens into [Quarry]s to receive rewards.

This program is modeled after Synthetix's StakingRewards.sol.


mine

Distributes liquidity mining rewards to token stakers.

Overview

The Quarry mine program starts with a Rewarder. A Rewarder corresponds to a reward token e.g. SBR, MNDE.

Once a Rewarder is created, we can add Quarrys to it. A Quarry corresponds to a staking token.

Finally, users/programs can create Miners which allow a user to stake/unstake tokens to a Quarry and claim rewards from a Quarry.

Dependencies

~26MB
~537K SLoC