fix liquidityMinted bug
This commit is contained in:
parent
39312ab8c0
commit
25692792fa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user