Idle-Finance / quickswap-PYT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Quickswap PYT

Idle PYT strategy https://github.com/Idle-Labs/idle-tranches for Quickswap on Polygon

Development

Getting Started

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

Test

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

Debugging

  • access the debugger
forge run --debug src/test/Contract.t.sol --sig "testExample()"

Contract Deployment

Copy .env.example to .env and fill it out with correct details.

node --experimental-json-modules scripts/deploy.js

Etherscan Verification

Check here https://github.com/libevm/forge-example#etherscan-verification

Docs

Idle Finance docs

About


Languages

Language:Solidity 93.4%Language:JavaScript 6.4%Language:Shell 0.1%