xMPL.performMigration() is safe to be called by everyone
Description
xMPL.performMigration() is currently only allowed to be called by the contract owner, but as there are no funds at risk and no downsides to having everyone (public) call the function, the modifier onlyOwner can be removed.
QA Report
Non-Critical Findings
Redundant type cast to
address
Description
Variable
asset
is defined asaddress public override asset
, the type casting toaddress
is redundant.Findings
RevenueDistributionToken.sol#L162
RevenueDistributionToken.sol#L181
Recommended mitigation steps
Remove redundant type cast.
From:
To:
Open TODOs in code
Description
Open TODOs can hint at programming or architectural errors that still need to be fixed.
Findings
RevenueDistributionToken.sol#L78
RevenueDistributionToken.sol#L276
Recommended mitigation steps
Implement open TODOs and remove comments.
xMPL.performMigration()
is safe to be called by everyoneDescription
xMPL.performMigration()
is currently only allowed to be called by the contract owner, but as there are no funds at risk and no downsides to having everyone (public) call the function, the modifieronlyOwner
can be removed.It even states so in the README:
Findings
xMPL.performMigration()
Recommended mitigation steps
Remove modifier
onlyOwner
.Low Risk
None found.