Trade protection is developed by the original team of the Coin Origin project technology team, and Bitkeep Wallet co-hosts the short DeFi innovation project, and TokenPocket leads early bird investment.
🚀Continuate the previous project Coin Origin (CTN's highest increase of 1350 times)
From Coin Origin to Trade protection, this is a continuation of the industry legend and a strong consensus among millions of members of the community.
TradeProtection.withdrawEther(uint256) (#486-489) sends eth to arbitrary user
Dangerous calls:
- address(msg.sender).transfer(amount) (#488)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Contract ownership is not renounced (belongs to a wallet)
TradeProtection.handleTakeFee(address,uint256) (#367-392) performs a multiplication on the result of a division:
-luckyShare = fee_ * 25 / 100 (#373)
-marketShare = (fee_ - luckyShare * 2) (#379)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in TradeProtection.swapAndShareToMarket() (#394-411):
External calls:
- uniswapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(marketTPCAmount,0,path,marketAddr,block.timestamp + 1200) (#403-409)
State variables written after the call(s):
- marketTPCAmount = 0 (#410)
Reentrancy in TradeProtection._transfer(address,address,uint256) (#296-365):
External calls:
- swapAndShareToMarket() (#321)
- uniswapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(marketTPCAmount,0,path,marketAddr,block.timestamp + 1200) (#403-409)
State variables written after the call(s):
- _balances[to] += amount (#361)
- handleTakeFee(pair,fee) (#357)
- _balances[blackHoleAddr] += blackHoleShare (#382)
- _balances[luckyBonusAddr] += luckyShare (#383)
- _balances[address(this)] += marketShare (#384)
- handleTakeFee(from,fee) (#357)
- _balances[blackHoleAddr] += blackHoleShare (#382)
- _balances[luckyBonusAddr] += luckyShare (#383)
- _balances[address(this)] += marketShare (#384)
- handleTakeFee(pair,fee) (#357)
- marketTPCAmount += marketShare (#386)
- handleTakeFee(from,fee) (#357)
- marketTPCAmount += marketShare (#386)
Apply the check-effects-interactions pattern.
Additional information: link
TradeProtection.increaseAllowance(address,uint256).owner (#281) shadows:
- Ownable.owner() (#37-39) (function)
TradeProtection.allowance(address,address).owner (#259) shadows:
- Ownable.owner() (#37-39) (function)
TradeProtection._spendAllowance(address,address,uint256).owner (#455) shadows:
- Ownable.owner() (#37-39) (function)
TradeProtection.decreaseAllowance(address,uint256).owner (#287) shadows:
- Ownable.owner() (#37-39) (function)
TradeProtection.transfer(address,uint256).owner (#254) shadows:
- Ownable.owner() (#37-39) (function)
TradeProtection.approve(address,uint256).owner (#264) shadows:
- Ownable.owner() (#37-39) (function)
TradeProtection._approve(address,address,uint256).owner (#443) shadows:
- Ownable.owner() (#37-39) (function)
Rename the local variables that shadow another component.
Additional information: link
TradeProtection.setMarketAddr(address).marketAddr_ (#226) lacks a zero-check on :
- marketAddr = marketAddr_ (#227)
Check that the address is not zero.
Additional information: link
Reentrancy in TradeProtection._transfer(address,address,uint256) (#296-365):
External calls:
- swapAndShareToMarket() (#321)
- uniswapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(marketTPCAmount,0,path,marketAddr,block.timestamp + 1200) (#403-409)
State variables written after the call(s):
- luckyBonusAddr = to (#345)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in TradeProtection._transfer(address,address,uint256) (#296-365):
External calls:
- swapAndShareToMarket() (#321)
- uniswapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(marketTPCAmount,0,path,marketAddr,block.timestamp + 1200) (#403-409)
Event emitted after the call(s):
- Transfer(from_,blackHoleAddr,blackHoleShare) (#388)
- handleTakeFee(from,fee) (#357)
- Transfer(from_,blackHoleAddr,blackHoleShare) (#388)
- handleTakeFee(pair,fee) (#357)
- Transfer(from_,luckyBonusAddr,luckyShare) (#389)
- handleTakeFee(from,fee) (#357)
- Transfer(from_,luckyBonusAddr,luckyShare) (#389)
- handleTakeFee(pair,fee) (#357)
- Transfer(from_,address(this),marketShare) (#390)
- handleTakeFee(from,fee) (#357)
- Transfer(from_,address(this),marketShare) (#390)
- handleTakeFee(pair,fee) (#357)
- Transfer(from,to,amount) (#362)
Apply the check-effects-interactions pattern.
Additional information: link
TradeProtection.handleTakeFee(address,uint256) (#367-392) uses timestamp for comparisons
Dangerous comparisons:
- tradingTime + 21600 > block.timestamp (#372)
TradeProtection._transfer(address,address,uint256) (#296-365) uses timestamp for comparisons
Dangerous comparisons:
- tradingTime + 21600 > block.timestamp (#327)
TradeProtection.setTradeSwitch(bool) (#230-236) uses timestamp for comparisons
Dangerous comparisons:
- switch_ && tradingTime == 0 (#233)
Avoid relying on block.timestamp.
Additional information: link
Context._msgData() (#9-11) is never used and should be removed
TradeProtection._burn(address,uint256) (#425-440) is never used and should be removed
Remove unused functions.
Additional information: link
Parameter TradeProtection.excludeFeeBatch(address[],bool)._switch (#238) is not in mixedCase
Function IUniSwapRouter.WETH() (#103) is not in mixedCase
Constant TradeProtection.MaxTotalAmount (#123) is not in UPPER_CASE_WITH_UNDERSCORES
Follow the Solidity naming convention.
Additional information: link
symbol() should be declared external:
- TradeProtection.symbol() (#183-185)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#55-57)
approve(address,uint256) should be declared external:
- TradeProtection.approve(address,uint256) (#263-267)
moveToken(address,uint256) should be declared external:
- TradeProtection.moveToken(address,uint256) (#481-483)
transferFrom(address,address,uint256) should be declared external:
- TradeProtection.transferFrom(address,address,uint256) (#269-278)
increaseAllowance(address,uint256) should be declared external:
- TradeProtection.increaseAllowance(address,uint256) (#280-284)
excludeFeeBatch(address[],bool) should be declared external:
- TradeProtection.excludeFeeBatch(address[],bool) (#238-243)
name() should be declared external:
- TradeProtection.name() (#179-181)
totalSupply() should be declared external:
- TradeProtection.totalSupply() (#191-193)
transfer(address,uint256) should be declared external:
- TradeProtection.transfer(address,uint256) (#253-257)
decreaseAllowance(address,uint256) should be declared external:
- TradeProtection.decreaseAllowance(address,uint256) (#286-294)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#63-66)
setLuckyUserBuyAmount(uint256) should be declared external:
- TradeProtection.setLuckyUserBuyAmount(uint256) (#218-220)
setMarketAmountToShare(uint256) should be declared external:
- TradeProtection.setMarketAmountToShare(uint256) (#222-224)
decimals() should be declared external:
- TradeProtection.decimals() (#187-189)
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.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Contract has 4% buy tax and 4% 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
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
Twitter account seems to be suspended
Additional information: link
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account