minAmount 0.1%

This commit is contained in:
tim
2025-03-11 10:51:05 -04:00
parent b2ed48492b
commit 3baa74174d

View File

@@ -31,7 +31,7 @@ export function newOrder(tokenIn, tokenOut, exchange, fee, amount, amountIsInput
if (!tranches)
tranches = [newTranche({marketOrder: true})] // todo this is just a swap: issue warning?
if( minFillAmount === null )
minFillAmount = amount / 100n // default to min trade size of 1%
minFillAmount = amount / 1000n // default to min trade size of 0.1%
return {
tokenIn, tokenOut, route:{exchange, fee},
amount, minFillAmount, amountIsInput,