Token name from state
This commit is contained in:
parent
1821441138
commit
0a7c668dc6
@ -319,15 +319,15 @@ class App extends Component {
|
||||
<section className="rate border pa2">
|
||||
<span className="rate-info">
|
||||
<p>Rate</p>
|
||||
<p>{this.state.tokenBuyRate.toFixed(3)} UNI/ETH</p>
|
||||
<p>{this.state.tokenBuyRate.toFixed(3)} {this.state.outputToken.value + "/" + this.state.inputToken.value}</p>
|
||||
</span>
|
||||
<span className="rate-info">
|
||||
<p>Cost</p>
|
||||
<p>{this.state.tokenCost.toFixed(5)} ETH</p>
|
||||
<p>{this.state.tokenCost.toFixed(5)} {this.state.inputToken.value}</p>
|
||||
</span>
|
||||
<span className="rate-info">
|
||||
<p>Fee</p>
|
||||
<p>{this.state.tokenFee.toFixed(5)} ETH</p>
|
||||
<p>{this.state.tokenFee.toFixed(5)} {this.state.inputToken.value}</p>
|
||||
</span>
|
||||
</section>
|
||||
{this.state.interaction === 'input' ?
|
||||
|
@ -5,7 +5,7 @@ function NetworkStatus(props) {
|
||||
if (isConnected){
|
||||
return (
|
||||
<div className="connection border pa2">
|
||||
<a href={'https://etherscan.io/search?q=' + props.address}>{props.address}</a>
|
||||
<a href={'https://rinkeby.etherscan.io/search?q=' + props.address}>{props.address}</a>
|
||||
<p>●</p>
|
||||
</div>
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user