Itlookslikeyouaren't connected. <b>Please switch to the Rinkeby testnet.</b>
</p>
</div>
)
} else if (props.web3Store.metamaskLocked) {
return (
<div className="grey-bg connection border pa2">
<p>Welcome! Uniswap is a decentralized exhange platform for ERC20 Tokens. <a onClick={() => {props.toggleAbout()}} className="f-a" >How it works ↘</a><br /><br />
It looks like you aren'tconnected.<b>PleaseunlockMetamasktocontinue.</b></p>
</div>
)
}elseif(props.web3Store.exchangeType==="Token to itself"||props.web3Store.exchangeType==="ETH to ETH"){
return(
<divclassName="grey-bg connection border pa2">
<p>Youcan't swap a token for itself! <span role="img" aria-label="Crying">😂</span></p>
</div>
)
} else if (props.web3Store.interaction === "submitted") {
message=<p>{"Nice! You're connected. Enter an input value below to get started."}</p>
break;
case'locked':
message=<p>{"Your metamask is locked! Please unlock to continue."}</p>
break;
case'input':
message=<p>{"You're swapping "+props.inputToken.value+" for "+props.outputToken.value+". Want to know more about how the prices are determined?"}</p>
// message = "Oops, looks like this address doesn't have a enough " + props.inputToken.value + " to make this trade. Add more funds to make this swap."
break;
case'error1':
message=<p>{"You can't swap a token for itself! 😂"}</p>
// message = "Oops, looks like this address doesn't have a enough " + props.inputToken.value + " to make this trade. Add more funds to make this swap."
break;
default:
message=<p>{"Hi there! This site helps you swap ERC20 tokens. Looks like you aren't connected. Need help?"}</p>
<b>{"I want to swap "+this.props.exchange.inputValue+""+this.props.exchange.inputToken.value+" for "+(this.props.exchange.outputValue/10**18).toFixed(4)+""+this.props.exchange.outputToken.value}</b>
<b><p>😭Youcan't afford to invest {(this.props.exchange.investEthRequired/10**18).toFixed(4)} ETH and {(this.props.exchange.investTokensRequired/10**18).toFixed(4)} {this.props.exchange.investToken.value} for {this.props.exchange.investSharesInput} shares 😭</p></b>
<b>I want to invest {(this.props.exchange.investEthRequired/10**18).toFixed(4)} ETH and {(this.props.exchange.investTokensRequired/10**18).toFixed(4)} {this.props.exchange.investToken.value} for {this.props.exchange.investSharesInput} shares</b>
<b>{this.props.exchange.investSharesInput > this.props.exchange.userShares} I want to divest {(this.props.exchange.investEthRequired/10**18).toFixed(4)} ETH and {(this.props.exchange.investTokensRequired/10**18).toFixed(4)} {this.props.exchange.investToken.value} for {this.props.exchange.investSharesInput} shares</b>