Skip to content
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(synapse-interface): Adds Scroll via RFQ #2526

Merged
merged 18 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions packages/synapse-interface/assets/chains/scroll.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { useState, useEffect } from 'react'
import { getCountdownTimeStatus } from './EventCountdownProgressBar'
import { isNull } from 'lodash'

/**
* Generic Message Banner that appears between defined start and end time.
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import { MoreButton } from './MoreButton'
import { PageFooter } from './PageFooter'
import { joinClassNames } from '@/utils/joinClassNames'
import { MaintenanceBanners } from '@/components/Maintenance/Maintenance'
import { AnnouncementBanner } from '@/components/Maintenance/components/AnnouncementBanner'

const wrapperClassName = joinClassNames({
textColor: 'text-zinc-800 dark:text-zinc-200',
Expand All @@ -49,6 +50,12 @@ export function LandingPageWrapper({ children }: { children: any }) {
return (
<div className="dark">
<div className={wrapperClassName} style={TODO_REMOVE_wrapperStyle}>
<AnnouncementBanner
bannerId="2024-05-02-scroll-launch"
bannerContents="Synapse Protocol now available on Scroll"
startDate={new Date('2024-05-08T18:45:09+00:00')}
endDate={new Date('2024-05-27T18:45:09+00:00')}
/>
<MaintenanceBanners />
<LandingNav />
{children}
Expand Down
11 changes: 11 additions & 0 deletions packages/synapse-interface/components/ui/NewTag.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { joinClassNames } from '@/utils/joinClassNames'

export const NewTag = () => {
const className = joinClassNames({
space: 'px-2 py-[2px] rounded-md',
border: 'border border-fuchsia-500',
background: 'bg-gradient-to-r from-fuchsia-950 to-purple-900',
font: 'text-sm ',
})
return <div className={className}>New!</div>
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
sortTokensByBalanceDescending,
} from '@/utils/actions/fetchPortfolioBalances'
import { joinClassNames } from '@/utils/joinClassNames'
import { NewTag } from '@/components/ui/NewTag'

export const SelectSpecificNetworkButton = ({
itemChainId,
Expand Down Expand Up @@ -80,7 +81,10 @@ function ButtonContent({
/>
{chain.name}
</span>
{isOrigin && <ChainTokens balanceTokens={balanceTokens} />}
{chain.isNew && <NewTag />}
{isOrigin && balanceTokens?.length > 0 && (
<ChainTokens balanceTokens={balanceTokens} />
)}
</div>
)
)
Expand Down
26 changes: 0 additions & 26 deletions packages/synapse-interface/constants/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,32 +42,6 @@ export const BRIDGE_CONFIG_ADDRESSES = {
[CHAINS.POLYGON.id]: '0xd69229f223a8fc84998e1361ae7b4ff724cf4a49', // TESTING ADDRESS
}

/**
* number of required confirmations from bridge
*/
export const BRIDGE_REQUIRED_CONFIRMATIONS = {
[CHAINS.ETH.id]: 33,
[CHAINS.BNB.id]: 33,
[CHAINS.POLYGON.id]: 128,
[CHAINS.FANTOM.id]: 80,
[CHAINS.BOBA.id]: 33,
[CHAINS.OPTIMISM.id]: 750,
[CHAINS.MOONBEAM.id]: 33,
[CHAINS.MOONRIVER.id]: 33,
[CHAINS.ARBITRUM.id]: 200,
[CHAINS.AVALANCHE.id]: 80,
[CHAINS.DFK.id]: 33,
[CHAINS.HARMONY.id]: 33,
[CHAINS.AURORA.id]: 33,
[CHAINS.CRONOS.id]: 33,
[CHAINS.METIS.id]: 33,
[CHAINS.DOGE.id]: 33,
[CHAINS.CANTO.id]: 20,
[CHAINS.BASE.id]: 750,
[CHAINS.KLAYTN.id]: 20,
[CHAINS.BLAST.id]: 750,
}

export const DEFAULT_FROM_TOKEN_SYMBOL = 'USDC'
export const DEFAULT_TO_TOKEN_SYMBOL = 'USDC'
export const DEFAULT_FROM_TOKEN = USDC
Expand Down
Loading
Loading