Skip to content

Commit

Permalink
fix liquidityMinted bug
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-dev1990 committed May 16, 2019
1 parent b4ea27f commit f39d628
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Pool/AddLiquidity.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f39d628

Please sign in to comment.