Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
GregBurglar.swapBack() (#325-366) sends eth to arbitrary user
Dangerous calls:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#350)
- (lotterySuccess) = address(EcosystemFee).call{gas: 30000,value: amountBNBlottery}() (#352)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in GregBurglar._transferFrom(address,address,uint256) (#266-286):
External calls:
- swapBack() (#275)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#336-342)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#350)
- (lotterySuccess) = address(EcosystemFee).call{gas: 30000,value: amountBNBlottery}() (#352)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#356-363)
External calls sending eth:
- swapBack() (#275)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#350)
- (lotterySuccess) = address(EcosystemFee).call{gas: 30000,value: amountBNBlottery}() (#352)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#356-363)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#279)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#282)
- amountReceived = takeFee(sender,recipient,amount) (#281)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#312)
Apply the check-effects-interactions pattern.
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.
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#140) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#141)
Prevent variables from having similar names.
Additional information: link
GregBurglar.slitherConstructorVariables() (#181-450) performs a multiplication on the result of a division:
-swapThreshold = _totalSupply / 1000 * 3 (#217)
Consider ordering multiplication before division.
Additional information: link
GregBurglar.swapBack() (#325-366) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#356-363)
Ensure that all the return values of the function calls are used.
Additional information: link
GregBurglar.setTxLimit(uint256) (#389-392) should emit an event for:
- _maxTxAmount = amount (#391)
GregBurglar.setFees(uint256,uint256,uint256,uint256) (#407-413) should emit an event for:
- LPFEE = _LPFEE (#408)
- EcosystemDevFee = _EcosystemDevFee (#409)
- marketingFee = _marketingFee (#410)
- totalFee = _LPFEE.add(_EcosystemDevFee).add(_marketingFee) (#411)
- feeDenominator = _feeDenominator (#412)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#120) lacks a zero-check on :
- owner = adr (#121)
GregBurglar.setFeeReceiver(address,address)._marketingFeeReceiver (#415) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#416)
GregBurglar.setFeeReceiver(address,address)._EcosystemFee (#415) lacks a zero-check on :
- EcosystemFee = _EcosystemFee (#417)
Check that the address is not zero.
Additional information: link
Reentrancy in GregBurglar._transferFrom(address,address,uint256) (#266-286):
External calls:
- swapBack() (#275)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#336-342)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#350)
- (lotterySuccess) = address(EcosystemFee).call{gas: 30000,value: amountBNBlottery}() (#352)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#356-363)
External calls sending eth:
- swapBack() (#275)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#350)
- (lotterySuccess) = address(EcosystemFee).call{gas: 30000,value: amountBNBlottery}() (#352)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#356-363)
State variables written after the call(s):
- launch() (#277)
- launchedAt = block.number (#386)
Reentrancy in GregBurglar.constructor() (#221-232):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#223)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = type()(uint256).max (#224)
- _balances[_owner] = _totalSupply (#230)
- isFeeExempt[_owner] = true (#227)
- isTxLimitExempt[_owner] = true (#228)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in GregBurglar._transferFrom(address,address,uint256) (#266-286):
External calls:
- swapBack() (#275)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#336-342)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#350)
- (lotterySuccess) = address(EcosystemFee).call{gas: 30000,value: amountBNBlottery}() (#352)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#356-363)
External calls sending eth:
- swapBack() (#275)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#350)
- (lotterySuccess) = address(EcosystemFee).call{gas: 30000,value: amountBNBlottery}() (#352)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#356-363)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#313)
- amountReceived = takeFee(sender,recipient,amount) (#281)
- Transfer(sender,recipient,amountReceived) (#284)
Reentrancy in GregBurglar.constructor() (#221-232):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#223)
Event emitted after the call(s):
- Transfer(address(0),_owner,_totalSupply) (#231)
Reentrancy in GregBurglar.swapBack() (#325-366):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#336-342)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#350)
- (lotterySuccess) = address(EcosystemFee).call{gas: 30000,value: amountBNBlottery}() (#352)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#356-363)
External calls sending eth:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#350)
- (lotterySuccess) = address(EcosystemFee).call{gas: 30000,value: amountBNBlottery}() (#352)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#356-363)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#364)
Apply the check-effects-interactions pattern.
Additional information: link
GregBurglar.buyTokens(uint256,address) (#368-379) is never used and should be removed
Remove unused functions.
Additional information: link
GregBurglar._maxTxAmount (#193) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 100) / 100
GregBurglar._maxWalletSize (#194) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 100) / 100
GregBurglar.swapThreshold (#217) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 1000 * 3
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
Low level call in GregBurglar.swapBack() (#325-366):
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#350)
- (lotterySuccess) = address(EcosystemFee).call{gas: 30000,value: amountBNBlottery}() (#352)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IDEXRouter.WETH() (#135) is not in mixedCase
Parameter GregBurglar.setFees(uint256,uint256,uint256,uint256)._LPFEE (#407) is not in mixedCase
Parameter GregBurglar.setFees(uint256,uint256,uint256,uint256)._EcosystemDevFee (#407) is not in mixedCase
Parameter GregBurglar.setFees(uint256,uint256,uint256,uint256)._marketingFee (#407) is not in mixedCase
Parameter GregBurglar.setFees(uint256,uint256,uint256,uint256)._feeDenominator (#407) is not in mixedCase
Parameter GregBurglar.setFeeReceiver(address,address)._marketingFeeReceiver (#415) is not in mixedCase
Parameter GregBurglar.setFeeReceiver(address,address)._EcosystemFee (#415) is not in mixedCase
Parameter GregBurglar.setSwapBackSettings(bool,uint256)._enabled (#420) is not in mixedCase
Parameter GregBurglar.setSwapBackSettings(bool,uint256)._amount (#420) is not in mixedCase
Parameter GregBurglar.transferForeignToken(address)._token (#430) is not in mixedCase
Variable GregBurglar.WBNB (#184) is not in mixedCase
Variable GregBurglar.DEAD (#185) is not in mixedCase
Variable GregBurglar.ZERO (#186) is not in mixedCase
Constant GregBurglar._name (#188) is not in UPPER_CASE_WITH_UNDERSCORES
Constant GregBurglar._symbol (#189) is not in UPPER_CASE_WITH_UNDERSCORES
Constant GregBurglar._decimals (#190) is not in UPPER_CASE_WITH_UNDERSCORES
Variable GregBurglar._totalSupply (#192) is not in mixedCase
Variable GregBurglar._maxTxAmount (#193) is not in mixedCase
Variable GregBurglar._maxWalletSize (#194) is not in mixedCase
Variable GregBurglar._balances (#196) is not in mixedCase
Variable GregBurglar._allowances (#197) is not in mixedCase
Variable GregBurglar.LPFEE (#202) is not in mixedCase
Variable GregBurglar.EcosystemDevFee (#203) is not in mixedCase
Variable GregBurglar.EcosystemFee (#209) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
GregBurglar.slitherConstructorVariables() (#181-450) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#185)
GregBurglar.slitherConstructorVariables() (#181-450) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#186)
GregBurglar.slitherConstructorVariables() (#181-450) uses literals with too many digits:
- _totalSupply = 1000000000 * (10 ** _decimals) (#192)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
GregBurglar.DEAD (#185) should be constant
GregBurglar.WBNB (#184) should be constant
GregBurglar.ZERO (#186) should be constant
GregBurglar._totalSupply (#192) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
authorize(address) should be declared external:
- Auth.authorize(address) (#92-94)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#99-101)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#120-124)
transferForeignToken(address) should be declared external:
- GregBurglar.transferForeignToken(address) (#430-434)
isOverLiquified(uint256,uint256) should be declared external:
- GregBurglar.isOverLiquified(uint256,uint256) (#444-446)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
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 PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Contract has 16% buy tax and 21% sell tax.
Taxes are high (over 10%) but contract ownership is renounced.
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