From 063f454713d0fdee00354fe91ad7cd6a62b426b5 Mon Sep 17 00:00:00 2001 From: Georges KABBOUCHI Date: Wed, 11 Aug 2021 15:33:51 +0300 Subject: [PATCH] closes #2 --- .../context/aaveV2/SidebarAaveV2Borrow.vue | 19 ------------------- .../compound/SidebarCompoundBorrow.vue | 19 ------------------- 2 files changed, 38 deletions(-) diff --git a/components/sidebar/context/aaveV2/SidebarAaveV2Borrow.vue b/components/sidebar/context/aaveV2/SidebarAaveV2Borrow.vue index aced7ae..2a13858 100644 --- a/components/sidebar/context/aaveV2/SidebarAaveV2Borrow.vue +++ b/components/sidebar/context/aaveV2/SidebarAaveV2Borrow.vue @@ -27,17 +27,6 @@ placeholder="Amount to borrow" :error="errors.amount.message" > - @@ -150,12 +139,6 @@ export default defineComponent({ const address = computed(() => token.value?.address) - const factor = computed( - () => displayPositions.value?.find((position) => rootTokenKey.value === position.key)?.factor - ) - - const { toggle, isMaxAmount } = useMaxAmountActive(amount, balance) - const { validateAmount, validateLiquidation, validateLiquidity, validateIsLoggedIn } = useValidators() const errors = computed(() => { const hasAmountValue = !isZero(amount.value) @@ -218,8 +201,6 @@ export default defineComponent({ formatNumber, formatUsdMax, formatUsd, - toggle, - isMaxAmount, maxLiquidation, liquidationPrice, liquidationMaxPrice, diff --git a/components/sidebar/context/compound/SidebarCompoundBorrow.vue b/components/sidebar/context/compound/SidebarCompoundBorrow.vue index 6778013..4fd84e8 100644 --- a/components/sidebar/context/compound/SidebarCompoundBorrow.vue +++ b/components/sidebar/context/compound/SidebarCompoundBorrow.vue @@ -19,17 +19,6 @@ placeholder="Amount to borrow" :error="errors.amount.message" > - @@ -70,14 +59,12 @@