diff --git a/src/App.css b/src/App.css index c0bbe59c72..363bd47133 100644 --- a/src/App.css +++ b/src/App.css @@ -1,3 +1,5 @@ +@import url('https://rsms.me/inter/inter-ui.css'); + body{ margin: 0; padding: 0; diff --git a/src/App.js b/src/App.js index 566381d453..cb0ccea688 100644 --- a/src/App.js +++ b/src/App.js @@ -53,6 +53,8 @@ class App extends Component { locked: true, connected: false, approved: true, + uniAdded: false, + swapAdded: false, firstRun: true, about: false, interaction: 'disconnected', @@ -551,7 +553,13 @@ class App extends Component { } onCloseHelper = () => { - this.setState({firstRun: !this.state.firstRun}) + if(this.state.outputToken.value === 'UNI'){ + this.setState({uniAdded: true}) + } else if(this.state.outputToken.value === 'SWAP'){ + this.setState({swapAdded: true}) + } else { + this.setState({firstRun: !this.state.firstRun}) + } } toggleAbout = () => { @@ -591,6 +599,8 @@ class App extends Component { interaction={this.state.interaction} exchangeType={this.state.exchangeType} firstRun={this.state.firstRun} + uniAdded={this.state.uniAdded} + swapAdded={this.state.swapAdded} onCloseHelper={this.onCloseHelper} input={this.state.input} balance={this.state.inputBalance} @@ -653,8 +663,8 @@ 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.
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 + https://www.reddit.com/r/ethereum/comments/55m04x/lets_run_onchain_decentralized_exchanges_the_way/ + http://vitalik.ca/general/2017/06/22/marketmakers.htmlPlease reach out if you would like to get involved or support the project.
Email: hayden@uniswap.io ETH Address: 0x4779721CaC18A46DbCF148f2Dd7A8E6cc1F90078
diff --git a/src/components/ConnectionHelper.js b/src/components/ConnectionHelper.js index b9a3884ce7..44ebaf5be7 100644 --- a/src/components/ConnectionHelper.js +++ b/src/components/ConnectionHelper.js @@ -1,14 +1,11 @@ import React from 'react'; function ConnectionHelper(props) { - // console.log(props.input > props.balance/10**18) - if (!props.metamask) { return (Welcome! Uniswap is a decentralized exhange platform for ERC20 Tokens. {props.toggleAbout()}} className="f-a">How it works.
To get started, please install Metamask.
Welcome! Uniswap is a decentralized exhange platform for ERC20 Tokens. {props.toggleAbout()}} className="f-a" >How it works.
Looks like you aren't connected. Please unlock Metamask to continue.
You’ll need to add the UNI tokens to Metamask. Here’s a step by step guide.
+ Add UNI with 0x350E5DD084ecF271e8d3531D4324443952F47756.
You’ll need to add the SWAP tokens to Metamask. Here’s a step by step guide.
+ Add UNI with 0x8B2A87F8243f23C33fb97E23a21Ae8EDB3b71AcA.
This account doesn't have enough balance to make this transaction! Get more ETH with the Rinkeby Faucet.
+This account doesn't have enough balance to make this transaction! Get more ETH with the Rinkeby Faucet.
Welcome! Uniswap is a decentralized exhange platform for ERC20 Tokens. {props.toggleAbout()}} className="f-a">How it works.
Enter an input value below to get started.
↓