Skip to content

Proto: Refactor the computation of the gas rates

The proposed implementation (1) reduces the number of type conversion, (2) removes duplicated code, (3) handles a (unlikely) error case where the computation provokes an integer overflow, and (4) proposes a docstring for the function.

Merge request reports