Skip to content

Commit

Permalink
feat: unichain fallback banner
Browse files Browse the repository at this point in the history
  • Loading branch information
manneredboor committed Nov 8, 2024
1 parent f6d7795 commit 2c75f06
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/icons/lido-multichain/unichain.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions consts/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export enum LIDO_MULTICHAIN_CHAINS {
'BNB Chain' = 56,
'Mode Chain' = 34443,
'Zircuit Chain' = 48900,
Unichain = 130,
}

// TODO: move to @lidofinance/lido-ethereum-sdk package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { ReactComponent as ScrollLogo } from 'assets/icons/lido-multichain/scrol
import { ReactComponent as BNBLogo } from 'assets/icons/lido-multichain/bnb.svg';
import { ReactComponent as ModeLogo } from 'assets/icons/lido-multichain/mode.svg';
import { ReactComponent as ZircuitLogo } from 'assets/icons/lido-multichain/zircuit-logo.svg';
import { ReactComponent as UnichainLogo } from 'assets/icons/lido-multichain/unichain.svg';

import { config } from 'config';
import { LIDO_MULTICHAIN_CHAINS } from 'consts/chains';
Expand All @@ -39,6 +40,7 @@ const multichainLogos = {
[LIDO_MULTICHAIN_CHAINS['BNB Chain']]: BNBLogo,
[LIDO_MULTICHAIN_CHAINS['Mode Chain']]: ModeLogo,
[LIDO_MULTICHAIN_CHAINS['Zircuit Chain']]: ZircuitLogo,
[LIDO_MULTICHAIN_CHAINS.Unichain]: UnichainLogo,
};

const getChainLogo = (chainId: LIDO_MULTICHAIN_CHAINS) => {
Expand Down
4 changes: 4 additions & 0 deletions shared/wallet/fallback/lido-multichain-fallback/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ export const Wrap = styled((props) => <Card {...props} />)<WrapProps>`
#01bb81 91.42%
);
`;
case LIDO_MULTICHAIN_CHAINS.Unichain:
return css`
background: linear-gradient(52.01deg, #fc0fa4 0.01%, #8e1459 100%);
`;
default:
return css`
background: linear-gradient(
Expand Down

0 comments on commit 2c75f06

Please sign in to comment.