Skip to content

Commit

Permalink
Update divCeil
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisngyn committed Dec 17, 2024
1 parent 4f06af1 commit adf23e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/source/limitorder/pool_simulator_calc_amount_in.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,6 @@ func (p *PoolSimulator) calcMakerAssetAmountBeforeFee(order *order, makingAmount
func divCeil(a, b *big.Int) *big.Int {
// (a + b - 1) / b
a = new(big.Int).Add(a, b)
a = new(big.Int).Sub(a, big.NewInt(1))
a.Sub(a, big.NewInt(1))
return a.Div(a, b)
}

0 comments on commit adf23e3

Please sign in to comment.