Skip to content

isabella232/tokenswap-test

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TokenSwap

In this exercise you're going to implement a very simple AMM for fictional stablecoins. The TokenSwap contract creates a trading pair between two equally valued stablecoins. Users can supply stablecoins as liquidity and earn transaction fees, and users can swap stablecoins and pay transaction fees.

An interface has been provided called TokenSwapInterface. You must create a TokenSwap contract that implements this interface.

Setup

Clone this repository and setup the right version of node:

$ nvm use

Now install dependencies:

$ yarn

You're ready.

Implement Contract

The test has already been written for you in test/TokenSwap.test.js. Complete the implementation such that the tests pass.

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 73.4%
  • Solidity 26.6%