PantherSwap is the first automatic liquidity acquisition yield farm and AMM decentralized exchange running on Binance Smart Chain with lots of unique and creative features that let you earn and win.
PantherToken.addLiquidity(uint256,uint256) (#1321-1334) sends eth to arbitrary user
Dangerous calls:
- pantherSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1326-1333)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in PantherToken._transfer(address,address,uint256) (#1235-1266):
External calls:
- swapAndLiquify() (#1245)
- pantherSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1326-1333)
- pantherSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1311-1317)
External calls sending eth:
- swapAndLiquify() (#1245)
- pantherSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1326-1333)
State variables written after the call(s):
- super._transfer(sender,recipient,amount) (#1249)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#1056)
- _balances[recipient] = _balances[recipient].add(amount) (#1057)
- super._transfer(sender,BURN_ADDRESS,burnAmount) (#1261)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#1056)
- _balances[recipient] = _balances[recipient].add(amount) (#1057)
- super._transfer(sender,address(this),liquidityAmount) (#1262)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#1056)
- _balances[recipient] = _balances[recipient].add(amount) (#1057)
- super._transfer(sender,recipient,sendAmount) (#1263)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#1056)
- _balances[recipient] = _balances[recipient].add(amount) (#1057)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
PantherToken._writeCheckpoint(address,uint32,uint256,uint256) (#1636-1654) uses a dangerous strict equality:
- nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber (#1646)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
Combination 1: Reentrancy vulnerabilities + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
PantherToken._transfer(address,address,uint256) (#1235-1266) performs a multiplication on the result of a division:
-taxAmount = amount.mul(transferTaxRate).div(10000) (#1252)
-burnAmount = taxAmount.mul(burnRate).div(100) (#1253)
Consider ordering multiplication before division.
Additional information: link
PantherToken.addLiquidity(uint256,uint256) (#1321-1334) ignores return value by pantherSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1326-1333)
Ensure that all the return values of the function calls are used.
Additional information: link
BEP20.allowance(address,address).owner (#939) shadows:
- Ownable.owner() (#784-786) (function)
BEP20.constructor(string,string).symbol (#875) shadows:
- BEP20.symbol() (#905-907) (function)
- IBEP20.symbol() (#645) (function)
BEP20._approve(address,address,uint256).owner (#1111) shadows:
- Ownable.owner() (#784-786) (function)
BEP20.constructor(string,string).name (#875) shadows:
- BEP20.name() (#891-893) (function)
- IBEP20.name() (#650) (function)
PantherToken.swapAndLiquify().maxTransferAmount (#1271) shadows:
- PantherToken.maxTransferAmount() (#1339-1341) (function)
Rename the local variables that shadow another component.
Additional information: link
PantherToken.delegateBySig(address,uint256,uint256,uint8,bytes32,bytes32) (#1502-1543) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(now <= expiry,PANTHER::delegateBySig: signature expired) (#1541)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#247-256) uses assembly
- INLINE ASM (#254)
Address._verifyCallResult(bool,bytes,string) (#392-409) uses assembly
- INLINE ASM (#401-404)
PantherToken.getChainId() (#1661-1665) uses assembly
- INLINE ASM (#1663)
Do not use evm assembly.
Additional information: link
PantherToken._transfer(address,address,uint256) (#1235-1266) compares to a boolean constant:
-swapAndLiquifyEnabled == true && _inSwapAndLiquify == false && address(pantherSwapRouter) != address(0) && pantherSwapPair != address(0) && sender != pantherSwapPair && sender != owner() (#1238-1243)
PantherToken.antiWhale(address,address,uint256) (#1190-1200) compares to a boolean constant:
-_excludedFromAntiWhale[sender] == false && _excludedFromAntiWhale[recipient] == false (#1193-1194)
Remove the equality to the boolean constant.
Additional information: link
Different versions of Solidity are used:
- Version used: ['0.6.12', '>=0.4.0', '>=0.5.0', '>=0.6.0<0.8.0', '>=0.6.2', '>=0.6.2<0.8.0']
- >=0.5.0 (#5)
- >=0.5.0 (#25)
- >=0.6.2 (#80)
- >=0.6.2 (#178)
- >=0.6.2<0.8.0 (#224)
- >=0.6.0<0.8.0 (#414)
- >=0.4.0 (#629)
- >=0.6.0<0.8.0 (#728)
- >=0.6.0<0.8.0 (#753)
- >=0.4.0 (#821)
- 0.6.12 (#1140)
Use one Solidity version.
Additional information: link
Pragma version>=0.5.0 (#5) allows old versions
Pragma version>=0.6.0<0.8.0 (#753) is too complex
Pragma version>=0.4.0 (#629) allows old versions
Pragma version>=0.6.0<0.8.0 (#728) is too complex
Pragma version>=0.5.0 (#25) allows old versions
Pragma version>=0.6.2 (#178) allows old versions
Pragma version>=0.4.0 (#821) allows old versions
Pragma version>=0.6.0<0.8.0 (#414) is too complex
Pragma version>=0.6.2<0.8.0 (#224) is too complex
Pragma version>=0.6.2 (#80) 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
Redundant expression "this (#746)" inContext (#740-749)
Remove redundant statements if they congest code but offer no value.
Additional information: link
transferOperator(address) should be declared external:
- PantherToken.transferOperator(address) (#1431-1435)
transfer(address,uint256) should be declared external:
- BEP20.transfer(address,uint256) (#931-934)
isExcludedFromAntiWhale(address) should be declared external:
- PantherToken.isExcludedFromAntiWhale(address) (#1346-1348)
symbol() should be declared external:
- BEP20.symbol() (#905-907)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#803-806)
mint(address,uint256) should be declared external:
- PantherToken.mint(address,uint256) (#1229-1232)
approve(address,uint256) should be declared external:
- BEP20.approve(address,uint256) (#950-953)
updateSwapAndLiquifyEnabled(bool) should be declared external:
- PantherToken.updateSwapAndLiquifyEnabled(bool) (#1404-1407)
updateMinAmountToLiquify(uint256) should be declared external:
- PantherToken.updateMinAmountToLiquify(uint256) (#1387-1390)
transferFrom(address,address,uint256) should be declared external:
- BEP20.transferFrom(address,address,uint256) (#967-979)
updateTransferTaxRate(uint16) should be declared external:
- PantherToken.updateTransferTaxRate(uint16) (#1357-1361)
updateBurnRate(uint16) should be declared external:
- PantherToken.updateBurnRate(uint16) (#1367-1371)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#812-816)
mint(uint256) should be declared external:
- BEP20.mint(uint256) (#1029-1032)
setExcludedFromAntiWhale(address,bool) should be declared external:
- PantherToken.setExcludedFromAntiWhale(address,bool) (#1396-1398)
updateMaxTransferAmountRate(uint16) should be declared external:
- PantherToken.updateMaxTransferAmountRate(uint16) (#1377-1381)
allowance(address,address) should be declared external:
- BEP20.allowance(address,address) (#939-941)
updatePantherSwapRouter(address) should be declared external:
- PantherToken.updatePantherSwapRouter(address) (#1413-1418)
decimals() should be declared external:
- BEP20.decimals() (#898-900)
increaseAllowance(address,uint256) should be declared external:
- BEP20.increaseAllowance(address,uint256) (#993-996)
decreaseAllowance(address,uint256) should be declared external:
- BEP20.decreaseAllowance(address,uint256) (#1012-1019)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract ownership is semi-renounced (passed to a contract)
Reentrancy in PantherToken.swapAndLiquify() (#1269-1299):
External calls:
- swapTokensForEth(half) (#1289)
- pantherSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1311-1317)
- addLiquidity(otherHalf,newBalance) (#1295)
- pantherSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1326-1333)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1295)
- pantherSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1326-1333)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1295)
- _allowances[owner][spender] = amount (#1118)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in PantherToken._transfer(address,address,uint256) (#1235-1266):
External calls:
- swapAndLiquify() (#1245)
- pantherSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1326-1333)
- pantherSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1311-1317)
External calls sending eth:
- swapAndLiquify() (#1245)
- pantherSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1326-1333)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#1058)
- super._transfer(sender,BURN_ADDRESS,burnAmount) (#1261)
- Transfer(sender,recipient,amount) (#1058)
- super._transfer(sender,recipient,amount) (#1249)
- Transfer(sender,recipient,amount) (#1058)
- super._transfer(sender,recipient,sendAmount) (#1263)
- Transfer(sender,recipient,amount) (#1058)
- super._transfer(sender,address(this),liquidityAmount) (#1262)
Reentrancy in PantherToken.swapAndLiquify() (#1269-1299):
External calls:
- swapTokensForEth(half) (#1289)
- pantherSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1311-1317)
- addLiquidity(otherHalf,newBalance) (#1295)
- pantherSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1326-1333)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1295)
- pantherSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1326-1333)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1119)
- addLiquidity(otherHalf,newBalance) (#1295)
- SwapAndLiquify(half,newBalance,otherHalf) (#1297)
Apply the check-effects-interactions pattern.
Additional information: link
SafeMath.tryDiv(uint256,uint256) (#471-474) is never used and should be removed
Address.sendValue(address,uint256) (#274-280) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#325-327) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (#481-484) is never used and should be removed
Address.functionDelegateCall(address,bytes,string) (#384-390) is never used and should be removed
BEP20._burnFrom(address,uint256) (#1128-1135) is never used and should be removed
BEP20._burn(address,uint256) (#1089-1095) is never used and should be removed
Address.functionDelegateCall(address,bytes) (#374-376) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (#435-439) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#621-624) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#335-342) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#601-604) is never used and should be removed
Context._msgData() (#745-748) is never used and should be removed
Address.functionStaticCall(address,bytes) (#350-352) is never used and should be removed
SafeMath.mod(uint256,uint256) (#563-566) is never used and should be removed
Address._verifyCallResult(bool,bytes,string) (#392-409) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (#456-464) is never used and should be removed
SafeMath.trySub(uint256,uint256) (#446-449) is never used and should be removed
Address.isContract(address) (#247-256) is never used and should be removed
Address.functionCall(address,bytes,string) (#310-312) is never used and should be removed
Address.functionStaticCall(address,bytes,string) (#360-366) is never used and should be removed
Address.functionCall(address,bytes) (#300-302) is never used and should be removed
Remove unused functions.
Additional information: link
Low level call in Address.functionStaticCall(address,bytes,string) (#360-366):
- (success,returndata) = target.staticcall(data) (#364)
Low level call in Address.functionDelegateCall(address,bytes,string) (#384-390):
- (success,returndata) = target.delegatecall(data) (#388)
Low level call in Address.functionCallWithValue(address,bytes,uint256,string) (#335-342):
- (success,returndata) = target.call{value: value}(data) (#340)
Low level call in Address.sendValue(address,uint256) (#274-280):
- (success) = recipient.call{value: amount}() (#278)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Parameter PantherToken.isExcludedFromAntiWhale(address)._account (#1346) is not in mixedCase
Variable PantherToken._delegates (#1444) is not in mixedCase
Parameter PantherToken.setExcludedFromAntiWhale(address,bool)._excluded (#1396) is not in mixedCase
Parameter PantherToken.updateMinAmountToLiquify(uint256)._minAmount (#1387) is not in mixedCase
Parameter PantherToken.setExcludedFromAntiWhale(address,bool)._account (#1396) is not in mixedCase
Parameter PantherToken.updatePantherSwapRouter(address)._router (#1413) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#43) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#60) is not in mixedCase
Parameter PantherToken.updateSwapAndLiquifyEnabled(bool)._enabled (#1404) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#42) is not in mixedCase
Parameter PantherToken.updateMaxTransferAmountRate(uint16)._maxTransferAmountRate (#1377) is not in mixedCase
Function IUniswapV2Router01.WETH() (#84) is not in mixedCase
Parameter PantherToken.mint(address,uint256)._amount (#1229) is not in mixedCase
Parameter PantherToken.mint(address,uint256)._to (#1229) is not in mixedCase
Parameter PantherToken.updateTransferTaxRate(uint16)._transferTaxRate (#1357) is not in mixedCase
Parameter PantherToken.updateBurnRate(uint16)._burnRate (#1367) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#89) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#90)
Prevent variables from having similar names.
Additional information: link
PantherToken.slitherConstructorConstantVariables() (#1147-1667) uses literals with too many digits:
- BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD (#1155)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.
Average 30d PancakeSwap liquidity 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.
Token is deployed only at one blockchain
Contract has 2% buy tax and 1% sell tax.
Taxes are low and contract ownership is renounced.
Token has a considerable age, but we're still unable to find its website
Token has no active CoinMarketCap listing / rank
Token has a considerable age, but social accounts / website are missing or have few users
Token has a considerable age, but average PancakeSwap 30d trading volume is low
Token has relatively low CoinGecko rank
Telegram account link seems to be invalid
Last post in Twitter was more than 180 days ago
Unable to find Youtube account
Unable to find Discord account