Skip to content

Commit

Permalink
Merge pull request #764 from bancorprotocol/changetext
Browse files Browse the repository at this point in the history
#763 - Update text trade CTA
  • Loading branch information
pingustar authored Nov 22, 2023
2 parents 73bd974 + 636a83e commit db2716d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elements/trade/TradeWidgetCTA.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const TradeWidgetCTA = ({
const isInputZero =
fromInput.inputTkn === '' || new BigNumber(fromInput.inputTkn).eq(0);
if (isInputZero) return 'Enter Amount';
if (!toInput?.inputTkn) return 'Insufficient liquidity';
if (!toInput?.inputTkn) return 'Pair not supported';
if (!account) return 'Connect your wallet';
const isHighSlippage = new BigNumber(priceImpact).gte(5);
if (isHighSlippage) return 'Trade with high price impact';
Expand Down

0 comments on commit db2716d

Please sign in to comment.