From e4bfcb1ad007c143e59c8b366595048fb98a2acd Mon Sep 17 00:00:00 2001 From: Sowmay Jain Date: Wed, 11 Aug 2021 17:34:29 +0530 Subject: [PATCH 1/7] Update README.md --- README.md | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) diff --git a/README.md b/README.md index dbe5823..2ad687b 100644 --- a/README.md +++ b/README.md @@ -18,52 +18,3 @@ $ yarn generate ``` For detailed explanation on how things work, check out the [documentation](https://nuxtjs.org). - -## Special Directories - -You can create the following extra directories, some of which have special behaviors. Only `pages` is required; you can delete them if you don't want to use their functionality. - -### `assets` - -The assets directory contains your uncompiled assets such as Stylus or Sass files, images, or fonts. - -More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/assets). - -### `components` - -The components directory contains your Vue.js components. Components make up the different parts of your page and can be reused and imported into your pages, layouts and even other components. - -More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/components). - -### `layouts` - -Layouts are a great help when you want to change the look and feel of your Nuxt app, whether you want to include a sidebar or have distinct layouts for mobile and desktop. - -More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/layouts). - - -### `pages` - -This directory contains your application views and routes. Nuxt will read all the `*.vue` files inside this directory and setup Vue Router automatically. - -More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/get-started/routing). - -### `plugins` - -The plugins directory contains JavaScript plugins that you want to run before instantiating the root Vue.js Application. This is the place to add Vue plugins and to inject functions or constants. Every time you need to use `Vue.use()`, you should create a file in `plugins/` and add its path to plugins in `nuxt.config.js`. - -More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/plugins). - -### `static` - -This directory contains your static files. Each file inside this directory is mapped to `/`. - -Example: `/static/robots.txt` is mapped as `/robots.txt`. - -More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/static). - -### `store` - -This directory contains your Vuex store files. Creating a file in this directory automatically activates Vuex. - -More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/store). From eae45ac6b06c1b862c7e595c415c32cdfd499efd Mon Sep 17 00:00:00 2001 From: Georges KABBOUCHI Date: Wed, 11 Aug 2021 15:30:44 +0300 Subject: [PATCH 2/7] closes #1 --- components/AccountSwitcher.vue | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/components/AccountSwitcher.vue b/components/AccountSwitcher.vue index 3f0fc66..bd87720 100644 --- a/components/AccountSwitcher.vue +++ b/components/AccountSwitcher.vue @@ -68,7 +68,16 @@ > +
+ + v{{ account.version }} + +
+ #{{ account.id }} +
- From a07959126332a170b82a80d13bb9793e7d286371 Mon Sep 17 00:00:00 2001 From: Georges KABBOUCHI Date: Wed, 11 Aug 2021 15:32:25 +0300 Subject: [PATCH 3/7] closes #3 --- composables/useDSA.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/composables/useDSA.ts b/composables/useDSA.ts index 14fd7b1..c04c2a5 100644 --- a/composables/useDSA.ts +++ b/composables/useDSA.ts @@ -16,8 +16,7 @@ export function useDSA() { if (web3.value) { dsa.value = new DSA(web3.value, chainId.value); } - }, - { immediate: true } + } ); watch( @@ -39,8 +38,7 @@ export function useDSA() { activeAccount.value = accounts.value[0]; } } - }, - { immediate: true } + } ); watch( From 063f454713d0fdee00354fe91ad7cd6a62b426b5 Mon Sep 17 00:00:00 2001 From: Georges KABBOUCHI Date: Wed, 11 Aug 2021 15:33:51 +0300 Subject: [PATCH 4/7] 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 @@