File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -53,11 +53,11 @@ func CalculateExponential(
5353
5454 maxOutput uint256.Int
5555 )
56- num .SetUint64 (uint64 ( numerator ) ) // range is [0, MaxUint64]
57- denom .SetUint64 (uint64 ( denominator ) ) // range is [0, MaxUint64]
56+ num .SetUint64 (numerator ) // range is [0, MaxUint64]
57+ denom .SetUint64 (denominator ) // range is [0, MaxUint64]
5858
5959 i .SetOne ()
60- numeratorAccum .SetUint64 (uint64 ( factor )) // range is [0, MaxUint64]
60+ numeratorAccum .SetUint64 (factor ) // range is [0, MaxUint64]
6161 numeratorAccum .Mul (& numeratorAccum , & denom ) // range is [0, MaxUint128]
6262
6363 maxOutput .Mul (& denom , max256Uint64 ) // range is [0, MaxUint128]
Original file line number Diff line number Diff line change 55// https://github.com/avalanche-foundation/ACPs/blob/main/ACPs/226-dynamic-minimum-block-times/README.md
66package acp226
77
8- import (
9- "github.com/ava-labs/avalanchego/vms/evm/upgrades/common"
10- )
8+ import "github.com/ava-labs/avalanchego/vms/evm/upgrades/common"
119
1210const (
1311 // MinDelayMilliseconds (M) is the minimum block delay in milliseconds
Original file line number Diff line number Diff line change @@ -46,11 +46,11 @@ func (p TargetExcessParams) DesiredTargetExcess(desiredTarget uint64) uint64 {
4646// CalculateTarget calculates the target value using exponential formula:
4747// Target = MinTarget * e^(Excess / TargetConversion)
4848func (p TargetExcessParams ) CalculateTarget (excess uint64 ) uint64 {
49- return uint64 ( safemath .CalculateExponential (
49+ return safemath .CalculateExponential (
5050 p .MinTarget ,
5151 excess ,
5252 p .TargetConversion ,
53- ))
53+ )
5454}
5555
5656// MulWithUpperBound multiplies two numbers and returns the result. If the
You can’t perform that action at this time.
0 commit comments