Submitted by csanuragjain
ManagedIndex.sol#L35
TopNMarketCapIndex.sol#L57
TrackedIndex.sol#L45
Initialize function can be called multiple times with same asset. Calling with same asset will make duplicate entries in assets list. Any function reading assets will get impacted and would retrieve duplicate asset
Add a check to fail if assets already contains the passed asset argument. Also add a modifier so that initialize could only be called once.
olivermehr (Phuture Finance) disputed
jn-lp (Phuture Finance) commented:
moose-code (judge) commented:
