gear icon indicating copy to clipboard operation
gear copied to clipboard

Currency converting dynamic multiplier

Open breathx opened this issue 3 years ago • 0 comments

Problem to Solve

Need to figure out should we change the gas <=> value converting multiplier dynamically, dependent on network load.

Possible Solution

If it become changeable, need to adapt GasTree to store exactly value and add tolerance constant to convert from gas to value without any loses. It also may be done like: we burn N gas, while 1 value = X gas, and we round to upper bound and transfer (N + (X - 1)) / X, e.g. 5 gas with 1 value = 4 gas leads to transfer of 2 value.

Notes

No response

breathx avatar Jul 27 '22 11:07 breathx