bugfix for limit/diagonal tranche building

This commit is contained in:
tim
2025-04-01 13:48:59 -04:00
parent 0442b08623
commit 715a43c097
5 changed files with 10 additions and 13 deletions

View File

@@ -44,7 +44,7 @@ function buildTranches() {
warnings.push('Slippage will be set to the minimum of 0.01%')
const slip = Math.max(slippage.value, MIN_SLIPPAGE)
return {
tranches: [newTranche({slippage: slip / 100})],
tranches: [newTranche({marketOrder: true, slippage: slip / 100})],
warnings,
}
}