Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 831 Bytes

README.md

File metadata and controls

49 lines (31 loc) · 831 Bytes

Shared Pool for Sudoswap

Shared Sudoswap pair using the XYK curve that represents liquidity shares using an ERC20 token. Performs fractional swap during redemption to ensure only whole NFTs are withdrawn.

Installation

To install with Foundry:

forge install sudoswap/shared-pool

Local development

This project uses Foundry as the development framework.

Dependencies

forge install

Compilation

forge build

Testing

forge test

Contract deployment

Please create a .env file before deployment. An example can be found in .env.example.

Dryrun

forge script script/Deploy.s.sol -f [network]

Live

forge script script/Deploy.s.sol -f [network] --verify --broadcast