Skip to content

Implement a simple AMM swap (0% fee ratio) contract

Notifications You must be signed in to change notification settings

CT77777/Simple-Swap

Repository files navigation

SimpleSwap

Implement a simple AMM swap (0% fee ratio) contract in contracts/SimpleSwap.sol. You must override all the external functions of ISimpleSwap.sol, and pass all the tests in test/SimpleSwap.spec.ts.

Suggest reading the natSpec of ISimpleSwap.sol first and then implementing the contract. If you are not sure what the function is about, feel free to discuss it 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 [email protected]:CT77777/SimpleSwap.git
cd ./SimpleSwap
npm install
npm run build
npm run test

About

Implement a simple AMM swap (0% fee ratio) contract

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published