Overview
Juu is built from a few parts that pass value to each other. Each part uses Mezo's own contracts instead of rebuilding them.
The parts
- Doors: the ways in. Bring a veBTC lock, plain BTC, sMUSD or a Mezo loan.
- Splitter: holds your BTC in a Mezo veBTC lock and gives you P and Y tokens for it.
- P and Y: the two tokens. P is your BTC back on a date; Y is what it earns until then.
- Series: P and Y are grouped by end date. Each date has its own P and Y.
- Pricer: decides how much each chip counts for in the game.
- Bank: savers' pot. It backs the game with MUSD borrowed at Mezo.
- MUSDash: the game. Ten floors of bets on BTC going up or down.
- Climb Premium: an extra seat price on the top floors, with a kill switch.
- Buffer and jackpot: the safety jar and the weekly prize from its overflow.
- Loop: winnings go back into your BTC lock, so your harvest grows.
- P Market: buy P below full price for a fixed return, no game needed.
What Juu uses from Mezo
| Need | Mezo contract |
|---|---|
| Locking BTC | veBTC |
| Voting for rewards | Voter (gauges) |
| Weekly BTC rebase | RewardsDistributor |
| Borrowing MUSD | MUSD BorrowerOperations and TroveManager |
| BTC price | MUSD PriceFeed |
| Swapping MUSD and BTC | Mezo DEX Router |
| MUSD savings yield | MUSD Savings Rate (sMUSD) |
How money moves
- You lock BTC through the Splitter and get P and Y.
- The Splitter votes your locked BTC at Mezo every week and collects the rewards for Y holders.
- On the series end date, the BTC comes out of Mezo and P holders get it back.
- In MUSDash, players' chips sit in the game. Losses go to the Bank and the Bank pays winners. When both sides are open, one side's losses pay the other side's wins.
- Fees and penalties feed the Bank and the Buffer.