We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2a8e6b commit acbdb55Copy full SHA for acbdb55
packages/core/src/controllers/SwapController.ts
@@ -171,6 +171,7 @@ export const SwapController = {
171
const invalidSourceToken =
172
!state.sourceToken?.address ||
173
!state.sourceToken?.decimals ||
174
+ state.sourceToken.address === state.toToken?.address ||
175
!NumberUtil.bigNumber(state.sourceTokenAmount).isGreaterThan(0);
176
const invalidSourceTokenAmount = !state.sourceTokenAmount;
177
0 commit comments