setSwapTaxRate and setBurnTaxRate calls in RAACMinter revert
due to an Incorrect modifer in the called functions
The RAACToken contract stores the address of RAACMinter using the variable minter
.
And uses the onlyMinter
Modifier as an access control mechanism for RAACMinter related functions.
The setSwapTaxRate and setBurnTaxRate functions of RAACMinter makes external calls to RAACToken Contracts functions of the same name as shown
But the calls are reverted as the RAACToken contract implements a onlyOwner modifer on its setSwapTaxRate and setBurnTaxRate instead of onlyMinter modifier.
Reverting calls due to Incorrectly placed access control modifier
Replace the onlyOwner
modifer with the onlyMinter
modifier to facilitate the call from RAACMinter
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.