mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2024-11-19 18:02:54 +01:00
Modified rounding on DLCPayoutCurve interpolation to match spec (#2470)
This commit is contained in:
parent
46c73970ff
commit
680ed4b58a
@ -171,7 +171,7 @@ sealed trait DLCPayoutCurveComponent {
|
||||
protected def bigDecimalSats(bd: BigDecimal): Satoshis = {
|
||||
Satoshis(
|
||||
bd.setScale(6, RoundingMode.HALF_UP)
|
||||
.setScale(0, RoundingMode.FLOOR)
|
||||
.setScale(0, RoundingMode.HALF_UP)
|
||||
.toLongExact)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user