@@ -125,7 +125,7 @@ import { useBprotocolPosition } from '~/composables/protocols/useBprotocolPositi
export default defineComponent({
components: { ButtonCTA, InputNumeric },
setup() {
- const { userBammInUsd, fetchUserData, userBamm, lusdWithdrawAmountToBamm, absolutlWithdrawAmountInLusd, absolutlWithdrawAmountInEth, ethUserBalance } = useBprotocolPosition()
+ const { userBammInUsd, fetchUserData, userBamm, lusdWithdrawAmountToBamm, absolutlWithdrawAmountInLusd, absolutlWithdrawAmountInEth, ethUserBalance, ethIsGreaterThanOnePromille } = useBprotocolPosition()
const { account } = useWeb3()
const { dsa } = useDSA()
const { formatUsd, formatUsdMax, formatDecimal } = useFormatting()
@@ -222,7 +222,8 @@ export default defineComponent({
ethWithdrawAmount,
lusdWithdrawAmount,
ethUserBalance,
- changedBalance
+ changedBalance,
+ ethIsGreaterThanOnePromille
}
},
})
diff --git a/composables/protocols/useBprotocolPositions.ts b/composables/protocols/useBprotocolPositions.ts
index e00e749..c4b2673 100644
--- a/composables/protocols/useBprotocolPositions.ts
+++ b/composables/protocols/useBprotocolPositions.ts
@@ -66,7 +66,7 @@ export function useBprotocolPosition (){
}
const userEthInUsd = new BigNumber(ethUserBalance.value).multipliedBy(ethPrice.value)
const ethInSp = userEthInUsd.dividedBy(userBammInUsd.value)
- return ethInSp.isGreaterThan(0.0001)
+ return ethInSp.isGreaterThan(0.001)
})
function lusdWithdrawAmountToBamm (lusd) {