Skip to content

Uniswap V2 contracts modified for building & testing with Foundry

Notifications You must be signed in to change notification settings

rilwan99/Uniswap-v2-foundry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Uniswap V2 Core - Foundry Edition

This repository contains the core contracts for the Uniswap V2 Protocol. For the periphery contracts, see the uniswap-v2-periphery repository.

Foundry Modification

This repository has been modified to also support Foundry Solidity tests.

If you already have Foundry's forge installed, first install the dependencies with yarn, and then simply run forge test to run the Solidity tests under contracts/test folder.

Due to the solidity version that the v2 contracts were deployed/compiled in (0.5.16), limited fuzz testing could be employed. Cheatcodes which mutate the vm state also could not be used. This is because Forge Standard Library's Test contract is only compatible with solidity version 0.6.2 onwards.

About

Uniswap V2 contracts modified for building & testing with Foundry

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published