Submitted by cmichel, also found by cccz and CertoraInc
LiquidityProviders.sol#L192
The public sharesToTokenAmount function does not check if the denominator totalSharesMinted[_tokenAddress] is zero.
Neither do the callers of this function. The function will revert.
Calling functions like getFeeAccumulatedOnNft and sharesToTokenAmount from another contract should never revert.
Return 0 in case totalSharesMinted[_tokenAddress] is zero.
ankurdubey521 (Biconomy) confirmed
pauliax (judge) commented:
