File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
src/main/kotlin/com/lambda/interaction/request/breaking Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -54,14 +54,10 @@ data class SwapInfo(
5454
5555 val threshold = getBreakThreshold()
5656
57+ // Plus one as this is calculated before this ticks progress is calculated and the breakingTicks are incremented
5758 val breakTicks = (if (rebreakPotential.isPossible()) RebreakHandler .rebreak?.breakingTicks
5859 ? : throw IllegalStateException (" Rebreak BreakInfo was null when rebreak was considered possible" )
59- else breakingTicks).let {
60- // Plus one as this is calculated before this ticks progress is calculated and the breakingTicks are incremented
61- (it + 1 ).let {
62- if (breakDelta >= threshold || ! info.breaking) it else (it - breakConfig.fudgeFactor)
63- }
64- }
60+ else breakingTicks) + 1 - breakConfig.fudgeFactor
6561
6662 val minKeepTicks = run {
6763 if (type == Primary ) {
You can’t perform that action at this time.
0 commit comments