Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
MattGaetz.inSwap (#350) is never initialized. It is used in:
- MattGaetz._transfer(address,address,uint256) (#402-418)
Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability.
Additional information: link
Contract ownership is not renounced (belongs to a wallet)
Context.Owner() (#282-284) contains a tautology or contradiction:
- _context.Owner() >= 0 (#283)
Fix the incorrect comparison by changing the value type or the comparison.
Additional information: link
MattGaetz.rebaseCount(uint256,uint256) (#476-509) performs a multiplication on the result of a division:
-tmp = tmp.mul(deno.mul(100).add(rebaseRate)).div(deno.mul(100)) (#487)
-tmp = tmp.mul(deno.mul(100).add(minuteRebaseRate)).div(deno.mul(100)) (#492)
MattGaetz.rebaseCount(uint256,uint256) (#476-509) performs a multiplication on the result of a division:
-tmp = tmp.mul(deno.mul(100).add(minuteRebaseRate)).div(deno.mul(100)) (#492)
-tmp = tmp.mul(deno.mul(100).add(hourRebaseRate)).div(deno.mul(100)) (#497)
MattGaetz.rebaseCount(uint256,uint256) (#476-509) performs a multiplication on the result of a division:
-tmp = tmp.mul(deno.mul(100).add(hourRebaseRate)).div(deno.mul(100)) (#497)
-tmp = tmp.mul(deno.mul(100).add(dayRebaseRate)).div(deno.mul(100)) (#502)
Consider ordering multiplication before division.
Additional information: link
MattGaetz._approve(address,address,uint256).owner (#425) shadows:
- Ownable.owner() (#304-306) (function)
MattGaetz.allowance(address,address).owner (#433) shadows:
- Ownable.owner() (#304-306) (function)
Rename the local variables that shadow another component.
Additional information: link
MattGaetz.setMaxMattGaetzPercent(uint256) (#468-470) should emit an event for:
- _maxTxAmount = _totalSupply.mul(maxTxPercent).div(100) (#469)
MattGaetz.setMaxMattGaetz(uint256) (#472-474) should emit an event for:
- _maxTxAmount = maxTxAmount (#473)
Emit an event for critical parameter changes.
Additional information: link
Reentrancy in MattGaetz._transfer(address,address,uint256) (#402-418):
External calls:
- ! isExcludedFromFees(sender) && ! isExcludedFromFees(recipient) (#406)
- _context.isZero(account) (#278-279)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#414)
- _balances[recipient] = _balances[recipient].add(amount) (#415)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in MattGaetz._transfer(address,address,uint256) (#402-418):
External calls:
- ! isExcludedFromFees(sender) && ! isExcludedFromFees(recipient) (#406)
- _context.isZero(account) (#278-279)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#417)
Apply the check-effects-interactions pattern.
Additional information: link
Context._msgData() (#272-275) is never used and should be removed
MattGaetz.rebaseCount(uint256,uint256) (#476-509) is never used and should be removed
SafeMath.mod(uint256,uint256) (#125-127) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#141-144) is never used and should be removed
SafeMath.sqrt(uint256) (#146-153) is never used and should be removed
SafeMath.sub(uint256,uint256) (#32-34) is never used and should be removed
Remove unused functions.
Additional information: link
MattGaetz._totalSupply (#356) is set pre-construction with a non-constant function or state variable:
- 1 * 10 ** 9 * (10 ** _decimals)
MattGaetz._maxTxAmount (#360) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 5
Remove any initialization of state variables via non-constant state variables or function calls. If variables must be set upon contract deployment, locate initialization in the constructor instead.
Additional information: link
Pragma version^0.7.4 (#1) allows old versions
Deploy with any of the following Solidity versions: 0.5.16 - 0.5.17, 0.6.11 - 0.6.12, 0.7.5 - 0.7.6 Use a simple pragma version that allows any of these versions. Consider using the latest version of Solidity for testing.
Additional information: link
MattGaetz (#342-525) should inherit from IERC20 (#156-229)
Inherit from the missing interface or contract.
Additional information: link
Function IERC20Meta.Owner() (#255) is not in mixedCase
Function Context.Owner() (#282-284) is not in mixedCase
Variable Context._context (#266) is not in mixedCase
Parameter MattGaetz.setLpMattGaetzFee(uint8)._rewardFee (#464) is not in mixedCase
Parameter MattGaetz.rebaseCount(uint256,uint256)._lastRebasedTime (#476) is not in mixedCase
Parameter MattGaetz.rebaseCount(uint256,uint256)._tSupply (#476) is not in mixedCase
Parameter MattGaetz.setLiquidityMatt(uint8)._liquidityFee (#515) is not in mixedCase
Parameter MattGaetz.setMarketingGaetz(uint8)._marketingFee (#519) is not in mixedCase
Variable MattGaetz._name (#345) is not in mixedCase
Variable MattGaetz._symbol (#346) is not in mixedCase
Variable MattGaetz._decimals (#347) is not in mixedCase
Variable MattGaetz._totalSupply (#356) is not in mixedCase
Variable MattGaetz._maxTxAmount (#360) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#273)" inContext (#258-286)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable MattGaetz.rebaseCount(uint256,uint256).idx_scope_0 (#490) is too similar to MattGaetz.rebaseCount(uint256,uint256).idx_scope_1 (#495)
Variable MattGaetz.rebaseCount(uint256,uint256).idx_scope_0 (#490) is too similar to MattGaetz.rebaseCount(uint256,uint256).idx_scope_2 (#500)
Variable MattGaetz.rebaseCount(uint256,uint256).idx_scope_1 (#495) is too similar to MattGaetz.rebaseCount(uint256,uint256).idx_scope_2 (#500)
Prevent variables from having similar names.
Additional information: link
MattGaetz.rebaseCount(uint256,uint256) (#476-509) uses literals with too many digits:
- dayRebaseRate = 283000000 * 10 ** 18 (#481)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
MattGaetz._decimals (#347) should be constant
MattGaetz._name (#345) should be constant
MattGaetz._symbol (#346) should be constant
MattGaetz.inSwap (#350) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
owner() should be declared external:
- Ownable.owner() (#304-306)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#316-319)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#328-330)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.
Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.
Average 30d PancakeSwap liquidity is low.
Token is deployed only at one blockchain
Token has only one trading pair
Unable to find website, listings and other project-related information
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Telegram and Twitter accounts