This commit is contained in:
Georges KABBOUCHI 2021-09-24 00:49:49 +03:00
parent 8f3cfd0fc2
commit 1640a0d0d1
4 changed files with 5 additions and 6 deletions

View File

@ -2,9 +2,9 @@
<SidebarContextContainer class="flex-1 h-full overflow-hidden">
<SidebarContextHeader><slot name="title" /></SidebarContextHeader>
<div class="overflow-y-scroll scrollbar-hover">
<div class="mx-auto w-full">
<div class="py-2 sm:py-4">
<div class="overflow-y-scroll scrollbar-hover h-full">
<div class="mx-auto w-full h-full">
<div class="py-2 sm:py-4 h-full">
<slot />
</div>
</div>

View File

@ -9,7 +9,7 @@
<template #value>{{ formatNumber(balance) }} {{ symbol }}</template>
</SidebarSectionValueWithIcon>
<div class="bg-[#C5CCE1] bg-opacity-[0.15] mt-10 p-8">
<div class="bg-[#C5CCE1] bg-opacity-[0.15] mt-10 p-8 h-full">
<h3 class="text-primary-gray text-xs font-semibold mb-2.5">
Amount to supply
</h3>

View File

@ -9,7 +9,7 @@
<template #value>{{ formatNumber(balance) }} {{ symbol }}</template>
</SidebarSectionValueWithIcon>
<div class="bg-[#C5CCE1] bg-opacity-[0.15] mt-10 p-8">
<div class="bg-[#C5CCE1] bg-opacity-[0.15] mt-10 p-8 h-full">
<h3 class="text-primary-gray text-xs font-semibold mb-2.5">
Amount to withdraw
</h3>

View File

@ -22,7 +22,6 @@ export function useYearnV2Position() {
const { onEvent } = useEventBus();
const fetchPosition = async () => {
vaults.value = [];
const availableVaults = await $axios
.$get("https://api.yearn.finance/v1/chains/1/vaults/all")
.then(vs => vs.filter(v => v.type === "v2"));