THORChain-v1 icon indicating copy to clipboard operation
THORChain-v1 copied to clipboard

RunCLPFormula function in CLP Keeper uses float precision

Open musnit opened this issue 6 years ago • 0 comments

It is unclear/needs to be checked whether this is 100% secure. May be necessary to implement power and n-th root Math functions to work on int64s with int64 precision.

Cosmos has not implemented coins with decimal values yet either, so likely want to defer until then too

Also need to check risk of exploiting/slowly draining tokens due to rounding errors

musnit avatar Aug 28 '18 16:08 musnit