Skip to content

Commit

Permalink
Merge f3ae14a into 6b4f1ed
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiTimesChi authored Aug 5, 2024
2 parents 6b4f1ed + f3ae14a commit b5a648e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,10 @@ const StateManagedBridge = () => {
toChainId,
fromToken.addresses[fromChainId],
toToken.addresses[toChainId],
stringToBigInt(debouncedFromValue, fromToken?.decimals[fromChainId])
stringToBigInt(debouncedFromValue, fromToken?.decimals[fromChainId]),
{
originUserAddress: address,
}
)

const pausedBridgeModules = new Set(
Expand Down
11 changes: 8 additions & 3 deletions packages/synapse-interface/utils/hooks/useGasEstimator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,19 @@ const getBridgeQuote = async (
toChainId: number,
fromToken: Token,
toToken: Token,
amount: string
amount: string,
userAddress: string
) => {
try {
return await synapseSDK.bridgeQuote(
fromChainId,
toChainId,
fromToken.addresses[fromChainId],
toToken.addresses[toChainId],
stringToBigInt(amount, fromToken?.decimals[fromChainId])
stringToBigInt(amount, fromToken?.decimals[fromChainId]),
{
originUserAddress: userAddress,
}
)
} catch (error) {
console.error('getBridgeQuote: ', error)
Expand Down Expand Up @@ -248,7 +252,8 @@ const queryEstimatedBridgeGasLimit = async (
toChainId,
fromToken,
toToken,
amount
amount,
address // userAddress
)

const bridgePayload = await getBridgePayload(
Expand Down

0 comments on commit b5a648e

Please sign in to comment.