zeitgeist icon indicating copy to clipboard operation
zeitgeist copied to clipboard

Transform scalar markets from integer to fixed point numbers

Open maltekliemann opened this issue 2 years ago • 0 comments

Fixes #800. This PR consists of a storage migration only. That may seem confusing.

The storage migration transforms the numbers used in scalar markets to fixed point numbers by multiplying them by BASE. This basically changes the resolution of the market. If the market's values were USD before, they are now fixed point numbers with ten digits after the decimal point, still representing USD.

No additional changes to the business logic are required. Resolving scalar markets has worked before, it still works now. We're just transforming the markets that are currently on chain to a higher precision.

maltekliemann avatar Oct 16 '22 10:10 maltekliemann