diff --git a/src/components/Deposit.tsx b/src/components/Deposit.tsx index 9d3b7ca..e4bc57d 100755 --- a/src/components/Deposit.tsx +++ b/src/components/Deposit.tsx @@ -309,7 +309,7 @@ export default function Deposit(props: DepositProps) { amount.isZero() || amount.compare(maxAmount.toEtherStr(), 'gt'), }} selectedMarket={selectedMarket} - strategyName={props.strategy.name} + strategy={props.strategy} /> diff --git a/src/components/TxButton.tsx b/src/components/TxButton.tsx index 1b66238..00f11d8 100755 --- a/src/components/TxButton.tsx +++ b/src/components/TxButton.tsx @@ -1,7 +1,7 @@ import CONSTANTS, { LATEST_TNC_DOC_VERSION } from '@/constants'; import { referralCodeAtom } from '@/store/referral.store'; import { StrategyTxProps, monitorNewTxAtom } from '@/store/transactions.atom'; -import { TokenInfo } from '@/strategies/IStrategy'; +import { IStrategyProps, TokenInfo } from '@/strategies/IStrategy'; import { getReferralUrl } from '@/utils'; import { Box, @@ -34,7 +34,7 @@ interface TxButtonProps { buttonProps: ButtonProps; justDisableIfNoWalletConnect?: boolean; selectedMarket?: TokenInfo; - strategyName?: string; + strategy?: IStrategyProps; } export default function TxButton(props: TxButtonProps) { @@ -183,7 +183,7 @@ export default function TxButton(props: TxButtonProps) { >