From 210f9448b38ca17fb4a01c768e5c91817ef7ed8b Mon Sep 17 00:00:00 2001 From: pkattera Date: Thu, 22 Jun 2023 11:30:15 +0100 Subject: [PATCH] Added boosted pool icons to Polygon zkevm pools --- src/assets/images/icons/protocols/0vix.svg | 1 + src/composables/useBoostedPool.ts | 5 +++++ src/lib/config/zkevm/pools.ts | 10 +++++++--- 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 src/assets/images/icons/protocols/0vix.svg diff --git a/src/assets/images/icons/protocols/0vix.svg b/src/assets/images/icons/protocols/0vix.svg new file mode 100644 index 0000000000..52b52d81cf --- /dev/null +++ b/src/assets/images/icons/protocols/0vix.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/composables/useBoostedPool.ts b/src/composables/useBoostedPool.ts index f18c74f787..8965599b41 100644 --- a/src/composables/useBoostedPool.ts +++ b/src/composables/useBoostedPool.ts @@ -12,6 +12,7 @@ export enum BoostedProtocol { Reaper = 'reaper', Tetu = 'tetu', Granary = 'granary', + Zerovix = '0vix', } export const boostedProtocolIconPaths: Record = { @@ -67,4 +68,8 @@ export const boostedProtocolIconPaths: Record = { '@/assets/images/icons/protocols/tetu.png', import.meta.url ).href, + [BoostedProtocol.Zerovix]: new URL( + '@/assets/images/icons/protocols/0vix.svg', + import.meta.url + ).href, }; diff --git a/src/lib/config/zkevm/pools.ts b/src/lib/config/zkevm/pools.ts index f559739971..daa2537c9e 100644 --- a/src/lib/config/zkevm/pools.ts +++ b/src/lib/config/zkevm/pools.ts @@ -1,3 +1,4 @@ +import { BoostedProtocol } from '@/composables/useBoostedPool'; import { Pools, RiskKey } from '@/types/pools'; const pools: Pools = { @@ -70,12 +71,14 @@ const pools: Pools = { '0xe274c9deb6ed34cfe4130f8d0a8a948dea5bb28600000000000000000000000d': { name: 'Balancer Boosted 0vix USD', hasIcon: false, - boosted: false, + boosted: true, + boostedProtocols: [BoostedProtocol.Zerovix], }, '0x68a69c596b3839023c0e08d09682314f582314e5000200000000000000000011': { name: 'wstETH/weth/Boosted 0vix USD', hasIcon: false, - boosted: false, + boosted: true, + boostedProtocols: [BoostedProtocol.Zerovix], }, '0x9e2d87f904862671eb49cb358e74284762cc9f42000200000000000000000013': { name: 'wstETH/Boosted 0vix USD', @@ -85,7 +88,8 @@ const pools: Pools = { '0x6f34a44fce1506352a171232163e7716dd073ade000200000000000000000015': { name: 'rETH/Boosted 0vix USD', hasIcon: false, - boosted: false, + boosted: true, + boostedProtocols: [BoostedProtocol.Zerovix], }, }, Deep: [