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 @@