@zerolendxyz/one
v0.9.1
Published
[](https://github.com/zerolend/zerolend-one/actions/workflows/hardhat.yml) [.
Better UX: With a focus on features such as NFT Positions, Smart Accounts and fixed rate lending, ZeroLend focuses bringing a better lending experience to users and give borrowers more control on their positions.
Documentation
- docs-one.zerolend.xyz - Contains a high level overview of the entire protocol including architecture documentation.
- wiki pages - The wiki pages contains the technical documentation for each contract and what they do.
- test folders - The unit tests for the protocol are also documented and can be browsed through for insights about how each test works.
Tests
There are three test suites that this repository uses.
- Hardhat - Hardhat is used for all various kinds of feature tests. We test basic functionalities such as supply/borrow, creation of vaults etc.. and basic rules using hardhat tests.
- Foundry - Foundry is used to conduct various fuzzing and invariant tests.
- Certora - Certora is used to conduct all kinds of formal verification tests. This is more in-depth than the foundry tests but run a lot slower.
To compile and run the unit tests, simply run the following commands.
yarn
yarn compile
yarn testUnit test coverages for hardhat and foundry; along with gas reports can be found here:
- Hardhat coverage - Code coverage of the hardhat unit tests
- Foundry coverage - Code coverage of the foundry unit tests
- Gas Report - A gas report for each function
For any questions or queries, feel free to reach out to us on Discord
