Skip to content

verified-network/verified-compound-markets

Repository files navigation

Comet Extension for Verified Markets

The Verified Markets extension enables real world asset (RWA) owners and managers to borrow liquidity from the Compound protocol. It also enables Compound users to stake collateral for RWAs on Compound and benefit from additional returns that RWAs generate. The Verified Markets specification is here.

The operator code is built with Truffle, and the web extension code is built on React using Vite.

Getting Started With The Frontend(Web Dapp)

  1. First, install NodeJS and yarn.

  2. Install dependencies by running:

yarn install
  1. Start the web Dapp by running:
yarn start
or
yarn web:dev

This should spawn a web server at an address such as http://localhost:5183. Visit the page to interact with the web dapp.

A few notes:

  • Yarn is required and used to install dependencies and start the frontend not npm

  • Any changes to web source code should auto-reload.

    Frontend(Web Dapp) Workflow

    From the url: Official Url or Localhost Url

    Users have access to 2 different pages:

    1. The Investor Page: also the landing/home page. ends with / and includes a table showing all Bonds issued which investors can purchase with collaterals that are accepted on compound. Investors can also reclaim collateral by liquidating bonds if issuers failed to repay them.

    2. The Issuer Page: ends with /issue allows issuers to issue bonds using RWA tokens as collateral. Once the bonds are sold to investors, issuers can borrow USDC or Ether from compound. Issuers can also redeem bonds by repaying investors.

Getting Started With The Backend(Smart Contract Tests)

  1. Run cd backend from root directory.
  2. Run npm install or npm install --force to install dependencies.
  3. Comment out line 85 to line 87 on VerifiedMarkets.sol file.
  4. Run npm run test to run Verified Markets smart contract testcases on base sepolia chain(84532).
  5. Incase of insufficient gas and ERC20:balance error:
    1. contact Verified Network team to topup test wallets.
    2. Manually topup wallets: Contract Owner: 0xeDFFca9E6c29a9fB27de9B7054019A34407c1920 Topup base sepolia ETH RWA Issuer: 0xa8BD9CdF1CC2F562B5c0342A1B7bC4692B1e3DC1 Topup base sepolia ETH and WETH: 0x4200000000000000000000000000000000000006

License

MIT License