Skip to content

Commit

Permalink
fix: bug in deposit confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
james-a-morris committed Nov 1, 2023
1 parent bb02534 commit eb1a0ef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/views/Bridge/Bridge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ const Bridge = () => {
toAccount={toAccount}
currentTokenMaxApy={currentTokenMaxApy}
isCurrentTokenMaxApyLoading={isCurrentTokenMaxApyLoading}
convertTokensToBaseCurrency={convertTokensToBaseCurrency}
depositReferralReward={depositReferralReward}
/>
) : (
<BridgeForm
Expand Down
7 changes: 7 additions & 0 deletions src/views/Bridge/components/DepositConfirmation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import { getReceiveTokenSymbol } from "../utils";
import { ToAccount } from "../hooks/useToAccount";
import { useAmplitude } from "hooks/useAmplitude";
import { ampli } from "ampli";
import { ConvertTokensToBaseCurrencyType } from "../hooks/useBridge";

type DepositConfirmationProps = {
currentFromRoute: number | undefined;
Expand All @@ -48,6 +49,8 @@ type DepositConfirmationProps = {

currentTokenMaxApy?: BigNumber;
isCurrentTokenMaxApyLoading?: boolean;
convertTokensToBaseCurrency: ConvertTokensToBaseCurrencyType;
depositReferralReward?: BigNumber;
};

const logoMapping: {
Expand Down Expand Up @@ -81,6 +84,8 @@ const DepositConfirmation = ({
explorerLink: _explorerLink,
elapsedTimeFromDeposit,
currentTokenMaxApy,
convertTokensToBaseCurrency,
depositReferralReward,
}: DepositConfirmationProps) => {
const explorerLink = _explorerLink ?? "https://etherscan.io";

Expand Down Expand Up @@ -241,6 +246,8 @@ const DepositConfirmation = ({
Boolean(toAccount?.isContract)
)
)}
convertTokensToBaseCurrency={convertTokensToBaseCurrency}
depositReferralReward={depositReferralReward}
/>
<Divider />
<Button disabled={transactionPending} onClick={onClickNewTx}>
Expand Down

0 comments on commit eb1a0ef

Please sign in to comment.