This repository contains the implementation of the Collateralized Debt Position (CDP) model for the BOB stablecoin. The CDP model allows users to collateralize their assets and generate BOB stablecoins against it, which can be used for various purposes such as trading, payments, and more.
This repository contains the smart contract implementation for the BOB CDP model. The CDP model allows users to deposit concentrate liquidity assets as a collateral such as positions from Uniswap V3 and Quickswap V3 and mint BOB stablecoins against it. Users can also withdraw their collateral and pay back their BOB stablecoins to close their CDP.
Create .env
file following .env.example
for proper testing
Run yarn test
for running all tests.
Run yarn test:better
if you also set ETHERSCAN_API_KEY
. This command allow showing readable trace for external contracts.
- zkbob-contract repository: BOB stablecoin smart contract implementation.
- subgraph repository: BOB CDP model the graph manifest implementation for data indexing.
- liqbot repository: BOB Liquidator Bot source code.
- BOB Stablecoin documentation: Official documentation for the BOB stablecoin.