tezos-checker / checker

An in-development "robocoin" system for the Tezos blockchain
24 stars 16 forks source link

Make liquidity use a scaling factor, and set the factor to 1_000_000 #148

Closed gkaracha closed 3 years ago

gkaracha commented 3 years ago

Fixes #146.

First changed the codebase so that liquidity uses a scaling factor (also made it opaque), and then updated the scaling factor to 1_000_000. Apart from the show instance test, no test broke, since we compute no prices using liquidity in the codebase.

Also exposed lqt_decimal_digits as metadata; I hope I didn't miss anything on the deployment side of things or the functional spec.

purcell commented 3 years ago

Yay, looks good!