From 93c627be9d7e7b83c81910d1074d135f58e96c6f Mon Sep 17 00:00:00 2001 From: Callil Capuozzo Date: Mon, 22 Jan 2018 15:09:32 -0500 Subject: [PATCH] Fixes --- src/App.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/App.js b/src/App.js index 8b0b9bec15..e1ed195907 100644 --- a/src/App.js +++ b/src/App.js @@ -80,9 +80,9 @@ class App extends Component { this.setState({connected: false}) } else { this.setState({ - firstRun: cookie.load('firstRun'), - swapAdded: cookie.load('swapAdded'), - uniAdded: cookie.load('uniAdded'), + firstRun: cookie.load('firstRun') || true, + swapAdded: cookie.load('swapAdded') || false, + uniAdded: cookie.load('uniAdded') || false, transactions: cookie.load('transactions') || [], }) this.getContracts(); @@ -670,7 +670,7 @@ class App extends Component {

Uniswap is a trustless, decentralized exchange for Ether and ERC20 tokens

Uniswap exchange uses a "Market Maker" mechanism, where liquidity providers store a reserve of ETH and ERC20 tokens within an Ethereum smart contract. An exchange rate is set between the tokens and ETH based on the relative availibility of each token. Arbitrage ensures that the rate will be the same as on other exchanges. Buyers who send Token 1 to the smart contract will receive back Token 2 at the current rate. A small fee is paid from the buyer to the liquidity providers to incentive participation.

-

A full writeup with math and whatnot will be written soon.Until then, here is some more info on Market Makers:

+

A full writeup will be written soon. Until then, here is some more info on Market Makers:

https://www.reddit.com/r/ethereum/comments/55m04x/lets_run_onchain_decentralized_exchanges_the_way/ http://vitalik.ca/general/2017/06/22/marketmakers.html

Please reach out if you would like to get involved or support the project.