Skip to content

Commit

Permalink
feat(sdk): Adds BSC to RFQ (#2830)
Browse files Browse the repository at this point in the history
* Adds BSC to RFQ

* swaps out bsc for arb in test
  • Loading branch information
abtestingalpha authored Jul 15, 2024
1 parent 73863ab commit 5fb5e8a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/sdk-router/src/constants/chainIds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export const RFQ_SUPPORTED_CHAIN_IDS: number[] = [
SupportedChainId.BASE,
SupportedChainId.ARBITRUM,
SupportedChainId.SCROLL,
SupportedChainId.BSC,
]

/**
Expand Down
1 change: 1 addition & 0 deletions packages/sdk-router/src/constants/medianTime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,5 @@ export const MEDIAN_TIME_RFQ = {
[SupportedChainId.ARBITRUM]: 15,
[SupportedChainId.BASE]: 15,
[SupportedChainId.SCROLL]: 15,
[SupportedChainId.BSC]: 15,
}
8 changes: 4 additions & 4 deletions packages/sdk-router/src/sdk.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -920,8 +920,8 @@ describe('SynapseSDK', () => {

describe('Errors', () => {
const synapse = new SynapseSDK(
[SupportedChainId.ETH, SupportedChainId.BSC],
[ethProvider, bscProvider]
[SupportedChainId.ETH, SupportedChainId.ARBITRUM],
[ethProvider, arbProvider]
)

const amount = BigNumber.from(10).pow(9)
Expand Down Expand Up @@ -983,9 +983,9 @@ describe('SynapseSDK', () => {
await expect(
synapse.bridgeQuote(
SupportedChainId.ETH,
SupportedChainId.BSC,
SupportedChainId.ARBITRUM,
ETH_USDC,
BSC_USDC,
ARB_USDC,
BigNumber.from(10).pow(3)
)
).rejects.toThrow('No route found')
Expand Down

0 comments on commit 5fb5e8a

Please sign in to comment.