RAACMinter.sol has 3 setters that interact with the RAACToken contract, setSwapTaxRate, setBurnTaxRate and setFeeCollector, these functions call onlyOwner functions in the RAACToken contract. The owner in RAACToken is set in its constructor, and the already deployed RAACToken address used in RAACMinter is set in it's constructor, thus RAACMinter can never be the owner of RAACToken.
PoC, the following code can be added to the RAACMinter.test.js tests:
And run the test file with npx hardhat test test/unit/core/minters/RAACMinter.test.js
Those 3 functions will always revert.
Manual review
Create an OnlyOwnerAndMinter modifier for the RAACToken functions that RAACMinter needs to execute.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.