Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 947 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 947 Bytes

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