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

#2 in #quarry

Download history 28/week @ 2023-12-13 31/week @ 2023-12-20 19/week @ 2023-12-27 13/week @ 2024-01-03 23/week @ 2024-01-10 20/week @ 2024-01-17 7/week @ 2024-01-24 8/week @ 2024-01-31 24/week @ 2024-02-07 32/week @ 2024-02-14 51/week @ 2024-02-21 92/week @ 2024-02-28 63/week @ 2024-03-06 45/week @ 2024-03-13 56/week @ 2024-03-20 56/week @ 2024-03-27

227 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–30MB
~494K SLoC