fix liquidityMinted bug

This commit is contained in:
Noah Zinsmeister 2019-05-16 17:03:10 -04:00
parent 39312ab8c0
commit 25692792fa
No known key found for this signature in database
GPG Key ID: 83022DD49188C9F2

@ -176,8 +176,8 @@ export default function AddLiquidity() {
const liquidityMinted = isNewExchange
? inputValueParsed
: totalPoolTokens && inputValueParsed && exchangeETHBalance
? exchangeETHBalance.isZero() && totalPoolTokens.mul(inputValueParsed).div(exchangeETHBalance)
: totalPoolTokens && inputValueParsed && exchangeETHBalance && !exchangeETHBalance.isZero()
? totalPoolTokens.mul(inputValueParsed).div(exchangeETHBalance)
: undefined
// user balances