Submitted by robee, also found by georgypetrov, cmichel, and IllIllI
Deviation.sol#L23
Division by 0 can lead to accidentally revert,
(An example of a similar issue - https://github.com/code-423n4/2021-10-defiprotocol-findings/issues/84)
Its internal function but since it is used in another internal functions that are used in public and neither of them has this protection I thought it can be considered as medium (e.g. isWithinDeviationThreshold).
ElliotFriedman (Volt) confirmed
Jack the Pug (judge) commented:
Jack the Pug (judge) commented:
