Skip to content
master
Switch branches/tags
Code

Latest commit

…d price (#49)

* add contracts and some basic tests

* fix lint

* move to library, make gas tests

* fix pragma

* add a get liquidity value function, refactor swap to price example

* couple more tests

* bump the uniswap lib dependency for cheaper sqrt and FullMath.mulDiv

* use safemath for the mul

* add a test for large numbers
dda6247 2

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Uniswap V2

Actions Status npm

In-depth documentation on Uniswap V2 is available at uniswap.org.

The built contract artifacts can be browsed via unpkg.com.

Local Development

The following assumes the use of node@>=10.

Install Dependencies

yarn

Compile Contracts

yarn compile

Run Tests

yarn test