Skip to content

ibdotxyz/ib-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub CI

Iron Bank v2

Getting started

  1. Clone the repo.
  2. Install foundry.

Protocol contracts

Core

Extensions

  • TxBuilderExtension.sol - The extension contract that could help users perform multiple operations in a single transaction.
  • UniswapExtension.sol - The extension contract that supports leverage, debt swap, and collateral swap.

FlashLoan

Usage

Compile contracts

$ forge build

Display contract size.

$ forge build --sizes

Test contracts

Extension tests are using mainnet forking. Need to export the alchemy key to environment first.

export ALCHEMY_KEY=xxxxxx

Run all the tests.

$ forge test -vvv

Run specific test.

$ forge test -vvv --match-path test/TestSupply.t.sol

Display test coverage.

$ forge coverage

Display test coverage in lcov.

$ forge coverage --report lcov
$ genhtml -o report --branch-coverage lcov.info

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published