Submitted by jonah1005
First lp provider received liquidity amount same as the nativeDeposit amount and decides the rate. If the first lp sets the pools rate to an extreme value no one can deposit to the pool afterward. (please refer to the proof of concept section)
A malicious attacker can DOS the system by back-running the setTokenSupport and setting the pools price to the extreme.
I consider this is a medium-risk issue.
VaderMath.sol#L42
Since the scale of the total supply is (10**18)^2, the operation would overflow.
None
Set a minimum deposit amount (both asset amount and native amount) for the first lp provider.
SamSteinGG (Vader) confirmed
