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 60/week @ 2024-04-05 37/week @ 2024-04-12 48/week @ 2024-04-19 52/week @ 2024-04-26 44/week @ 2024-05-03 48/week @ 2024-05-10 52/week @ 2024-05-17 59/week @ 2024-05-24 54/week @ 2024-05-31 36/week @ 2024-06-07 40/week @ 2024-06-14 48/week @ 2024-06-21 21/week @ 2024-06-28 21/week @ 2024-07-05 31/week @ 2024-07-12 38/week @ 2024-07-19

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

AGPL-3.0

120KB
2.5K SLoC

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.


lib.rs:

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.

Dependencies

~20–29MB
~498K SLoC