Refactor reward curve (#3668)

* move test in tests dir

* comment

* refactor
This commit is contained in:
thiolliere authored and Bastian Köcher committed 2019-09-23 14:11:24 +02:00
1 parent 0a469666c1
commit e6d4a76521
5 files changed
+2 -11

No files matched your search

@@ -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;