Skip to content

Commit

Permalink
rework erc20
Browse files Browse the repository at this point in the history
start to standardize syntax

4 spaces/tab

add implementation reference links

improve tests
  • Loading branch information
NoahZinsmeister committed Oct 22, 2019
1 parent 3df2dbb commit 1175598
Show file tree
Hide file tree
Showing 15 changed files with 505 additions and 550 deletions.
27 changes: 25 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# Uniswap v2 Smart Contracts

[![CircleCI](https://circleci.com/gh/Uniswap/uniswap-v2.svg?style=svg)](https://circleci.com/gh/Uniswap/uniswap-v2)


## Local Development

### Clone Repository

```
git clone https://github.com/Uniswap/uniswap-v2.git
cd uniswap-v2
Expand All @@ -21,3 +20,27 @@ yarn
yarn compile
yarn test
```


## Implementation References

### [`contracts/libraries/SafeMath.sol`](./contracts/libraries/SafeMath.sol)

#### OpenZeppelin
[https://github.com/OpenZeppelin/openzeppelin-contracts/blob/2f9ae975c8bdc5c7f7fa26204896f6c717f07164/contracts/math/SafeMath.sol](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/2f9ae975c8bdc5c7f7fa26204896f6c717f07164/contracts/math/SafeMath.sol)

### [`contracts/libraries/Math.sol`](./contracts/libraries/Math.sol)

#### OpenZeppelin
[https://github.com/OpenZeppelin/openzeppelin-contracts/blob/2f9ae975c8bdc5c7f7fa26204896f6c717f07164/contracts/math/Math.sol#L17](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/2f9ae975c8bdc5c7f7fa26204896f6c717f07164/contracts/math/Math.sol#L17)

#### dapp-bin
[https://github.com/ethereum/dapp-bin/blob/11f05fc9e3f31a00d57982bc2f65ef2654f1b569/library/math.sol#L28](https://github.com/ethereum/dapp-bin/blob/11f05fc9e3f31a00d57982bc2f65ef2654f1b569/library/math.sol#L28) via [https://github.com/ethereum/dapp-bin/pull/50](https://github.com/ethereum/dapp-bin/pull/50)

### [`contracts/implementations/ERC20.sol`](./contracts/implementations/ERC20.sol)

#### OpenZeppelin
[https://github.com/OpenZeppelin/openzeppelin-contracts/blob/2f9ae975c8bdc5c7f7fa26204896f6c717f07164/contracts/token/ERC20](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/2f9ae975c8bdc5c7f7fa26204896f6c717f07164/contracts/token/ERC20)

#### Dai
[https://github.com/makerdao/dss/blob/b1fdcfc9b2ab7961bf2ce7ab4008bfcec1c73a88/src/dai.sol](https://github.com/makerdao/dss/blob/b1fdcfc9b2ab7961bf2ce7ab4008bfcec1c73a88/src/dai.sol)
47 changes: 0 additions & 47 deletions contracts/ERC20.sol

This file was deleted.

22 changes: 0 additions & 22 deletions contracts/Math.sol

This file was deleted.

Loading

0 comments on commit 1175598

Please sign in to comment.