Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Commit 60091e6

Browse files
committed
update add liquidity calculate
1 parent 173e540 commit 60091e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pages/liquidity/index.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@
248248
!lpMintAddress ||
249249
!liquidity.initialized ||
250250
liquidity.loading ||
251-
gt(fromCoinAmount, fromCoin.balance ? fromCoin.balance.fixed() : '0') ||
252-
gt(toCoinAmount, toCoin.balance ? toCoin.balance.fixed() : '0') ||
251+
gt(fromCoinAmountMin, fromCoin.balance ? fromCoin.balance.fixed() : '0') ||
252+
gt(toCoinAmountMin, toCoin.balance ? toCoin.balance.fixed() : '0') ||
253253
suppling ||
254254
(fromCoin.mintAddress === TOKENS.xCOPE.mintAddress && gt(5, fromCoinAmount)) ||
255255
(toCoin.mintAddress === TOKENS.xCOPE.mintAddress && gt(5, toCoinAmount))
@@ -261,10 +261,10 @@
261261
<template v-else-if="!lpMintAddress || !liquidity.initialized"> Invalid pair </template>
262262
<template v-else-if="!fromCoinAmount"> Enter an amount </template>
263263
<template v-else-if="liquidity.loading"> Updating pool information </template>
264-
<template v-else-if="gt(fromCoinAmount, fromCoin.balance ? fromCoin.balance.fixed() : '0')">
264+
<template v-else-if="gt(fromCoinAmountMin, fromCoin.balance ? fromCoin.balance.fixed() : '0')">
265265
Insufficient {{ fromCoin.symbol }} balance
266266
</template>
267-
<template v-else-if="gt(toCoinAmount, toCoin.balance ? toCoin.balance.fixed() : '')">
267+
<template v-else-if="gt(toCoinAmountMin, toCoin.balance ? toCoin.balance.fixed() : '0')">
268268
Insufficient {{ toCoin.symbol }} balance
269269
</template>
270270
<template v-else-if="fromCoin.mintAddress === TOKENS.xCOPE.mintAddress && gt(50, fromCoinAmount)">

0 commit comments

Comments
 (0)