Skip to content

jack21/SimpleSwap

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]:AppWorks-School/Blockchain-Resource.git
cd Blockchain-Resource/section3/SimpleSwap
npm install
npm run build
npm run test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published