diff --git a/components/sidebar/context/bprotocol/SidebarBprotocolDeposit.vue b/components/sidebar/context/bprotocol/SidebarBprotocolDeposit.vue index 6a9d570..ec6ffc4 100644 --- a/components/sidebar/context/bprotocol/SidebarBprotocolDeposit.vue +++ b/components/sidebar/context/bprotocol/SidebarBprotocolDeposit.vue @@ -46,7 +46,7 @@ -
+
@@ -122,7 +122,7 @@ import { useBprotocolPosition } from '~/composables/protocols/useBprotocolPositi export default defineComponent({ components: { ButtonCTA, InputNumeric }, setup() { - const { fetchUserData, userBammInUsd, ethUserBalance, lusdUserBalance, absolutlWithdrawAmountInLusd, absolutlWithdrawAmountInEth } = useBprotocolPosition() + const { fetchUserData, userBammInUsd, ethUserBalance, lusdUserBalance, absolutlWithdrawAmountInLusd, absolutlWithdrawAmountInEth, ethIsGreaterThanOnePromille } = useBprotocolPosition() const { account } = useWeb3() const { dsa } = useDSA() const { formatDecimal } = useFormatting() @@ -221,7 +221,8 @@ export default defineComponent({ newEthBalance, newLusdBalance, ethUserBalance, - changedBalance + changedBalance, + ethIsGreaterThanOnePromille } }, }) diff --git a/components/sidebar/context/bprotocol/SidebarBprotocolWithdraw.vue b/components/sidebar/context/bprotocol/SidebarBprotocolWithdraw.vue index 3b2d085..c6799a8 100644 --- a/components/sidebar/context/bprotocol/SidebarBprotocolWithdraw.vue +++ b/components/sidebar/context/bprotocol/SidebarBprotocolWithdraw.vue @@ -48,7 +48,7 @@ -
+
@@ -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) {