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%"
);
}
Please avoid high fees, choose a more appropriate fee within a certain range.
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);
}
There is no specific recommendation for this finding.
function toggleSwap(bool enable) external onlyOwner {
swapEnabled = enable;
emit ChangedSwapEnable(enable);
}
There is no specific recommendation for this finding.
function manualSwap() external onlyOwner {
swapTokensForEth(balanceOf(address(this)));
}
There is no specific recommendation for this finding.
function withdrawTokens(
address token,
address to,
uint amount
) external onlyOwner {
require(IERC20(token).transfer(to, amount), "transfer rejected");
emit WithdrawedTokens(token, to, amount);
}
There is no specific recommendation for this finding.
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.