function setFee(
uint16 reflectionTax_,
uint16 treasuryTax_
) public onlyOwner {
validateFees(reflectionTax_, treasuryTax_);
reflectionTax = reflectionTax_;
treasuryTax = treasuryTax_;
emit ChangedFees(reflectionTax_, treasuryTax_);
}
function validateFees(
uint16 reflectionTax_,
uint16 treasuryTax_
) internal pure {
require(
reflectionTax_ + treasuryTax_ <= 20,
"Fees cannot be greater than 20%"
);
}
No specific recommendation necessary
function excludeMultipleAccountsFromFees(
address[] calldata accounts,
bool excluded
) external onlyOwner {
for (uint256 i = 0; i < accounts.length; i++) {
_isExcludedFromFee[accounts[i]] = excluded;
}
emit ExcludedAccountsFromFees(accounts, excluded);
}
No specific recommendation necessary.
function toggleSwap(bool enable) external onlyOwner {
swapEnabled = enable;
emit ChangedSwapEnable(enable);
}
No specific recommendation necessary.
Disclaimer: This smart contract audit report, conducted by SecureWise, is intended for informational purposes only. It does not constitute an endorsement, investment advice, or a guarantee of any kind. The audit involved code analysis, manual review, testing, and risk classification.