/swapool

Primary LanguageTypeScript

Swapool

1. initialize with 2 tokens.
2. add/remove liquidity functions.
when adding liquidity, mint LP token, and when removing liquidity, burn LP token.
3. swap
able to swap ERC20 token to ERC20 token, or ETH to ERC20 token, or ERC20 token to ETH

This project demonstrates a basic Vault(Not EIP4626).

Try running some of the following tasks:

npx hardhat test
npx hardhat coverage