diff --git a/src/components/Deposit.tsx b/src/components/Deposit.tsx index 299c463e..9d3b7caa 100755 --- a/src/components/Deposit.tsx +++ b/src/components/Deposit.tsx @@ -104,14 +104,16 @@ export default function Deposit(props: DepositProps) { ); let reducedBalance = balance; - if (selectedMarket.name === 'STRK') { - reducedBalance = balance.subtract( - MyNumber.fromEther('1.5', selectedMarket.decimals), - ); - } else if (selectedMarket.name === 'ETH') { - reducedBalance = balance.subtract( - MyNumber.fromEther('0.001', selectedMarket.decimals), - ); + if (props.buttonText === 'Deposit') { + if (selectedMarket.name === 'STRK') { + reducedBalance = balance.subtract( + MyNumber.fromEther('1.5', selectedMarket.decimals), + ); + } else if (selectedMarket.name === 'ETH') { + reducedBalance = balance.subtract( + MyNumber.fromEther('0.001', selectedMarket.decimals), + ); + } } console.log('Deposit:: reducedBalance2', reducedBalance.toEtherStr()); const min = MyNumber.min(reducedBalance, adjustedMaxAllowed); diff --git a/src/components/TVL.tsx b/src/components/TVL.tsx index 109a4512..6fb64325 100755 --- a/src/components/TVL.tsx +++ b/src/components/TVL.tsx @@ -88,7 +88,12 @@ const TVL: React.FC = () => { Your referral link{' '} {/* TODO: update the url */} - (i) + + (i) +