Skip to content

Commit

Permalink
feat(ramp): add Optimism and Linea (#814)
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh authored Aug 20, 2024
1 parent 8952156 commit 3e63b26
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions apps/ramp-network/src/ramp.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import { ChainInfo } from '@safe-global/safe-apps-sdk'
import { RampInstantEvent, RampInstantSDK } from '@ramp-network/ramp-instant-sdk'
import { RAMP_API_KEY } from './constants'

const RINKEBY_STAGING_URL = 'https://ri-widget-staging.firebaseapp.com/'
const WIDGET_CLOSE_EVENT = 'WIDGET_CLOSE'
const PURCHASE_CREATED_EVENT = 'PURCHASE_CREATED'

export const ASSETS_BY_CHAIN: { [key: string]: string } = {
'1': 'ETH_*,ERC20_*',
'4': 'ETH_*,ERC20_*',
'1': 'ETH_*',
'10': 'OPTIMISM_*',
'56': 'BSC_*',
'137': 'MATIC_*',
'100': 'XDAI_*',
Expand All @@ -18,10 +16,7 @@ export const ASSETS_BY_CHAIN: { [key: string]: string } = {
'1101': 'POLYGONZKEVM_*',
'42161': 'ARBITRUM_*',
'42220': 'CELO_*',
}

export const getRampWidgetUrl = (chainInfo: ChainInfo) => {
return chainInfo?.chainId === '4' ? RINKEBY_STAGING_URL : ''
'59144': 'LINEA_*',
}

type RampWidgetInitializer = {
Expand Down

0 comments on commit 3e63b26

Please sign in to comment.