forge install
forge test --mc TestCore
- Follow setup
- Add test helpers functions:
Contract | Function |
---|---|
Masonry.sol | earning() |
Oracle.sol | setPrice() |
Treasury.sol | setepochSupplyContractionLeft() |
Treasury.sol | moveEpoch() |
TShare.sol | mint() |
- Remove test helpers from contracts before deploying
- I'm not responsible for what happens if you leave them in
Tomb is a protocol that serves TOMB
as an algorithmic token pegged to FTM
. It's underlying mechanics are to adjust TOMB
's supply by moving the price up or down relative to FTM
's price. Inspired by Basis and currently consists of three tokens, TOMB
, TSHARE
and TBOND
. TOMB
Main token that is algorithmic stablecoin pegged to FTM
. When it's price is about 1 FTM
(adjusted to a TWAP over 6 hour periods) this is the expansion phase/inflation phase. To bring the price down more TOMB
is minted at a percentage of supply.
- 18% is sent to the DAO (for buybacks when price is below peg)
- 2% for development/marketing fund
- 80% is distributed into the Masonry for users to receive
TOMB
for stakingTSHARE
Every time TOMB
is sold and creating LPs that are resent to the DAO or instantly burned will have a tax by the Gatekeeper system.
TSHARE
is used to pair with FTM
and provides liquidity to Cemetery to earn TSHARE
rewards. It's other use is to stake in the Masonry. Every 6 hours during the expansion phase TOMB
is paid out to TSHARE
stakers in the masonry. Lock times are of 36 hours and 18 hours for claiming rewards.
Holders also have voting rights on proposals to improve the protocol. There is a maximum total supply of 70_000 distributed as:
- DAO Allocation: 500
TSHARE
vested linearly 12 months - Team Allocation: 5_000
TSHARE
vested linearly over 12 months - Remaining 59_500
TSHARE
are allocated for incentivizing Liquidity Providers in two shares pools for 12 months
During reduction phase/deflationary phase or when TOMB
price falls below 1 FTM
. Users can burn supply themselves and profit when the price goes back above the peg. In doing so the user receives TBOND
tokens. Users can then redeem their TBOND
s for TOMB
with a bonus multiplier starting once the price is above 1.
- Available for purchase in the Pit R (bonus multiplier) can be calculated in the formula as shown below:
R=1+[(TOMB(twapprice)−1)∗coeff)]
- Where coeff = 0.7
- Epoch duration: 6 hours
- Deposits / Withdrawal of
TSHARE
into/from Masonry will lock:TSHARE
for 6 epochs andTOMB
rewards for 3 epochs
TOMB
rewards claim will lock stakedTSHARE
for 6 epochs and the nextTOMB
rewards can only be claimed 3 epochs later- Distribution of
TOMB
during Expansion- 80% as Reward for Boardroom
TSHARE
Stakers - 18% goes to DAO fund
- 2% goes to DEV fund
- 80% as Reward for Boardroom
- Epoch Expansion: Current expansion cap base on
TOMB
supply, if there are bonds to be redeemed:- 65% of minted
TOMB
goes to treasury until its sufficiently full to meet bond redemption. - If there is no debt it will follow max capped expansion rate
- 65% of minted
- Stake your LP to earn
TSHARE
tokens - Shares Pools (Shares Reward) available for 12 months:
TOMB-FTM LP
: 35500 SharesTSHARE-FTM LP
: 24000 Shares