|
@@ -360,7 +360,7 @@ export async function swapIfNeeded(
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const inputAmountRaw = Math.floor(Number(usdValue) * 1e6)
|
|
const inputAmountRaw = Math.floor(Number(usdValue) * 1e6)
|
|
|
- if (inputAmountRaw < 1e6) {
|
|
|
|
|
|
|
+ if (inputAmountRaw < 5e4) {
|
|
|
console.log(`Skip swap: USD value too small (${usdValue})`)
|
|
console.log(`Skip swap: USD value too small (${usdValue})`)
|
|
|
return { success: true }
|
|
return { success: true }
|
|
|
}
|
|
}
|