From cd003cc517cee294fc11b333b840a1ec5f4ff178 Mon Sep 17 00:00:00 2001 From: Georges KABBOUCHI Date: Wed, 25 Aug 2021 14:13:23 +0300 Subject: [PATCH] wip --- components/AccountDropdown.vue | 4 +- .../context/strategy/SidebarStrategy.vue | 101 +++++++++++++----- composables/protocols/useAaveV2Position.ts | 3 + composables/useEventBus.ts | 24 +++++ composables/useStrategy.ts | 20 +++- core/strategies/helpers/index.ts | 11 +- core/strategies/helpers/strategy.ts | 15 ++- .../protocols/aave-v2/deposit-and-borrow.ts | 80 ++++++++++---- .../protocols/aave-v2/payback-and-withdraw.ts | 51 +++++++-- layouts/default.vue | 3 +- package.json | 2 + tailwind.config.js | 1 + yarn.lock | 27 ++++- 13 files changed, 269 insertions(+), 73 deletions(-) create mode 100644 composables/useEventBus.ts diff --git a/components/AccountDropdown.vue b/components/AccountDropdown.vue index c209021..b3eb7e5 100644 --- a/components/AccountDropdown.vue +++ b/components/AccountDropdown.vue @@ -1,6 +1,6 @@