Skip to content

Commit

Permalink
Added boosted pool icons to Polygon zkevm pools
Browse files Browse the repository at this point in the history
  • Loading branch information
pkattera committed Jun 22, 2023
1 parent 99c9dbc commit 210f944
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/assets/images/icons/protocols/0vix.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/composables/useBoostedPool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export enum BoostedProtocol {
Reaper = 'reaper',
Tetu = 'tetu',
Granary = 'granary',
Zerovix = '0vix',
}

export const boostedProtocolIconPaths: Record<BoostedProtocol, string> = {
Expand Down Expand Up @@ -67,4 +68,8 @@ export const boostedProtocolIconPaths: Record<BoostedProtocol, string> = {
'@/assets/images/icons/protocols/tetu.png',
import.meta.url
).href,
[BoostedProtocol.Zerovix]: new URL(
'@/assets/images/icons/protocols/0vix.svg',
import.meta.url
).href,
};
10 changes: 7 additions & 3 deletions src/lib/config/zkevm/pools.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { BoostedProtocol } from '@/composables/useBoostedPool';
import { Pools, RiskKey } from '@/types/pools';

const pools: Pools = {
Expand Down Expand Up @@ -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',
Expand All @@ -85,7 +88,8 @@ const pools: Pools = {
'0x6f34a44fce1506352a171232163e7716dd073ade000200000000000000000015': {
name: 'rETH/Boosted 0vix USD',
hasIcon: false,
boosted: false,
boosted: true,
boostedProtocols: [BoostedProtocol.Zerovix],
},
},
Deep: [
Expand Down

0 comments on commit 210f944

Please sign in to comment.