Importing in Foundry
Last updated
Last updated
Foundry is able to grab to download directly from github.
You want to use the IERC20.sol interface provided by Yield at: https://github.com/yieldprotocol/yield-utils-v2/blob/main/contracts/token/IERC20.sol
Forge will install the repo into our project directory (repo can be found inside lib)
.gitmodules will be updated to reflect the dependencies:
forge remappings
yield-utils-v2/
is mapped to directory lib/yield-utils-v2/contracts
This informs us how to craft our import statement.
Now when forge build
is run, there should not be any issues.