Closed petrovska-petro closed 1 month ago
It was annoying to change back to owner, and then assign elsewhere. The V1 injector tried to prevent stupidity by only allowing sweeps/changes/etc back to the owner. The new version realizes that this is just annoying, and at best opens up functionality to allow the owner to do admin operations "to" any address.
Will correct the docs here. Let me know if you see this elsewhere.
pretty sure the contract as it stands exposes owner() as a read function. Take a look at the deployed version: https://polygonscan.com/address/0xF7D4E035182825EcCECeC489f08F349Ab214Cf82#readContract
Think this is included in Ownable2Step.sol.
natspec are being tackled in https://github.com/BalancerMaxis/ChildGaugeInjectorV2/pull/28, pendant of review
once #28 is merged, this issue can be closed ✅
Severity: unclear design intention
Context: if the intention indeed is to set the distrubutor into the owner, we could omit a parameter and simply hardcoded the
owner
Recommendation: code suggestion below
If the design is open to any "distributor", then it is advisable to update the Natspec comments accordangly.
Review stage
Balancer Maxis:
Onchainification Labs: