Refactor reward curve (#3668)

* move test in tests dir

* comment

* refactor
This commit is contained in:
thiolliere
2019-09-23 14:11:24 +02:00
committed by Bastian Köcher
parent 0a469666c1
commit e6d4a76521
5 changed files with 2 additions and 11 deletions
@@ -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;