Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 847 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 847 Bytes

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