-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #596 from lidofinance/develop
Develop to main
- Loading branch information
Showing
33 changed files
with
427 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
import { Card } from 'shared/wallet'; | ||
import styled from 'styled-components'; | ||
import { DAPP_CHAIN_TYPE } from 'modules/web3'; | ||
|
||
interface StyledCardProps { | ||
$optimism?: boolean; | ||
$soneium?: boolean; | ||
$chainType?: DAPP_CHAIN_TYPE; | ||
} | ||
|
||
const backgrounds: Partial<Record<DAPP_CHAIN_TYPE, string>> & { | ||
default: string; | ||
} = { | ||
[DAPP_CHAIN_TYPE.Optimism]: | ||
'linear-gradient(52.01deg, #37394A 0%, #1D1E35 0.01%, #B73544 100%)', | ||
[DAPP_CHAIN_TYPE.Soneium]: | ||
'linear-gradient(52.01deg, #9d1451 0.01%, #630876 100%)', | ||
[DAPP_CHAIN_TYPE.Unichain]: | ||
'linear-gradient(52.01deg, #fc0fa4 0.01%, #8e1459 100%)', | ||
default: 'linear-gradient(52.01deg, #1b3349 0%, #25697e 100%)', | ||
}; | ||
|
||
export const StyledCard = styled(Card)<StyledCardProps>` | ||
background: ${({ $optimism, $soneium }) => { | ||
if ($optimism) { | ||
return 'linear-gradient(52.01deg, #37394A 0%, #1D1E35 0.01%, #B73544 100%)'; | ||
} | ||
if ($soneium) { | ||
return 'linear-gradient(52.01deg, #9d1451 0.01%, #630876 100%);'; | ||
} | ||
return 'linear-gradient(52.01deg, #1b3349 0%, #25697e 100%)'; | ||
background: ${({ $chainType }) => { | ||
return backgrounds[$chainType ?? 'default'] ?? backgrounds['default']; | ||
}}; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { | ||
WhatIsWstethOnUnichain, | ||
HowCanIGetWstethOnUnichain, | ||
HowCanIUseWstethOnUnichain, | ||
CanIStakeMyETHDirectlyOnUnichain, | ||
DoIStillGetStakingRewardsWithStETHOrWstETHOnUnichain, | ||
DoINeedToClaimMyStakingRewardsIfIWrapStETHToWstETHOnUnichain, | ||
HowCouldIUnwrapWstETHBackToStETHOnUnichain, | ||
WhatHappensIfIWantToUnstakeETHOnEthereumCanIDoThatFromUnichain, | ||
} from './list'; | ||
|
||
export const UnichainFAQ = () => ( | ||
<> | ||
<WhatIsWstethOnUnichain /> | ||
<HowCanIGetWstethOnUnichain /> | ||
<HowCanIUseWstethOnUnichain /> | ||
<CanIStakeMyETHDirectlyOnUnichain /> | ||
<DoIStillGetStakingRewardsWithStETHOrWstETHOnUnichain /> | ||
<DoINeedToClaimMyStakingRewardsIfIWrapStETHToWstETHOnUnichain /> | ||
<HowCouldIUnwrapWstETHBackToStETHOnUnichain /> | ||
<WhatHappensIfIWantToUnstakeETHOnEthereumCanIDoThatFromUnichain /> | ||
</> | ||
); |
13 changes: 13 additions & 0 deletions
13
...ures/wsteth/shared/wrap-faq/unichain-faq/list/can-i-stake-my-eth-directly-on-unichain.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { FC } from 'react'; | ||
import { Accordion } from '@lidofinance/lido-ui'; | ||
|
||
export const CanIStakeMyETHDirectlyOnUnichain: FC = () => { | ||
return ( | ||
<Accordion summary="Can I stake my ETH directly on Unichain?"> | ||
<p> | ||
No, staking in the Lido Protocol is available only on the Ethereum | ||
mainnet. | ||
</p> | ||
</Accordion> | ||
); | ||
}; |
11 changes: 11 additions & 0 deletions
11
...-faq/list/do-i-need-to-claim-my-staking-rewards-if-i-wrap-steth-to-wsteth-on-unichain.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { FC } from 'react'; | ||
import { Accordion } from '@lidofinance/lido-ui'; | ||
|
||
export const DoINeedToClaimMyStakingRewardsIfIWrapStETHToWstETHOnUnichain: FC = | ||
() => { | ||
return ( | ||
<Accordion summary="Do I need to claim my staking rewards if I wrap stETH to wstETH on Unichain?"> | ||
<p>No, staking rewards accrue to wstETH automatically.</p> | ||
</Accordion> | ||
); | ||
}; |
Oops, something went wrong.