Currently, container data read from on-chain is returned as a combination of string and number types, however this opens the door for precision loss. Containers should return raw data and let downstream modules cast the data as they wish.
Example:
Position container returns position stats as strings and numbers but all should just be returned as BigNumbers, including derivative stats such as GCR
Currently, container data read from on-chain is returned as a combination of
stringandnumbertypes, however this opens the door for precision loss. Containers should return raw data and let downstream modules cast the data as they wish.Example:
Positioncontainer returns position stats asstringsandnumbersbut all should just be returned as BigNumbers, including derivative stats such asGCR