@@ -11,20 +11,17 @@ import { Chains } from '../../../../../config/chains';
1111import { CTA } from '../../../../2_molecules/CTA/CTA' ;
1212import borrowSovryn from '../../../../../assets/images/QuickLaunch/Borrow with Sovryn.svg' ;
1313import comingSoon from '../../../../../assets/images/QuickLaunch/Coming soon.svg' ;
14- import depositAMM from '../../../../../assets/images/QuickLaunch/Deposit in AMM.svg' ;
1514import lendDLLR from '../../../../../assets/images/QuickLaunch/Lend DLLR.svg' ;
16- import originsLaunch from '../../../../../assets/images/QuickLaunch/Origins Launch.svg' ;
1715import passiveYield from '../../../../../assets/images/QuickLaunch/Passive yield.svg' ;
1816import stakeSOV from '../../../../../assets/images/QuickLaunch/Stake SOV.svg' ;
1917import tradeRunes from '../../../../../assets/images/QuickLaunch/Trade Runes.svg' ;
20- import { LAUNCHPAD_LINKS } from '../../../../../constants/links ' ;
18+ import zero from '../../../../../assets/images/QuickLaunch/Zero.png ' ;
2119import { useCurrentChain } from '../../../../../hooks/useChainStore' ;
2220import { translations } from '../../../../../locales/i18n' ;
2321import { COMMON_SYMBOLS } from '../../../../../utils/asset' ;
2422import { isBobChain , isRskChain } from '../../../../../utils/chain' ;
2523import { formatValue } from '../../../../../utils/math' ;
2624import { useGetNextSupplyInterestRate } from '../../../LendPage/hooks/useGetNextSupplyInterestRate' ;
27- import { useGetReturnRates } from '../../../MarketMakingPage/hooks/useGetReturnRates' ;
2825import { useGetStakingStatistics } from '../../../StakePage/components/StakingStatistics/hooks/useGetStakingStatistics' ;
2926import styles from './QuickLaunch.module.css' ;
3027
@@ -35,32 +32,18 @@ export const QuickLaunch: FC = () => {
3532 const chainId = useCurrentChain ( ) ;
3633 const { maxStakingApr } = useGetStakingStatistics ( ) ;
3734 const { interestRate } = useGetNextSupplyInterestRate ( COMMON_SYMBOLS . DLLR ) ;
38- const { rates } = useGetReturnRates ( ) ;
39-
40- const maxRate = useMemo ( ( ) => {
41- let maxRewards = '0' ;
42- rates . forEach ( rate => {
43- if ( Number ( rate . beforeRewards ) > Number ( maxRewards ) ) {
44- maxRewards = rate . beforeRewards ;
45- }
46- } ) ;
47-
48- return maxRewards ;
49- } , [ rates ] ) ;
5035
5136 const options = useMemo (
5237 ( ) => [
5338 {
54- title : t ( pageTranslations . quickLaunch . originsLaunchpad . title , {
39+ title : t ( pageTranslations . quickLaunch . zero . title , {
5540 amount : formatValue ( maxStakingApr , 2 ) ,
5641 } ) ,
57- description : t (
58- pageTranslations . quickLaunch . originsLaunchpad . description ,
59- ) ,
60- action : t ( pageTranslations . quickLaunch . originsLaunchpad . action ) ,
61- href : LAUNCHPAD_LINKS . ORIGINS_CLAIM ,
62- url : noop ,
63- backgroundImage : originsLaunch ,
42+ description : t ( pageTranslations . quickLaunch . zero . description ) ,
43+ action : t ( pageTranslations . quickLaunch . zero . action ) ,
44+ url : ( ) => navigate ( '/borrow/line-of-credit' ) ,
45+ backgroundImage : zero ,
46+ imageClass : 'w-16 top-5 right-5' ,
6447 chains : [ Chains . RSK ] ,
6548 } ,
6649 {
@@ -73,16 +56,6 @@ export const QuickLaunch: FC = () => {
7356 backgroundImage : stakeSOV ,
7457 chains : [ Chains . RSK ] ,
7558 } ,
76- {
77- title : t ( pageTranslations . quickLaunch . earn . title , {
78- amount : formatValue ( maxRate , 2 ) ,
79- } ) ,
80- description : t ( pageTranslations . quickLaunch . earn . description ) ,
81- action : t ( pageTranslations . quickLaunch . earn . action ) ,
82- url : ( ) => navigate ( '/earn/market-making' ) ,
83- backgroundImage : depositAMM ,
84- chains : [ Chains . RSK ] ,
85- } ,
8659 {
8760 title : t ( pageTranslations . quickLaunch . lend . title , {
8861 amount : formatValue ( interestRate , 2 ) ,
@@ -135,7 +108,7 @@ export const QuickLaunch: FC = () => {
135108 disable : true ,
136109 } ,
137110 ] ,
138- [ interestRate , maxRate , maxStakingApr , navigate ] ,
111+ [ interestRate , maxStakingApr , navigate ] ,
139112 ) ;
140113
141114 const filteredOptions = useMemo ( ( ) => {
@@ -194,9 +167,10 @@ export const QuickLaunch: FC = () => {
194167 title = { option . title }
195168 description = { option . description }
196169 action = { option . action }
197- href = { option . href }
170+ // href={option.href}
198171 navigateTo = { option . url }
199172 disableCTA = { option . disable }
173+ imageClass = { option . imageClass }
200174 />
201175 ) ) }
202176 </ Carousel >
0 commit comments