Submitted by tensors, also found by s1m0
The contracts assume that all tokens will have <=18 decimals. This isnt necessarily a problem if the Tracer team is the only people deploying the contracts and they keep it in mind. But, If the contracts are to be deployed by other people, this assumption should be made explicit and hard-coded.
We can see that the scaler computations will underflow and be defined when it should not be In L220-L232.
Recommend writing a require check that ensures tokenDecimals <= 18 before running the above functions.
raymogg (Tracer) confirmed:
