Skip to content

Commit

Permalink
feat: Add Simple Staking (#8036)
Browse files Browse the repository at this point in the history
### <samp>🤖 Generated by Copilot at 3bab618</samp>

### Summary
🚀💰🔒


Added Simple Staking card to Home page. This feature allows users to stake CAKE tokens and earn rewards. Modified `EcoSystemSection/index.tsx` to import and render the card component.

> _To show a new feature on Home_
> _Uncommented imports were done_
> _Added data for `EcoSystemSection`_
> _To display a card for Simple Staking_
> _A nice way to earn some income_

### Walkthrough
*  Uncomment import statements for `earnFixedStaking` and `earnFixedStakingPurple` images ([link](https://github.com/pancakeswap/pancake-frontend/pull/8036/files?diff=unified&w=0#diff-eb773e70dc574977f184dfbdfca993e7fe13a5995b9f433ab192864c6ee2c6e5L23-R23), [link](https://github.com/pancakeswap/pancake-frontend/pull/8036/files?diff=unified&w=0#diff-eb773e70dc574977f184dfbdfca993e7fe13a5995b9f433ab192864c6ee2c6e5L39-R39))
*  Add data object for Simple Staking feature to `useEarnBlockData` hook ([link](https://github.com/pancakeswap/pancake-frontend/pull/8036/files?diff=unified&w=0#diff-eb773e70dc574977f184dfbdfca993e7fe13a5995b9f433ab192864c6ee2c6e5R264-R271))
  • Loading branch information
ChefMomota authored Oct 4, 2023
1 parent c0706f3 commit 86cc091
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
12 changes: 10 additions & 2 deletions apps/web/src/views/Home/components/EcoSystemSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import tradeBuy from '../../images/trade-buy-crypto.png'
import earnFarm from '../../images/earn-farm.png'
import earnPools from '../../images/earn-pools.png'
import earnLiquidStaking from '../../images/earn-liquidity-staking.png'
// import earnFixedStaking from '../../images/earn-fixed-staking.png'
import earnFixedStaking from '../../images/earn-fixed-staking.png'
import gamePrediction from '../../images/game-prediction.png'
import gamePancakeProtectors from '../../images/game-pancake-protectors.png'
import gameLottery from '../../images/game-lottery.png'
Expand All @@ -36,7 +36,7 @@ import tradeBuyPurple from '../../images/trade-buy-crypto-purple.png'
import earnFarmPurple from '../../images/earn-farm-purple.png'
import earnPoolsPurple from '../../images/earn-pools-purple.png'
import earnLiquidStakingPurple from '../../images/earn-liquidity-staking-purple.png'
// import earnFixedStakingPurple from '../../images/earn-fixed-staking-purple.png'
import earnFixedStakingPurple from '../../images/earn-fixed-staking-purple.png'
import gamePredictionPurple from '../../images/game-prediction-purple.png'
import gamePancakeProtectorsPurple from '../../images/game-pancake-protectors-purple.png'
import gameLotteryPurple from '../../images/game-lottery-purple.png'
Expand Down Expand Up @@ -261,6 +261,14 @@ const useEarnBlockData = () => {
defaultImage: earnLiquidStakingPurple,
path: '/liquid-staking',
},
{
title: t('Simple Staking'),
description: t('Earn rewards hassle-free with single-sided staking'),
ctaTitle: t('Stake Now'),
image: earnFixedStaking,
defaultImage: earnFixedStakingPurple,
path: '/simple-staking',
},
]
}, [t])
}
Expand Down
3 changes: 2 additions & 1 deletion packages/localization/src/config/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -2808,5 +2808,6 @@
"Share $10,000": "Share $10,000",
"Predict now": "Predict now",
"Trade now": "Trade now",
"Saturn Syndicate: Trade perpetuals and share $10,000 rewards Daily reward for new users and to top the leaderboard": "Saturn Syndicate: Trade perpetuals and share $10,000 rewards Daily reward for new users and to top the leaderboard"
"Saturn Syndicate: Trade perpetuals and share $10,000 rewards Daily reward for new users and to top the leaderboard": "Saturn Syndicate: Trade perpetuals and share $10,000 rewards Daily reward for new users and to top the leaderboard",
"Earn rewards hassle-free with single-sided staking": "Earn rewards hassle-free with single-sided staking"
}

2 comments on commit 86cc091

@vercel
Copy link

@vercel vercel bot commented on 86cc091 Oct 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

uikit – ./packages/uikit

uikit-git-develop.pancake.run
uikit.pancake.run

@vercel
Copy link

@vercel vercel bot commented on 86cc091 Oct 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.