Skip to content

skyDaniel/SimpleSwap

Repository files navigation

SimpleSwap

(Modified from https://github.com/AppWorks-School/Blockchain-Resource/tree/main/section3/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:

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