diff --git a/packages/synapse-interface/constants/bridgeMap.ts b/packages/synapse-interface/constants/bridgeMap.ts index 70f9755d4a..3b1181a69b 100644 --- a/packages/synapse-interface/constants/bridgeMap.ts +++ b/packages/synapse-interface/constants/bridgeMap.ts @@ -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', @@ -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': { diff --git a/packages/synapse-interface/package.json b/packages/synapse-interface/package.json index 24885e7545..304ec460f5 100644 --- a/packages/synapse-interface/package.json +++ b/packages/synapse-interface/package.json @@ -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", diff --git a/packages/synapse-interface/pages/state-managed-bridge/index.tsx b/packages/synapse-interface/pages/state-managed-bridge/index.tsx index 9cf1a2f339..450a09da41 100644 --- a/packages/synapse-interface/pages/state-managed-bridge/index.tsx +++ b/packages/synapse-interface/pages/state-managed-bridge/index.tsx @@ -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, @@ -171,6 +181,8 @@ const StateManagedBridge = () => { ).flatMap(getBridgeModuleNames) ) + console.log('allQuotes: ', allQuotes) + const activeQuotes = allQuotes.filter( (quote) => !pausedBridgeModules.has(quote.bridgeModuleName) )