Skip to content

Commit

Permalink
Adds bridgeQuote to Segment (#2828)
Browse files Browse the repository at this point in the history
  • Loading branch information
abtestingalpha authored Jul 17, 2024
1 parent b4f9116 commit a70f29f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ const StateManagedBridge = () => {
destinationToken: toToken?.routeSymbol,
exchangeRate: BigInt(bridgeQuote.exchangeRate.toString()),
routerAddress: bridgeQuote.routerAddress,
bridgeQuote,
},
true
)
Expand Down Expand Up @@ -464,6 +465,7 @@ const StateManagedBridge = () => {
destinationToken: toToken?.routeSymbol,
exchangeRate: BigInt(bridgeQuote.exchangeRate.toString()),
routerAddress: bridgeQuote.routerAddress,
bridgeQuote,
})
dispatch(
updatePendingBridgeTransaction({
Expand Down
1 change: 1 addition & 0 deletions packages/synapse-interface/store/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ store.subscribe(() => {
outputAmountString,
routerAddress,
exchangeRate: BigInt(exchangeRate.toString()),
bridgeQuote: currentState.bridge.bridgeQuote,
}
segmentAnalyticsEvent(eventTitle, eventData)
}
Expand Down

0 comments on commit a70f29f

Please sign in to comment.