Skip to content

realcryptowhales/aggregate-lending-interface

Repository files navigation

This is Aggregate Lending MVP.

It aggregates compound and aave and provides internal aggregation to achieve the best rate for lending.

Using aggregated lending, the deposit rate is always the highest and the borrowing rate is always the lowest

preview

http://35.220.222.252/aggregate-lending-web/markets

Note that this is only mvp, so this link may be expired, you can clone it and run it locally after that. Of course, you need to deploy your own backend service and liquidation robot. Otherwise, when your apr exceeds the liquidation rate, the liquidation event will not be executed properly.

show

截屏2023-03-21 00 33 37

截屏2023-03-21 00 33 48

截屏2023-03-21 00 34 14

截屏2023-03-21 00 34 31

截屏2023-03-21 00 34 40

Tech

Requirement

  1. recommend to use nodejs v16+.

  2. recomment to use pnpm v7.

  3. Don't change pnpm-lock.yaml, unless it's necessary .Normally use pnpm install --frozen-lockfile to install packages which is equal to 'npm ci'.

  4. use 'less', css modules , unocss(atomic css).

react-router v6

examples docs

vite

docs

meterial-ui

docs

swr

https://swr.vercel.app/zh-CN/docs/getting-started

unocss

https://uno.antfu.me/

recomment to install unocss vscode plugin which can show style results when hover

extend tailwind, so you can use any tailwind rules

wallet package

https://www.rainbowkit.com/docs/custom-chains

web3 library

https://wagmi.sh/react/chains

https://docs.ethers.org/v5/getting-started/

competing

https://www.yuque.com/zgryhn/duu5f7/xp2u5d

external

https://github.com/crcong/vite-plugin-externals

split

https://github.com/sanyuan0704/vite-plugin-chunk-split/blob/HEAD/README-CN.md

legacy

https://www.npmjs.com/package/@vitejs/plugin-legacy