Skip to content

Implement a Simple AMM Swap contract with a 0% fee ratio

Notifications You must be signed in to change notification settings

Rita94105/SimpleSwap

Repository files navigation

SimpleSwap

Implement a Simple AMM Swap contract with a 0% fee ratio in contracts/SimpleSwap.sol. Ensure that you override all the external functions defined in ISimpleSwap.sol, and that the implementation passes all the tests.

It is recommended to first read the NatSpec documentation in ISimpleSwap.sol before implementing the contract. If there are any uncertainties regarding the function's purpose or implementation, feel free to discuss them in the Discord channel.

Reference:

Local Development

You need Node.js 16+ to build. Use nvm to install it.

Clone this repository, install Node.js dependencies, and build the source code:

git clone https://github.com/Rita94105/SimpleSwap.git
cd SimpleSwap
npm install
npm run test:hardhat
npm run test:foundry

About

Implement a Simple AMM Swap contract with a 0% fee ratio

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published