Submitted by cmichel
The getSharesForAmount function returns 0 if totalAssets == 0.
However, if totalSupply == 0, the actual shares that are minted in a deposit are _amount even if totalAssets == 0.
Contracts / frontends that use this function to estimate their deposit when totalSupply == 0 will return a wrong value.
ramenforbreakfast (prePO) confirmed and commented:
gzeon (judge) commented:
