From 63dfc0c4c883e4e6e52b87a3b07fe12e2ce3f0b7 Mon Sep 17 00:00:00 2001 From: Georges KABBOUCHI Date: Sun, 22 Aug 2021 20:35:46 +0300 Subject: [PATCH] wip --- .../context/strategy/SidebarStrategy.vue | 43 ++-- composables/useBalances.ts | 10 +- composables/useStrategy.ts | 60 +++++ core/strategies/helpers/index.ts | 84 +++++++ core/strategies/helpers/strategy.ts | 226 +++++++++--------- core/strategies/index.ts | 2 +- .../protocols/aave-v2/deposit-and-borrow.ts | 2 +- 7 files changed, 280 insertions(+), 147 deletions(-) create mode 100644 composables/useStrategy.ts create mode 100644 core/strategies/helpers/index.ts diff --git a/components/sidebar/context/strategy/SidebarStrategy.vue b/components/sidebar/context/strategy/SidebarStrategy.vue index d8d474c..39a4b88 100644 --- a/components/sidebar/context/strategy/SidebarStrategy.vue +++ b/components/sidebar/context/strategy/SidebarStrategy.vue @@ -5,17 +5,19 @@
-
{{ $props }}
-
{{ selectedStrategy }}
+
+ + {{ input.error }} +
- + + + {{ error }}
@@ -23,15 +25,10 @@