Monorepo implementing the Hifi fixed-rate, fixed-term lending protocol. In-depth documentation is available at docs.hifi.finance.
The Hifi monorepo is maintained with yarn workspaces. Check out the README associated to each package for detailed usage instructions.
Package | Description |
---|---|
@hifi/amm |
Dedicated AMM for market-making hTokens |
@hifi/flash-swap |
Flash swap implementations for liquidating underwater accounts |
@hifi/protocol |
The core Hifi fixed-rate, fixed-term lending protocol |
@hifi/proxy-target |
DSProxy target contract with stateless scripts |
Package | Description |
---|---|
@hifi/constants |
Constants shared across Hifi packages |
@hifi/helpers |
Helper functions shared across Hifi packages |
@hifi/tasks |
Hardhat tasks for the Hifi smart contracts |
Feel free to dive in! Open an issue, start a discussion or submit a PR. For any concerns or feedback, join us on Discord.
You will need the following software on your machine:
In addition, familiarity with Solidity, TypeScript and Hardhat is requisite.
Install the dependencies:
$ yarn install
Create a .env
file and follow the .env.example
file to add the requisite environment variables, then run the watcher:
$ yarn watch
Now you can start making changes.
For security concerns, please email security@hifi.finance. This repository is subject to the Hifi bug bounty program, per the terms defined here.
LGPL v3 © Mainframe Group Inc.