Idle PYT strategy https://github.com/Idle-Labs/idle-tranches for Quickswap on Polygon
This repo is based on https://github.com/libevm/forge-example
Install foundry to compile, test, and debug.
To install dependencies type:
forge install
To build Type:
forge build
To run on forking network copy .env.example
to .env
and setup api key.
Type:
# -vvv = very very verbose
forge test -f http://127.0.0.1:8545 --fork-block-number <FORK_BLOCK_NUMBER> -vvv
- access the debugger
forge run --debug src/test/Contract.t.sol --sig "testExample()"
Copy .env.example
to .env
and fill it out with correct details.
node --experimental-json-modules scripts/deploy.js
Check here https://github.com/libevm/forge-example#etherscan-verification