24 stable releases (4 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 |
1.10.6 | Nov 29, 2021 |
#4 in #quarry
65 downloads per month
175KB
3.5K
SLoC
quarry-merge-mine
Allows mining multiple quarries simultaneously.
Overview
The Quarry merge mine program works by defining a MergePool
, which is a pool of tokens associated with a staked mint, and a MergeMiner
, which is a user's association with a MergePool
.
A merge miner can stake two types of mints:
- Primary, the underlying staked token.
- Replica, which can only be minted for a pool if there are enough primary tokens.
There can be an unlimited number of Replica tokens minted, but a merge miner may only mint + stake Replica tokens if it has a corresponding amount of Primary tokens.
lib.rs
:
Holds tokens to allow one depositor to mine multiple quarries at the same time.
Dependencies
~20–30MB
~498K SLoC