Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in PeKing._transfer(address,address,uint256) (#820-857):
External calls:
- swapAndLiquify() (#841)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#906-913)
- (success) = recipient.call{value: amount}() (#304)
- address(_marketingWallet).sendValue(ethAmount - ethFromLiquidity) (#916)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#891-897)
- swapAndSendToFee(sellTokens) (#843)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#891-897)
External calls sending eth:
- swapAndLiquify() (#841)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#906-913)
- (success) = recipient.call{value: amount}() (#304)
- swapAndSendToFee(sellTokens) (#843)
- address(_marketingWallet).transfer(ethToSend) (#864)
State variables written after the call(s):
- _tOwned[from] -= amount (#847)
- transferAmount = _getValues(amount,from) (#852)
- _tOwned[address(this)] += marketingFee + liquidityFee (#802)
- _tOwned[to] += transferAmount (#855)
- swapping = false (#844)
Apply the check-effects-interactions pattern.
Additional information: link
PeKing.allowance(address,address).owner (#742) shadows:
- Ownable.owner() (#419-421) (function)
PeKing._approve(address,address,uint256).owner (#812) shadows:
- Ownable.owner() (#419-421) (function)
Rename the local variables that shadow another component.
Additional information: link
PeKing.setMarketingFeePercent(uint256) (#783-785) should emit an event for:
- _marketingFee = marketingFee (#784)
PeKing.setLiquidityFeePercent(uint256) (#787-789) should emit an event for:
- _liquidityFee = liquidityFee (#788)
PeKing.setMaxBuySellPercent(uint256) (#791-793) should emit an event for:
- _maxTxAmount = _tTotal * maxTxPercent / 10 ** 2 (#792)
Emit an event for critical parameter changes.
Additional information: link
PeKing.setMarketingWallet(address).marketingWallet (#779) lacks a zero-check on :
- _marketingWallet = marketingWallet (#780)
Check that the address is not zero.
Additional information: link
Reentrancy in PeKing._transfer(address,address,uint256) (#820-857):
External calls:
- swapAndLiquify() (#841)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#906-913)
- (success) = recipient.call{value: amount}() (#304)
- address(_marketingWallet).sendValue(ethAmount - ethFromLiquidity) (#916)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#891-897)
- swapAndSendToFee(sellTokens) (#843)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#891-897)
External calls sending eth:
- swapAndLiquify() (#841)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#906-913)
- (success) = recipient.call{value: amount}() (#304)
- swapAndSendToFee(sellTokens) (#843)
- address(_marketingWallet).transfer(ethToSend) (#864)
State variables written after the call(s):
- swapAndSendToFee(sellTokens) (#843)
- _allowances[owner][spender] = amount (#816)
Reentrancy in PeKing.constructor() (#699-715):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#704)
State variables written after the call(s):
- _isExcludedFromFee[owner()] = true (#710)
- _isExcludedFromFee[address(this)] = true (#711)
- _isExcludedFromFee[_marketingWallet] = true (#712)
- uniswapV2Pair = _uniswapV2Pair (#707)
- uniswapV2Router = _uniswapV2Router (#706)
Reentrancy in PeKing.swapAndLiquify() (#867-879):
External calls:
- newBalance = swapTokensForEth(half) (#872)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#891-897)
- addLiquidity(otherHalf,newBalance) (#876)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#906-913)
- (success) = recipient.call{value: amount}() (#304)
- address(_marketingWallet).sendValue(ethAmount - ethFromLiquidity) (#916)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#876)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#906-913)
- (success) = recipient.call{value: amount}() (#304)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#876)
- _allowances[owner][spender] = amount (#816)
Reentrancy in PeKing.transferFrom(address,address,uint256) (#751-755):
External calls:
- _transfer(sender,recipient,amount) (#752)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#906-913)
- (success) = recipient.call{value: amount}() (#304)
- address(_marketingWallet).sendValue(ethAmount - ethFromLiquidity) (#916)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#891-897)
External calls sending eth:
- _transfer(sender,recipient,amount) (#752)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#906-913)
- address(_marketingWallet).transfer(ethToSend) (#864)
- (success) = recipient.call{value: amount}() (#304)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()] - amount) (#753)
- _allowances[owner][spender] = amount (#816)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in PeKing._transfer(address,address,uint256) (#820-857):
External calls:
- swapAndLiquify() (#841)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#906-913)
- (success) = recipient.call{value: amount}() (#304)
- address(_marketingWallet).sendValue(ethAmount - ethFromLiquidity) (#916)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#891-897)
- swapAndSendToFee(sellTokens) (#843)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#891-897)
External calls sending eth:
- swapAndLiquify() (#841)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#906-913)
- (success) = recipient.call{value: amount}() (#304)
- swapAndSendToFee(sellTokens) (#843)
- address(_marketingWallet).transfer(ethToSend) (#864)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#817)
- swapAndSendToFee(sellTokens) (#843)
- Transfer(from,address(this),marketingFee + liquidityFee) (#803)
- transferAmount = _getValues(amount,from) (#852)
- Transfer(from,to,transferAmount) (#856)
Reentrancy in PeKing.constructor() (#699-715):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#704)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_tTotal) (#714)
Reentrancy in PeKing.swapAndLiquify() (#867-879):
External calls:
- newBalance = swapTokensForEth(half) (#872)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#891-897)
- addLiquidity(otherHalf,newBalance) (#876)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#906-913)
- (success) = recipient.call{value: amount}() (#304)
- address(_marketingWallet).sendValue(ethAmount - ethFromLiquidity) (#916)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#876)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#906-913)
- (success) = recipient.call{value: amount}() (#304)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#817)
- addLiquidity(otherHalf,newBalance) (#876)
- SwapAndLiquify(half,newBalance,otherHalf) (#877)
Reentrancy in PeKing.transferFrom(address,address,uint256) (#751-755):
External calls:
- _transfer(sender,recipient,amount) (#752)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#906-913)
- (success) = recipient.call{value: amount}() (#304)
- address(_marketingWallet).sendValue(ethAmount - ethFromLiquidity) (#916)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#891-897)
External calls sending eth:
- _transfer(sender,recipient,amount) (#752)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#906-913)
- address(_marketingWallet).transfer(ethToSend) (#864)
- (success) = recipient.call{value: amount}() (#304)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#817)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()] - amount) (#753)
Apply the check-effects-interactions pattern.
Additional information: link
PeKing._transfer(address,address,uint256) (#820-857) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(_lastBuy[to] + _buyCooldown < block.timestamp,Must wait til after coooldown to buy) (#834)
PeKing.addLiquidity(uint256,uint256) (#901-917) uses timestamp for comparisons
Dangerous comparisons:
- ethAmount - ethFromLiquidity > 0 (#915)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#273-282) uses assembly
- INLINE ASM (#280)
Address._functionCallWithValue(address,bytes,uint256,string) (#366-387) uses assembly
- INLINE ASM (#379-382)
Do not use evm assembly.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#366-387) is never used and should be removed
Address.functionCall(address,bytes) (#326-328) is never used and should be removed
Address.functionCall(address,bytes,string) (#336-338) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#351-353) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#361-364) is never used and should be removed
Address.isContract(address) (#273-282) is never used and should be removed
Context._msgData() (#245-248) is never used and should be removed
SafeMath.add(uint256,uint256) (#108-113) is never used and should be removed
SafeMath.div(uint256,uint256) (#182-184) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#198-204) is never used and should be removed
SafeMath.mod(uint256,uint256) (#218-220) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#234-237) is never used and should be removed
SafeMath.mul(uint256,uint256) (#156-168) is never used and should be removed
SafeMath.sub(uint256,uint256) (#125-127) is never used and should be removed
SafeMath.sub(uint256,uint256,string) (#139-144) is never used and should be removed
Remove unused functions.
Additional information: link
Low level call in Address.sendValue(address,uint256) (#300-306):
- (success) = recipient.call{value: amount}() (#304)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#366-387):
- (success,returndata) = target.call{value: weiValue}(data) (#370)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#490) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#491) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#508) is not in mixedCase
Function IUniswapV2Router01.WETH() (#530) is not in mixedCase
Variable PeKing._isBlacklisted (#678) is not in mixedCase
Variable PeKing._maxTxAmount (#681) is not in mixedCase
Constant PeKing._name (#684) is not in UPPER_CASE_WITH_UNDERSCORES
Constant PeKing._symbol (#685) is not in UPPER_CASE_WITH_UNDERSCORES
Constant PeKing._decimals (#686) is not in UPPER_CASE_WITH_UNDERSCORES
Variable PeKing._marketingFee (#688) is not in mixedCase
Variable PeKing._liquidityFee (#689) is not in mixedCase
Variable PeKing._marketingWallet (#690) is not in mixedCase
Variable PeKing._buyCooldown (#692) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#246)" inContext (#240-249)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in PeKing._transfer(address,address,uint256) (#820-857):
External calls:
- swapAndSendToFee(sellTokens) (#843)
- address(_marketingWallet).transfer(ethToSend) (#864)
External calls sending eth:
- swapAndLiquify() (#841)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#906-913)
- (success) = recipient.call{value: amount}() (#304)
- swapAndSendToFee(sellTokens) (#843)
- address(_marketingWallet).transfer(ethToSend) (#864)
State variables written after the call(s):
- _tOwned[from] -= amount (#847)
- transferAmount = _getValues(amount,from) (#852)
- _tOwned[address(this)] += marketingFee + liquidityFee (#802)
- _tOwned[to] += transferAmount (#855)
- swapping = false (#844)
Event emitted after the call(s):
- Transfer(from,address(this),marketingFee + liquidityFee) (#803)
- transferAmount = _getValues(amount,from) (#852)
- Transfer(from,to,transferAmount) (#856)
Reentrancy in PeKing.transferFrom(address,address,uint256) (#751-755):
External calls:
- _transfer(sender,recipient,amount) (#752)
- address(_marketingWallet).transfer(ethToSend) (#864)
External calls sending eth:
- _transfer(sender,recipient,amount) (#752)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#906-913)
- address(_marketingWallet).transfer(ethToSend) (#864)
- (success) = recipient.call{value: amount}() (#304)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()] - amount) (#753)
- _allowances[owner][spender] = amount (#816)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#817)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()] - amount) (#753)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#535) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#536)
Prevent variables from having similar names.
Additional information: link
Address.sendValue(address,uint256) (#300-306) uses literals with too many digits:
- recipient = address(0x000000000000000000000000000000000000dEaD) (#302)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
PeKing._buyCooldown (#692) should be constant
PeKing._tTotal (#680) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#438-441)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#447-451)
name() should be declared external:
- PeKing.name() (#717-719)
symbol() should be declared external:
- PeKing.symbol() (#721-723)
decimals() should be declared external:
- PeKing.decimals() (#725-727)
totalSupply() should be declared external:
- PeKing.totalSupply() (#729-731)
transfer(address,uint256) should be declared external:
- PeKing.transfer(address,uint256) (#737-740)
allowance(address,address) should be declared external:
- PeKing.allowance(address,address) (#742-744)
approve(address,uint256) should be declared external:
- PeKing.approve(address,uint256) (#746-749)
transferFrom(address,address,uint256) should be declared external:
- PeKing.transferFrom(address,address,uint256) (#751-755)
increaseAllowance(address,uint256) should be declared external:
- PeKing.increaseAllowance(address,uint256) (#757-760)
decreaseAllowance(address,uint256) should be declared external:
- PeKing.decreaseAllowance(address,uint256) (#762-765)
excludeFromFee(address) should be declared external:
- PeKing.excludeFromFee(address) (#767-769)
includeInFee(address) should be declared external:
- PeKing.includeInFee(address) (#771-773)
isExcludedFromFee(address) should be declared external:
- PeKing.isExcludedFromFee(address) (#808-810)
Use the external attribute for functions never called from the contract.
Additional information: link
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