Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ianlapham committed Feb 13, 2020
1 parent 912a19d commit 3091ebc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/ExchangePage/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -629,12 +629,11 @@ export default function ExchangePage({ initialCurrency, sending = false, params
if (inputCurrency === 'ETH') {
ethTransactionSize = inputValueFormatted
} else if (outputCurrency === 'ETH') {
// we want input value * exchangeRate
ethTransactionSize = inputValueFormatted * amountFormatter(exchangeRate, 18, 6, false)
} else {
const tokenBalance = inputReserveETH && new BigNumber(inputReserveToken.toString())
const tokenBalance = inputReserveToken && new BigNumber(inputReserveToken.toString())
const ethBalance = inputReserveETH && new BigNumber(inputReserveETH.toString())
let ethRate = ethBalance && ethBalance.div(tokenBalance)
let ethRate = ethBalance && tokenBalance && ethBalance.div(tokenBalance)
ethTransactionSize = inputValueFormatted * ethRate
}

Expand Down

0 comments on commit 3091ebc

Please sign in to comment.