mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-14 15:35:45 +00:00
Refactor reward curve (#3668)
* move test in tests dir * comment * refactor
This commit is contained in:
committed by
Bastian Köcher
parent
0a469666c1
commit
e6d4a76521
@@ -279,6 +279,8 @@ fn compute_points(input: &INposInput) -> Vec<(u32, u32)> {
|
||||
let mut delta_y = max_length;
|
||||
let mut y = input.max_inflation;
|
||||
|
||||
// The algorithm divide the curve in segment with vertical len and horizontal len less
|
||||
// than `max_length`. This is not very accurate in case of very consequent steep.
|
||||
while delta_y != 0 {
|
||||
let next_y = y - delta_y;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user