-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(base): add base chain support #5044
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
3450c83
to
2be0d47
Compare
Hey @alfetopito , great job!
|
The color code was taken from their brand guide https://github.com/base-org/brand-kit.
Fixed
It was a bug, fixed.
Correct, we need backend PROD to be up first.
Shouldn't be. Does this happen only on Base?
|
Hey @alfetopito ,
Looks good
No :( It is a regression bug. I've opened #5077 task for this. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing. It looks great.
I will merge this to DEVELOP, and iterate to add the missing parts. Mostly token stuff, twap stuff and small bugs reported by Elena.
@@ -29,7 +41,7 @@ export function SurplusCard() { | |||
const surplusUsdAmount = useUsdAmount(showSurplusAmount ? surplusAmount : undefined).value | |||
const native = useNativeCurrency() | |||
const nativeSymbol = native.symbol || 'ETH' | |||
const isArbitrumOne = native.chainId === SupportedChainId.ARBITRUM_ONE | |||
const startDate = START_DATE[native.chainId as SupportedChainId] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now is cleaner :)
[SupportedChainId.SEPOLIA]: '', | ||
} | ||
|
||
const PANCAKE_CHAINS = { | ||
[SupportedChainId.MAINNET]: 'eth', | ||
[SupportedChainId.GNOSIS_CHAIN]: '', | ||
[SupportedChainId.ARBITRUM_ONE]: 'arb', | ||
[SupportedChainId.BASE]: 'base', | ||
[SupportedChainId.SEPOLIA]: '', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: im dont love to rely on empty string. I prefer to make the type solicit by allowing undefined or null
[SupportedChainId.SEPOLIA]: GNO_SEPOLIA, | ||
} | ||
|
||
const SDAI_GNOSIS_CHAIN_ADDRESS = '0xaf204776c7245bf4147c2612bf6e5972ee483701' | ||
const GBPE_GNOSIS_CHAIN_ADDRESS = '0x5cb9073902f2035222b9749f8fb0c9bfe5527108' | ||
|
||
// Not used for fees |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As this is a const file, and you are referring to the business logic. I would not add this comment here
@@ -11,6 +11,8 @@ const ENS_REGISTRAR_ADDRESSES: Record<SupportedChainId, string | null> = { | |||
[SupportedChainId.GNOSIS_CHAIN]: null, | |||
[SupportedChainId.SEPOLIA]: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e', | |||
[SupportedChainId.ARBITRUM_ONE]: null, | |||
[SupportedChainId.BASE]: null, | |||
// TODO: use mainnet registrar for all chains https://docs.ens.domains/learn/deployments, which means being connected to mainnet additionally to the other chain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
created this #5133
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/@cowprotocol/[email protected], npm/@cowprotocol/[email protected] |
Summary
Initial Base chain support.
Still not 100% functional as backend/solvers are not 100% up.
It has a feature flag so should be safe to merge even without full support.
To Test