Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

BeakerTools/stoichiometric

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SUSD: Stoichiometric USD

Stoichiometric is a Collateralized Debt Position (CDP) Stablecoin ecosystem which integrates 3 main features: a DAO, a Stablecoin, an AMM.

Table of contents

  1. DAO
  2. DEX
  3. Issuer
  4. Tests
  5. Frontend
  6. Backend
  7. References

DAO

The DAO controls the whole stablecoin ecosystem. It has admin badge access to the DEX and the Stabelcoin lender. Users can make the following decisions:

  • Change the voting period for the DAO
  • Change the minimum amount of votes to make a proposal valid
  • Change the parameters of a Lender
  • Allow a new token to be used as collateral
  • Give a non-fungible resource that allows the minting and burning of the stablecoin. This enables new protocols to enter
  • the stablecoin ecosystem
  • Recall a stablecoin minter. This enables the users to remove a protocol from the ecosystem.

DEX

The DEX is vastly inspired by TraderJoe, which is basically Uniswap v3 but with a constant-sum AMM between each tick. The DEX is built so that every pair has to include SUSD. The goal of the DEX is to concentrate as much liquidity around SUSD as possible. Therefore, the DEX pairs graph is a star with SUS at the center. This enables in theory to make SUSD more stable.

Issuer

The stablecoin lender enables users to lock allowed collateral against SUSD. The liquidation process differs from MakerDAO, DAI and AAVE in the sense that it uses a constant-product AMM curve to decide the amount of collateral to be liquidated when the liquidation threshold is exceeded.

Tests

Tests are written in the tests package and can be launched using:

cargo test -- --test-threads=1

Tests failed are not documented because they are mostly for development purposes.

Frontend

The frontend directory includes the code to run the frontend.

Backend

The backend directory includes the code needed to decode the gateway API.

References