FlappyRats is a project built on BSC. In the gameplay of Flappy Bird, the player takes his mouse over the obstacles to win as many rewards as possible. FlappyRats is the adventure of mice sent by the rat empire to search for resources across the galaxy to help build and support mice's development when the Earth's resources are not much left. Own the NFT and adventure through the planets in search of resources for Earth.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Contract ownership is not renounced (belongs to a wallet)
RatsToken._transfer(address,address,uint256) (Token.sol#103-129) compares to a boolean constant:
-liquidityPool[receiver] == true (Token.sol#112)
RatsToken._transfer(address,address,uint256) (Token.sol#103-129) compares to a boolean constant:
-liquidityPool[sender] == true (Token.sol#108)
Remove the equality to the boolean constant.
Additional information: link
Context._msgData() (Context.sol#21-23) is never used and should be removed
ERC20._burn(address,uint256) (ERC20.sol#275-290) is never used and should be removed
Remove unused functions.
Additional information: link
RatsToken.sweep()._owner (Token.sol#99) shadows:
- Ownable._owner (Ownable.sol#21) (state variable)
Rename the local variables that shadow another component.
Additional information: link
RatsToken.setTxLimit(uint256) (Token.sol#93-96) should emit an event for:
- _maxTxAmount = amount (Token.sol#95)
Emit an event for critical parameter changes.
Additional information: link
RatsToken.setMarketingPool(address)._marketingPool (Token.sol#80) lacks a zero-check on :
- marketingPool = _marketingPool (Token.sol#81)
RatsToken.sweep()._owner (Token.sol#99) lacks a zero-check on :
- _owner.transfer(address(this).balance) (Token.sol#100)
Check that the address is not zero.
Additional information: link
RatsToken._transfer(address,address,uint256) (Token.sol#103-129) uses timestamp for comparisons
Dangerous comparisons:
- block.timestamp - startBlock < 10 (Token.sol#110)
- require(bool,string)(lastTrade[sender] < (block.timestamp - tradeCooldown),string(No consecutive sells allowed. Please wait.)) (Token.sol#116)
Avoid relying on block.timestamp.
Additional information: link
Pragma version^0.8.0 (Context.sol#4) allows old versions
Pragma version^0.8.0 (ERC20.sol#4) allows old versions
Pragma version^0.8.0 (IERC20.sol#4) allows old versions
Pragma version^0.8.0 (IERC20Metadata.sol#4) allows old versions
Pragma version^0.8.0 (Ownable.sol#4) allows old versions
Pragma version^0.8.0 (Token.sol#2) 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
Event RatsTokenchangeTax(uint8,uint8,uint8) (Token.sol#26) is not in CapWords
Event RatsTokenchangeCooldown(uint8) (Token.sol#27) is not in CapWords
Event RatsTokenchangeLiquidityPoolStatus(address,bool) (Token.sol#28) is not in CapWords
Event RatsTokenchangeWhitelistTax(address,bool) (Token.sol#29) is not in CapWords
Event RatsTokenchangeMarketingPool(address) (Token.sol#30) is not in CapWords
Parameter RatsToken.setTaxes(uint8,uint8,uint8)._sellTax (Token.sol#42) is not in mixedCase
Parameter RatsToken.setTaxes(uint8,uint8,uint8)._buyTax (Token.sol#42) is not in mixedCase
Parameter RatsToken.setTaxes(uint8,uint8,uint8)._transferTax (Token.sol#42) is not in mixedCase
Parameter RatsToken.setCooldownForTrades(uint8)._tradeCooldown (Token.sol#56) is not in mixedCase
Parameter RatsToken.setLiquidityPoolStatus(address,bool)._lpAddress (Token.sol#62) is not in mixedCase
Parameter RatsToken.setLiquidityPoolStatus(address,bool)._status (Token.sol#62) is not in mixedCase
Parameter RatsToken.setWhitelist(address,bool)._address (Token.sol#75) is not in mixedCase
Parameter RatsToken.setWhitelist(address,bool)._status (Token.sol#75) is not in mixedCase
Parameter RatsToken.setMarketingPool(address)._marketingPool (Token.sol#80) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
RatsToken.constructor() (Token.sol#32-40) uses literals with too many digits:
- _mint(msg.sender,100000000 * 1000000000000000000) (Token.sol#33)
RatsToken.setTxLimit(uint256) (Token.sol#93-96) uses literals with too many digits:
- require(bool)(amount > 100000 * 1000000000000000000) (Token.sol#94)
RatsToken.slitherConstructorVariables() (Token.sol#7-137) uses literals with too many digits:
- _maxTxAmount = 1000000 * 1000000000000000000 (Token.sol#20)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
name() should be declared external:
- ERC20.name() (ERC20.sol#62-64)
symbol() should be declared external:
- ERC20.symbol() (ERC20.sol#70-72)
decimals() should be declared external:
- ERC20.decimals() (ERC20.sol#87-89)
totalSupply() should be declared external:
- ERC20.totalSupply() (ERC20.sol#94-96)
balanceOf(address) should be declared external:
- ERC20.balanceOf(address) (ERC20.sol#101-103)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (ERC20.sol#113-116)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (ERC20.sol#121-123)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (ERC20.sol#132-135)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (ERC20.sol#150-164)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (ERC20.sol#178-181)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (ERC20.sol#197-205)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (Ownable.sol#54-56)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (Ownable.sol#62-65)
setTxLimit(uint256) should be declared external:
- RatsToken.setTxLimit(uint256) (Token.sol#93-96)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract has 3% buy tax and 5% sell tax.
Taxes are low but contract ownership is not renounced. Token has a high risk of becoming a honeypot.
Average 30d PancakeSwap liquidity is low.
Number of Binance Smart Chain (BSC) token holders is low.
Token is deployed only at one blockchain
Token has only one trading pair
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Telegram account has relatively few subscribers
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account