Skip to content

Latest commit

 

History

History
76 lines (61 loc) · 4.09 KB

README.md

File metadata and controls

76 lines (61 loc) · 4.09 KB

Setup

Setup

  1. forge install
  2. forge test --mc TestCore

Integration

  1. Follow setup
  2. Add test helpers functions:
Contract Function
Masonry.sol earning()
Oracle.sol setPrice()
Treasury.sol setepochSupplyContractionLeft()
Treasury.sol moveEpoch()
TShare.sol mint()
  1. Remove test helpers from contracts before deploying
  • I'm not responsible for what happens if you leave them in

Notes on Tomb Finance

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

TOMB Token:

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 staking TSHARE

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 Token:

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:

  1. DAO Allocation: 500 TSHARE vested linearly 12 months
  2. Team Allocation: 5_000 TSHARE vested linearly over 12 months
  3. Remaining 59_500 TSHARE are allocated for incentivizing Liquidity Providers in two shares pools for 12 months

TBONDS Token:

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 TBONDs 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

Masonry:

  • Epoch duration: 6 hours
  • Deposits / Withdrawal of TSHARE into/from Masonry will lock:
    • TSHARE for 6 epochs and
    • TOMB rewards for 3 epochs
  • TOMB rewards claim will lock staked TSHARE for 6 epochs and the next TOMB 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
  • 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

Cemetery:

  • Stake your LP to earn TSHARE tokens
  • Shares Pools (Shares Reward) available for 12 months:
    • TOMB-FTM LP: 35500 Shares
    • TSHARE-FTM LP: 24000 Shares

Extra Links:

Tomb Docs Tomb overview

Audit Links:

Rekt artical Post Mortem Post Mortem pt2 TombSwap