Commit 25692792 authored by Noah Zinsmeister's avatar Noah Zinsmeister

fix liquidityMinted bug

parent 39312ab8
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment