Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboydiamonds committed May 10, 2024
1 parent 491ddc4 commit bfe83d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ const StateManagedBridge = () => {
fromToken,
toToken,
bridgeQuote,
isLoading: isLoadingQuote,
debouncedFromValue,
destinationAddress,
isLoading: isLoadingQuote,
}: BridgeState = useBridgeState()
const { showSettingsSlideOver, showDestinationAddress } = useSelector(
(state: RootState) => state.bridgeDisplay
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { BridgeQuote, Token } from '@/utils/types'
import { formatBigIntToString } from '../bigint/format'
import { commify } from '@ethersproject/units'
import { calculateExchangeRate } from '../calculateExchangeRate'
import { getTimeMinutesFromNow } from '../time'

export interface BridgeQuoteResponse extends BridgeQuote {
destinationToken: Token
Expand All @@ -23,6 +24,7 @@ export async function fetchBridgeQuote(
synapseSDK: any
): Promise<BridgeQuoteResponse> {
if (request && synapseSDK) {
const currentTimestamp: number = getTimeMinutesFromNow(0)
try {
const {
originChainId,
Expand Down Expand Up @@ -93,6 +95,7 @@ export async function fetchBridgeQuote(
estimatedTime: estimatedTime,
bridgeModuleName: bridgeModuleName,
gasDropAmount: BigInt(gasDropAmount.toString()),
timestamp: currentTimestamp,
}
} catch (error) {
console.error('Error fetching bridge quote:', error)
Expand Down

0 comments on commit bfe83d5

Please sign in to comment.