Skip to content

Commit

Permalink
Manual update bridgemap
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboydiamonds committed Jul 24, 2024
1 parent 26ecd9c commit c40b618
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/synapse-interface/constants/bridgeMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1525,8 +1525,8 @@ export const BRIDGE_MAP = {
'0xaf88d065e77c8cC2239327C5EDb3A432268e5831': {
decimals: 6,
symbol: 'USDC',
origin: ['CCTP.USDC', 'RFQ.USDC', 'nUSD'],
destination: ['CCTP.USDC', 'RFQ.USDC'],
origin: ['CCTP.USDC', 'RFQ.USDC', 'nUSD', 'RFQ.USDB'],
destination: ['CCTP.USDC', 'RFQ.USDC', 'RFQ.USDB'],
swappable: [
'0x17FC002b466eEc40DaE837Fc4bE5c67993ddBd6F',
'0x2913E812Cf0dcCA30FB28E6Cac3d2DCFF4497688',
Expand Down Expand Up @@ -1821,7 +1821,7 @@ export const BRIDGE_MAP = {
decimals: 18,
symbol: 'USDB',
origin: ['nUSD', 'RFQ.USDB'],
destination: ['nUSD', 'RFQ.USDB'],
destination: ['nUSD', 'RFQ.USDC'],
swappable: ['0x3194B0A295D87fDAA54DF852c248F7a6BAF6c6e0'],
},
'0x4300000000000000000000000000000000000004': {
Expand Down
2 changes: 1 addition & 1 deletion packages/synapse-interface/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@reduxjs/toolkit": "^1.9.5",
"@rtk-query/graphql-request-base-query": "^2.2.0",
"@segment/analytics-next": "^1.53.0",
"@synapsecns/sdk-router": "file:../sdk-router",
"@synapsecns/sdk-router": "^0.9.0",
"@tailwindcss/aspect-ratio": "^0.4.2",
"@tailwindcss/forms": "^0.5.3",
"@tailwindcss/typography": "^0.5.9",
Expand Down
12 changes: 12 additions & 0 deletions packages/synapse-interface/pages/state-managed-bridge/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,16 @@ const StateManagedBridge = () => {
dispatch(setIsLoading(true))
const currentTimestamp: number = getTimeMinutesFromNow(0)

const testQuotes = await synapseSDK.allBridgeQuotes(
81457,
42161,
"0x4300000000000000000000000000000000000003",
"0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
stringToBigInt(debouncedFromValue, 6)
)

console.log('testQuotes: ', testQuotes)

const allQuotes = await synapseSDK.allBridgeQuotes(
fromChainId,
toChainId,
Expand All @@ -171,6 +181,8 @@ const StateManagedBridge = () => {
).flatMap(getBridgeModuleNames)
)

console.log('allQuotes: ', allQuotes)

const activeQuotes = allQuotes.filter(
(quote) => !pausedBridgeModules.has(quote.bridgeModuleName)
)
Expand Down

0 comments on commit c40b618

Please sign in to comment.