From 7b558c52f1f1124bcb894111ba50b84986c02c19 Mon Sep 17 00:00:00 2001 From: Georges KABBOUCHI Date: Sun, 8 Aug 2021 02:22:42 +0300 Subject: [PATCH] compound --- assets/icons/colored/compound.svg | 5 + assets/icons/colored/maker.svg | 8 + .../context/aaveV2/SidebarAaveV2Borrow.vue | 4 +- .../context/aaveV2/SidebarAaveV2Withdraw.vue | 4 +- .../compound/SidebarCompoundBorrow.vue | 210 ++++++++++++++++ .../compound/SidebarCompoundPayback.vue | 225 ++++++++++++++++++ .../compound/SidebarCompoundSupply.vue | 203 ++++++++++++++++ .../compound/SidebarCompoundWithdraw.vue | 212 +++++++++++++++++ composables/useCompoundPosition.ts | 91 +++---- composables/useModal.ts | 3 +- composables/useNetwork.ts | 2 - composables/useProtocolData.ts | 1 - composables/useSidebar.ts | 29 ++- pages/index.vue | 7 +- pages/mainnet/aave-v2.vue | 1 - pages/mainnet/compound.vue | 1 - pages/polygon/aave-v2.vue | 1 - shims.d.ts | 9 + 18 files changed, 932 insertions(+), 84 deletions(-) create mode 100644 assets/icons/colored/compound.svg create mode 100644 assets/icons/colored/maker.svg create mode 100644 components/sidebar/context/compound/SidebarCompoundBorrow.vue create mode 100644 components/sidebar/context/compound/SidebarCompoundPayback.vue create mode 100644 components/sidebar/context/compound/SidebarCompoundSupply.vue create mode 100644 components/sidebar/context/compound/SidebarCompoundWithdraw.vue create mode 100644 shims.d.ts diff --git a/assets/icons/colored/compound.svg b/assets/icons/colored/compound.svg new file mode 100644 index 0000000..bcde02d --- /dev/null +++ b/assets/icons/colored/compound.svg @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/assets/icons/colored/maker.svg b/assets/icons/colored/maker.svg new file mode 100644 index 0000000..6036a98 --- /dev/null +++ b/assets/icons/colored/maker.svg @@ -0,0 +1,8 @@ + + + + \ No newline at end of file diff --git a/components/sidebar/context/aaveV2/SidebarAaveV2Borrow.vue b/components/sidebar/context/aaveV2/SidebarAaveV2Borrow.vue index ff16129..ddc7a51 100644 --- a/components/sidebar/context/aaveV2/SidebarAaveV2Borrow.vue +++ b/components/sidebar/context/aaveV2/SidebarAaveV2Borrow.vue @@ -19,12 +19,12 @@

- Amount to supply + Amount to borrow