Submitted by TrungOre
ManagedIndexReweightingLogic.sol#L32
IIndexRegistry.sol#L19
The list of assets wont be changed after reweight because of reverted tx.
require(_updatedAssets.length <= IIndexRegistry(registry).maxComponents())
when reweight is not true, because as in the doc,
maxComponent is the maximum assets for an index, but _updatedAssets also contain the assets that you want to remove. So the comparision makes no sense.
Require assets.length() <= IIndexRegistry(registry).maxComponents() at the end of function instead.
jn-lp (Phuture Finance) confirmed and resolved
