From 4dd6d59afd12f6999e309e74f743f3d8d34b10ee Mon Sep 17 00:00:00 2001 From: Marcin Ciarka Date: Thu, 19 Sep 2024 12:19:55 +0200 Subject: [PATCH] Fix missing lending protocol config for SKY (sync from oasis-borrow) --- .../earn-protocol/helpers/lending-protocol.ts | 2 + .../helpers/lending-protocols-configs.ts | 10 ++ .../public/img/protocol_icons/sky.svg | 98 +++++++++++++++++++ .../helpers/lending-protocol.ts | 2 + .../helpers/lending-protocols-configs.ts | 10 ++ .../public/img/protocol_icons/sky.svg | 98 +++++++++++++++++++ ...ionMenuDropdownContentListItem.module.scss | 5 + ...nuDropdownContentListItem.module.scss.d.ts | 1 + packages/app-ui/src/styles/gradients.scss | 1 + 9 files changed, 227 insertions(+) create mode 100644 apps/earn-protocol/public/img/protocol_icons/sky.svg create mode 100644 apps/rays-dashboard/public/img/protocol_icons/sky.svg diff --git a/apps/earn-protocol/helpers/lending-protocol.ts b/apps/earn-protocol/helpers/lending-protocol.ts index 12272250ce..eaf05d71eb 100644 --- a/apps/earn-protocol/helpers/lending-protocol.ts +++ b/apps/earn-protocol/helpers/lending-protocol.ts @@ -5,6 +5,7 @@ export enum LendingProtocol { Maker = 'maker', MorphoBlue = 'morphoblue', SparkV3 = 'sparkv3', + Sky = 'sky', } export enum LendingProtocolLabel { @@ -14,6 +15,7 @@ export enum LendingProtocolLabel { maker = 'Maker', morphoblue = 'Morpho Blue', sparkv3 = 'Spark', + sky = 'Sky', } export type AaveLendingProtocol = LendingProtocol.AaveV2 | LendingProtocol.AaveV3 diff --git a/apps/earn-protocol/helpers/lending-protocols-configs.ts b/apps/earn-protocol/helpers/lending-protocols-configs.ts index 39191706a0..4e57cc70e8 100644 --- a/apps/earn-protocol/helpers/lending-protocols-configs.ts +++ b/apps/earn-protocol/helpers/lending-protocols-configs.ts @@ -8,6 +8,7 @@ import makerIcon from 'public/img/protocol_icons/maker_icon.svg' import makerLogo from 'public/img/protocol_icons/maker_logo.svg' import morphoBlueIcon from 'public/img/protocol_icons/morpho_blue_icon.svg' import morphoBlueLogo from 'public/img/protocol_icons/morpho_blue_logo.svg' +import skyIcon from 'public/img/protocol_icons/sky.svg' import sparkIcon from 'public/img/protocol_icons/spark_icon.svg' import sparkLogo from 'public/img/protocol_icons/spark_logo.svg' @@ -69,6 +70,14 @@ const sparkConfig: LendingProtocolConfig = { logoScale: 1.2, } +const skyConfig: LendingProtocolConfig = { + name: LendingProtocol.Sky, + label: LendingProtocolLabel.sky, + icon: skyIcon as string, + logo: skyIcon as string, + logoScale: 1.6, +} + const lendingProtocols = [ aaveV2Config, aaveV3Config, @@ -76,6 +85,7 @@ const lendingProtocols = [ makerConfig, morphoBlueConfig, sparkConfig, + skyConfig, ] export const lendingProtocolsByName = keyBy(lendingProtocols, 'name') diff --git a/apps/earn-protocol/public/img/protocol_icons/sky.svg b/apps/earn-protocol/public/img/protocol_icons/sky.svg new file mode 100644 index 0000000000..9c57c0148c --- /dev/null +++ b/apps/earn-protocol/public/img/protocol_icons/sky.svg @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/rays-dashboard/helpers/lending-protocol.ts b/apps/rays-dashboard/helpers/lending-protocol.ts index 12272250ce..eaf05d71eb 100644 --- a/apps/rays-dashboard/helpers/lending-protocol.ts +++ b/apps/rays-dashboard/helpers/lending-protocol.ts @@ -5,6 +5,7 @@ export enum LendingProtocol { Maker = 'maker', MorphoBlue = 'morphoblue', SparkV3 = 'sparkv3', + Sky = 'sky', } export enum LendingProtocolLabel { @@ -14,6 +15,7 @@ export enum LendingProtocolLabel { maker = 'Maker', morphoblue = 'Morpho Blue', sparkv3 = 'Spark', + sky = 'Sky', } export type AaveLendingProtocol = LendingProtocol.AaveV2 | LendingProtocol.AaveV3 diff --git a/apps/rays-dashboard/helpers/lending-protocols-configs.ts b/apps/rays-dashboard/helpers/lending-protocols-configs.ts index a6aaa79b3d..7266b0c06f 100644 --- a/apps/rays-dashboard/helpers/lending-protocols-configs.ts +++ b/apps/rays-dashboard/helpers/lending-protocols-configs.ts @@ -8,6 +8,7 @@ import makerIcon from 'public/img/protocol_icons/maker_icon.svg' import makerLogo from 'public/img/protocol_icons/maker_logo.svg' import morphoBlueIcon from 'public/img/protocol_icons/morpho_blue_icon.svg' import morphoBlueLogo from 'public/img/protocol_icons/morpho_blue_logo.svg' +import skyIcon from 'public/img/protocol_icons/sky.svg' import sparkIcon from 'public/img/protocol_icons/spark_icon.svg' import sparkLogo from 'public/img/protocol_icons/spark_logo.svg' @@ -76,6 +77,14 @@ const sparkConfig: LendingProtocolConfig = { logoScale: 1.2, } +const skyConfig: LendingProtocolConfig = { + name: LendingProtocol.Sky, + label: LendingProtocolLabel.sky, + icon: skyIcon as string, + logo: skyIcon as string, + logoScale: 1.6, +} + const lendingProtocols = [ aaveV2Config, aaveV3Config, @@ -84,6 +93,7 @@ const lendingProtocols = [ makerConfig, morphoBlueConfig, sparkConfig, + skyConfig, ] export const lendingProtocolsByName = keyBy(lendingProtocols, 'name') diff --git a/apps/rays-dashboard/public/img/protocol_icons/sky.svg b/apps/rays-dashboard/public/img/protocol_icons/sky.svg new file mode 100644 index 0000000000..9c57c0148c --- /dev/null +++ b/apps/rays-dashboard/public/img/protocol_icons/sky.svg @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/app-ui/src/components/layout/Navigation/NavigationMenuDropdownContentListItem.module.scss b/packages/app-ui/src/components/layout/Navigation/NavigationMenuDropdownContentListItem.module.scss index 1d2a424b0b..3a9829e49b 100644 --- a/packages/app-ui/src/components/layout/Navigation/NavigationMenuDropdownContentListItem.module.scss +++ b/packages/app-ui/src/components/layout/Navigation/NavigationMenuDropdownContentListItem.module.scss @@ -43,6 +43,11 @@ background-image: var(--gradient-protocol-spark); } } + &sky { + &::after { + background-image: var(--gradient-protocol-sky); + } + } } .navigationMenuDropdownContentListItemTitle { diff --git a/packages/app-ui/src/components/layout/Navigation/NavigationMenuDropdownContentListItem.module.scss.d.ts b/packages/app-ui/src/components/layout/Navigation/NavigationMenuDropdownContentListItem.module.scss.d.ts index bfe3f7d32f..143eba2b3b 100644 --- a/packages/app-ui/src/components/layout/Navigation/NavigationMenuDropdownContentListItem.module.scss.d.ts +++ b/packages/app-ui/src/components/layout/Navigation/NavigationMenuDropdownContentListItem.module.scss.d.ts @@ -11,6 +11,7 @@ export type Styles = { navigationMenuDropdownContentListItemTitleGradientajna: string navigationMenuDropdownContentListItemTitleGradientmaker: string navigationMenuDropdownContentListItemTitleGradientmorphoblue: string + navigationMenuDropdownContentListItemTitleGradientsky: string navigationMenuDropdownContentListItemTitleGradientsparkv3: string navigationMenuDropdownContentListItemWrapper: string starTransition: string diff --git a/packages/app-ui/src/styles/gradients.scss b/packages/app-ui/src/styles/gradients.scss index 15410b29ca..9e5485fd2a 100644 --- a/packages/app-ui/src/styles/gradients.scss +++ b/packages/app-ui/src/styles/gradients.scss @@ -13,4 +13,5 @@ --gradient-protocol-maker: linear-gradient(135deg, #2dc1b1 0%, #139d8d 100%); --gradient-protocol-morpho-blue: linear-gradient(92deg, #1859f2 0%, #00378a 89.02%); --gradient-protocol-spark: linear-gradient(159deg, #f58013 12.26%, #f19d19 86.52%); + --gradient-protocol-sky: linear-gradient(159deg, #4a87fa 12.26%, #a294ee 86.52%); }