Skip to content

sudoswap/shared-pool

Repository files navigation

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

About

Shared liquidity pool using XYK curve

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published