/huff-standard4borrow

ETH Tokyo 2023 submission, Aggregator for finding the best borrowing rate and AaveV3 optimized wrapper in Huff

Primary LanguageSolidity

BorrowFi

Aggregator for finding the best borrowing rate cover

  • Gas optimzed AaveV3 wrapper buit with Huff
  • BorrowFi Aggregator for single entry point to all lending protocols
  • New ERC standard for borrowing

Pitch

Requirements

  • Node.js >= 15
  • yarn and npm >= 7
  • foundry

Quick Start

Install dependencies

yarn
cd contracts && forge install
# If `forge install` doesn't work correctly, try the following command for each .gitmodules in contracts directory.
# e.g forge install https://github.com/openzeppelin/openzeppelin-contracts

Each package has its own README. See the following links for more details.

Build Solidity contracts

Development

yarn build  # build all packages
yarn build:contracts  # build contracts
yarn build:ts  # build typescript packages
yarn test   # run all tests
yarn lint:check   # run all linters
yarn lint:fix   # run all linters

Chains we deployed our BorrowFi Aggregator contract

For all deployments, we used an address "0x777708eD0dA60151731363f36C14218005Bce4d1" to submit transactions.

Polygon

Scroll

Celo-alfajores

Ethereum Goerli