There was an error while loading. Please reload this page.
1 parent c183978 commit eb7d7a3Copy full SHA for eb7d7a3
1 file changed
src/powerup/cpu.ts
@@ -39,7 +39,7 @@ export class PowerUpStateResourceCPU extends PowerUpStateResource {
39
return Math.floor((us / Number(sampled.getValue())) * BNPrecision)
40
}
41
us_to_weight(sample: UInt128, us: Int64Type): Int64 {
42
- return Int64.from(us).multiplying(BNPrecision).dividing(Int64.from(sample), 'floor')
+ return Int64.from(us).multiplying(BNPrecision).dividing(sample, 'floor')
43
44
45
// Default frac generation by smallest unit type
0 commit comments