#reward #token #quarry #solana #account #rewarder #mine

quarry-mine-ntoken

Distributes liquidity mining rewards to token stakers

2 stable releases

5.0.3 Jun 12, 2022
5.0.2 May 20, 2022

#10 in #quarry


Used in 2 crates

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

~19–31MB
~530K SLoC