Alpha Genesis (AGEN) has formed a collaboration with the team from Alpha Ape LLC.
Both teams are committed to total transparency with all investors and possess the drive and dedication to ensure long term success.
Our goal is to constantly strive to exceed the educated investor’s needs. 2022 has been to this point tumultuous to say the least.
Everything from the economy, rug pulls, ransomware, war in Ukraine, inflation, gas prices and more has impacted cryptocurrency markets worldwide. We provide multiple passive income streams in an safe environment to our investors and develop the services to meet the new innovations and the golden standards.
AlphaGenesis.swapBack() (#1437-1481) sends eth to arbitrary user
Dangerous calls:
- (success,None) = address(liquidityWallet).call{value: ethForLiquidity}() (#1463)
- (success,None) = address(marketingWallet).call{value: ethForMarketing * percentForMarketing / 100}(Genesis event complete) (#1476)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1479)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in AlphaGenesis._transfer(address,address,uint256) (#1284-1369):
External calls:
- swapBack() (#1314)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1411-1417)
- pancakeswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(marketingWallet),block.timestamp) (#1392-1397)
- pancakeswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(this),block.timestamp) (#1377-1382)
- (success,None) = address(communityWallet).call{value: ethForCommunity}() (#1462)
- (success,None) = address(liquidityWallet).call{value: ethForLiquidity}() (#1463)
- success = IBEP20(token).transfer(address(genesisTracer),tokenBalance) (#1468)
- genesisTracer.distributeTokenDividends(tokenBalance) (#1471)
- (success,None) = address(marketingWallet).call{value: ethForMarketing * percentForMarketing / 100}(Genesis event complete) (#1476)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1479)
External calls sending eth:
- swapBack() (#1314)
- pancakeswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(marketingWallet),block.timestamp) (#1392-1397)
- pancakeswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(this),block.timestamp) (#1377-1382)
- (success,None) = address(communityWallet).call{value: ethForCommunity}() (#1462)
- (success,None) = address(liquidityWallet).call{value: ethForLiquidity}() (#1463)
- (success,None) = address(marketingWallet).call{value: ethForMarketing * percentForMarketing / 100}(Genesis event complete) (#1476)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1479)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#1350)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#264)
- _balances[recipient] = _balances[recipient].add(amount) (#265)
- super._transfer(from,to,amount) (#1356)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#264)
- _balances[recipient] = _balances[recipient].add(amount) (#265)
- swapping = false (#1315)
- tokensForCommunity += fees * communitySellFee / totalSellFees (#1336)
- tokensForCommunity += fees * communityBuyFee / totalBuyFees (#1344)
- tokensForLiquidity += fees * liquiditySellFee / totalSellFees (#1334)
- tokensForLiquidity += fees * liquidityBuyFee / totalBuyFees (#1342)
- tokensForMarketing += fees * marketingSellFee / totalSellFees (#1335)
- tokensForMarketing += fees * marketingBuyFee / totalBuyFees (#1343)
- tokensForRewards += fees * rewardsSellFee / totalSellFees (#1333)
- tokensForRewards += fees * rewardsBuyFee / totalBuyFees (#1341)
Apply the check-effects-interactions pattern.
Additional information: link
Contract ownership is not renounced (belongs to a wallet)
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.
Contract locking ether found:
Contract GenesisTracer (#725-933) has payable functions:
- DividendPayingToken.receive() (#638-640)
- DividendPayingToken.distributeDividends() (#643-645)
- DividendPayingTokenInterface.distributeDividends() (#320)
But does not have a function to withdraw the ether
Remove the payable attribute or add a withdraw function.
Additional information: link
AlphaGenesis.swapBack().success (#1443) is written in both
(success,None) = address(communityWallet).call{value: ethForCommunity}() (#1462)
(success,None) = address(liquidityWallet).call{value: ethForLiquidity}() (#1463)
AlphaGenesis.swapBack().success (#1443) is written in both
(success,None) = address(liquidityWallet).call{value: ethForLiquidity}() (#1463)
success = IBEP20(token).transfer(address(genesisTracer),tokenBalance) (#1468)
Fix or remove the writes.
Additional information: link
SafeMathInt.MAX_INT256 (#426) is never used in SafeMathInt (#424-472)
AlphaGenesis.liquidityActiveBlock (#959) is never used in AlphaGenesis (#936-1508)
AlphaGenesis.presaleAddress (#965) is never used in AlphaGenesis (#936-1508)
AlphaGenesis.presaleRouterAddress (#966) is never used in AlphaGenesis (#936-1508)
Remove unused state variables.
Additional information: link
Low level call in AlphaGenesis.swapBack() (#1437-1481):
- (success,None) = address(communityWallet).call{value: ethForCommunity}() (#1462)
- (success,None) = address(liquidityWallet).call{value: ethForLiquidity}() (#1463)
- (success,None) = address(marketingWallet).call{value: ethForMarketing * percentForMarketing / 100}(Genesis event complete) (#1476)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1479)
Low level call in AlphaGenesis.rescueContractBNB() (#1483-1486):
- (success) = address(msg.sender).call{value: address(this).balance}(Completed) (#1484)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Redundant expression "this (#11)" inContext (#5-14)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable IPancakeswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#490) is too similar to IPancakeswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#491)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#665) is too similar to GenesisTracer.getAccount(address).withdrawableDividends (#791)
Prevent variables from having similar names.
Additional information: link
Pragma version0.8.13 (#3) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.13 is not recommended for deployment
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
Function IPancakeswapV2Pair.DOMAIN_SEPARATOR() (#31) is not in mixedCase
Function IPancakeswapV2Pair.PERMIT_TYPEHASH() (#32) is not in mixedCase
Function IPancakeswapV2Pair.MINIMUM_LIQUIDITY() (#49) is not in mixedCase
Variable BEP20._chainSync (#186) is not in mixedCase
Function IPancakeswapV2Router01.WETH() (#485) is not in mixedCase
Parameter DividendPayingToken.dividendOf(address)._owner (#682) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#686) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#690) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#694) is not in mixedCase
Constant DividendPayingToken.magnitude (#623) is not in UPPER_CASE_WITH_UNDERSCORES
Constant DividendPayingToken.token (#628) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter GenesisTracer.getAccount(address)._account (#786) is not in mixedCase
Event AlphaGenesismarketingWalletUpdated(address,address) (#1001) is not in CapWords
Event AlphaGenesisliquidityWalletUpdated(address,address) (#1002) is not in CapWords
Event AlphaGenesiscommunityWalletUpdated(address,address) (#1003) is not in CapWords
Parameter AlphaGenesis.updateBuyFees(uint256,uint256,uint256,uint256)._marketingFee (#1122) is not in mixedCase
Parameter AlphaGenesis.updateBuyFees(uint256,uint256,uint256,uint256)._rewardsFee (#1122) is not in mixedCase
Parameter AlphaGenesis.updateBuyFees(uint256,uint256,uint256,uint256)._liquidityFee (#1122) is not in mixedCase
Parameter AlphaGenesis.updateBuyFees(uint256,uint256,uint256,uint256)._communityFee (#1122) is not in mixedCase
Parameter AlphaGenesis.updateSellFees(uint256,uint256,uint256,uint256)._marketingFee (#1132) is not in mixedCase
Parameter AlphaGenesis.updateSellFees(uint256,uint256,uint256,uint256)._rewardsFee (#1132) is not in mixedCase
Parameter AlphaGenesis.updateSellFees(uint256,uint256,uint256,uint256)._liquidityFee (#1132) is not in mixedCase
Parameter AlphaGenesis.updateSellFees(uint256,uint256,uint256,uint256)._communityFee (#1132) is not in mixedCase
Parameter AlphaGenesis.marketingBuyBackSettings(bool,uint256)._buyBackEnabled (#1502) is not in mixedCase
Parameter AlphaGenesis.marketingBuyBackSettings(bool,uint256)._percentForMarketing (#1502) is not in mixedCase
Constant AlphaGenesis.token (#954) is not in UPPER_CASE_WITH_UNDERSCORES
Variable AlphaGenesis._isExcludedMaxTransactionAmount (#991) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
GenesisTracer.getAccountAtIndex(uint256) (#831-848) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#842)
AlphaGenesis.constructor() (#1024-1092) uses literals with too many digits:
- totalSupply = 500000000000000 * (10 ** 18) (#1029)
AlphaGenesis.constructor() (#1024-1092) uses literals with too many digits:
- maxTransactionAmount = 500000000000000 * (10 ** 18) (#1032)
AlphaGenesis.constructor() (#1024-1092) uses literals with too many digits:
- swapTokensAtAmount = 5000000000 * (10 ** 18) (#1035)
AlphaGenesis.updateGasForProcessing(uint256) (#1206-1211) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 600000, gasForProcessing must be between 200,000 and 500,000) (#1207)
AlphaGenesis.slitherConstructorVariables() (#936-1508) uses literals with too many digits:
- gasForProcessing = 400000 (#987)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
AlphaGenesis.feeDivisor (#968) should be constant
AlphaGenesis.liquidityActiveBlock (#959) should be constant
AlphaGenesis.presaleAddress (#965) should be constant
AlphaGenesis.presaleRouterAddress (#966) should be constant
AlphaGenesis.swapEnabled (#963) should be constant
AlphaGenesis.tradingActive (#962) should be constant
AlphaGenesis.tradingActiveBlock (#960) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (#92-94)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (#96-101)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (#103-105)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#109-111)
name() should be declared external:
- BEP20.name() (#198-200)
symbol() should be declared external:
- BEP20.symbol() (#202-204)
decimals() should be declared external:
- BEP20.decimals() (#206-208)
totalSupply() should be declared external:
- BEP20.totalSupply() (#210-212)
transfer(address,uint256) should be declared external:
- BEP20.transfer(address,uint256) (#218-222)
allowance(address,address) should be declared external:
- BEP20.allowance(address,address) (#224-226)
approve(address,uint256) should be declared external:
- BEP20.approve(address,uint256) (#228-231)
transferFrom(address,address,uint256) should be declared external:
- BEP20.transferFrom(address,address,uint256) (#233-242)
increaseAllowance(address,uint256) should be declared external:
- BEP20.increaseAllowance(address,uint256) (#244-247)
decreaseAllowance(address,uint256) should be declared external:
- BEP20.decreaseAllowance(address,uint256) (#249-252)
owner() should be declared external:
- Ownable.owner() (#401-403)
distributeTokenDividends(uint256) should be declared external:
- DividendPayingToken.distributeTokenDividends(uint256) (#647-658)
withdrawDividend() should be declared external:
- DividendPayingToken.withdrawDividend() (#660-662)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#682-684)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#690-692)
getAccountAtIndex(uint256) should be declared external:
- GenesisTracer.getAccountAtIndex(uint256) (#831-848)
process(uint256) should be declared external:
- GenesisTracer.process(uint256) (#876-920)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- AlphaGenesis.setAutomatedMarketMakerPair(address,bool) (#1163-1167)
isExcludedFromFees(address) should be declared external:
- AlphaGenesis.isExcludedFromFees(address) (#1225-1227)
withdrawableDividendOf(address) should be declared external:
- AlphaGenesis.withdrawableDividendOf(address) (#1229-1231)
dividendTokenBalanceOf(address) should be declared external:
- AlphaGenesis.dividendTokenBalanceOf(address) (#1233-1235)
Use the external attribute for functions never called from the contract.
Additional information: link
AlphaGenesis._transfer(address,address,uint256) (#1284-1369) performs a multiplication on the result of a division:
-tokensForRewards += fees * rewardsSellFee / totalSellFees (#1333)
-fees = amount.mul(totalBuyFees).div(feeDivisor) (#1340)
AlphaGenesis._transfer(address,address,uint256) (#1284-1369) performs a multiplication on the result of a division:
-fees = amount.mul(totalBuyFees).div(feeDivisor) (#1340)
-tokensForRewards += fees * rewardsBuyFee / totalBuyFees (#1341)
AlphaGenesis._transfer(address,address,uint256) (#1284-1369) performs a multiplication on the result of a division:
-tokensForLiquidity += fees * liquiditySellFee / totalSellFees (#1334)
-fees = amount.mul(totalBuyFees).div(feeDivisor) (#1340)
AlphaGenesis._transfer(address,address,uint256) (#1284-1369) performs a multiplication on the result of a division:
-fees = amount.mul(totalBuyFees).div(feeDivisor) (#1340)
-tokensForLiquidity += fees * liquidityBuyFee / totalBuyFees (#1342)
AlphaGenesis._transfer(address,address,uint256) (#1284-1369) performs a multiplication on the result of a division:
-tokensForMarketing += fees * marketingSellFee / totalSellFees (#1335)
-fees = amount.mul(totalBuyFees).div(feeDivisor) (#1340)
AlphaGenesis._transfer(address,address,uint256) (#1284-1369) performs a multiplication on the result of a division:
-fees = amount.mul(totalBuyFees).div(feeDivisor) (#1340)
-tokensForMarketing += fees * marketingBuyFee / totalBuyFees (#1343)
AlphaGenesis._transfer(address,address,uint256) (#1284-1369) performs a multiplication on the result of a division:
-tokensForCommunity += fees * communitySellFee / totalSellFees (#1336)
-fees = amount.mul(totalBuyFees).div(feeDivisor) (#1340)
AlphaGenesis._transfer(address,address,uint256) (#1284-1369) performs a multiplication on the result of a division:
-fees = amount.mul(totalBuyFees).div(feeDivisor) (#1340)
-tokensForCommunity += fees * communityBuyFee / totalBuyFees (#1344)
AlphaGenesis.swapBack() (#1437-1481) performs a multiplication on the result of a division:
-ethForMarketing = ethBalance.mul(tokensForMarketing).div(totalTokensToSwap) (#1451)
-(success,None) = address(marketingWallet).call{value: ethForMarketing * percentForMarketing / 100}(Genesis event complete) (#1476)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#664-680):
External calls:
- success = IBEP20(token).transfer(user,_withdrawableDividend) (#669)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#672)
Reentrancy in AlphaGenesis.constructor() (#1024-1092):
External calls:
- _pancakeswapV2Pair = IPancakeswapV2Factory(_pancakeswapV2Router.factory()).createPair(address(this),_pancakeswapV2Router.WETH()) (#1065-1066)
- _setAutomatedMarketMakerPair(_pancakeswapV2Pair,true) (#1071)
- genesisTracer.excludeFromDividends(pair) (#1175)
- genesisTracer.excludeFromDividends(address(genesisTracer)) (#1073)
- genesisTracer.excludeFromDividends(address(this)) (#1074)
- genesisTracer.excludeFromDividends(newOwner) (#1075)
- genesisTracer.excludeFromDividends(address(_pancakeswapV2Router)) (#1076)
- genesisTracer.excludeFromDividends(address(0xdead)) (#1077)
State variables written after the call(s):
- transferOwnership(newOwner) (#1091)
- _owner = newOwner (#419)
Reentrancy in AlphaGenesis.swapBack() (#1437-1481):
External calls:
- swapTokensForEth(contractBalance) (#1447)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1411-1417)
State variables written after the call(s):
- tokensForCommunity = 0 * (10 ** 18) (#1459)
- tokensForLiquidity = 0 * (10 ** 18) (#1456)
- tokensForMarketing = 0 * (10 ** 18) (#1457)
- tokensForRewards = 0 * (10 ** 18) (#1458)
Apply the check-effects-interactions pattern.
Additional information: link
AlphaGenesis._transfer(address,address,uint256).lastProcessedIndex (#1364) is a local variable never initialized
AlphaGenesis.doChainSync(address[]).i (#1497) is a local variable never initialized
AlphaGenesis._transfer(address,address,uint256).claims (#1364) is a local variable never initialized
AlphaGenesis._transfer(address,address,uint256).iterations (#1364) is a local variable never initialized
Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability.
Additional information: link
AlphaGenesis.claim() (#1268-1270) ignores return value by genesisTracer.processAccount(address(msg.sender),false) (#1269)
AlphaGenesis._transfer(address,address,uint256) (#1284-1369) ignores return value by genesisTracer.process(gas) (#1364-1367)
AlphaGenesis.addLiquidity(uint256,uint256) (#1421-1435) ignores return value by pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0xdead),block.timestamp) (#1426-1433)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.dividendOf(address)._owner (#682) shadows:
- Ownable._owner (#391) (state variable)
DividendPayingToken.withdrawableDividendOf(address)._owner (#686) shadows:
- Ownable._owner (#391) (state variable)
DividendPayingToken.withdrawnDividendOf(address)._owner (#690) shadows:
- Ownable._owner (#391) (state variable)
DividendPayingToken.accumulativeDividendOf(address)._owner (#694) shadows:
- Ownable._owner (#391) (state variable)
AlphaGenesis.constructor().totalSupply (#1029) shadows:
- BEP20.totalSupply() (#210-212) (function)
- IBEP20.totalSupply() (#146) (function)
Rename the local variables that shadow another component.
Additional information: link
AlphaGenesis.updateSwapTokensAtAmount(uint256) (#1111-1114) should emit an event for:
- swapTokensAtAmount = newAmount * (10 ** 18) (#1112)
AlphaGenesis.updateBuyFees(uint256,uint256,uint256,uint256) (#1122-1129) should emit an event for:
- marketingBuyFee = _marketingFee (#1123)
- rewardsBuyFee = _rewardsFee (#1124)
- liquidityBuyFee = _liquidityFee (#1125)
- communityBuyFee = _communityFee (#1126)
- totalBuyFees = marketingBuyFee + rewardsBuyFee + liquidityBuyFee + communityBuyFee (#1127)
AlphaGenesis.updateSellFees(uint256,uint256,uint256,uint256) (#1132-1139) should emit an event for:
- marketingSellFee = _marketingFee (#1133)
- rewardsSellFee = _rewardsFee (#1134)
- liquiditySellFee = _liquidityFee (#1135)
- communitySellFee = _communityFee (#1136)
- totalSellFees = marketingSellFee + rewardsSellFee + liquiditySellFee + communitySellFee (#1137)
AlphaGenesis.marketingBuyBackSettings(bool,uint256) (#1502-1506) should emit an event for:
- percentForMarketing = _percentForMarketing (#1504)
Emit an event for critical parameter changes.
Additional information: link
DividendPayingToken._withdrawDividendOfUser(address) (#664-680) has external calls inside a loop: success = IBEP20(token).transfer(user,_withdrawableDividend) (#669)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'AlphaGenesis._transfer(address,address,uint256).claims (#1364)' in AlphaGenesis._transfer(address,address,uint256) (#1284-1369) potentially used before declaration: ProcessedGenesisTracer(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1365)
Variable 'AlphaGenesis._transfer(address,address,uint256).iterations (#1364)' in AlphaGenesis._transfer(address,address,uint256) (#1284-1369) potentially used before declaration: ProcessedGenesisTracer(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1365)
Variable 'AlphaGenesis._transfer(address,address,uint256).lastProcessedIndex (#1364)' in AlphaGenesis._transfer(address,address,uint256) (#1284-1369) potentially used before declaration: ProcessedGenesisTracer(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1365)
Move all variable declarations prior to any usage of the variable, and ensure that reaching a variable declaration does not depend on some conditional if it is used unconditionally.
Additional information: link
Reentrancy in AlphaGenesis.constructor() (#1024-1092):
External calls:
- _pancakeswapV2Pair = IPancakeswapV2Factory(_pancakeswapV2Router.factory()).createPair(address(this),_pancakeswapV2Router.WETH()) (#1065-1066)
State variables written after the call(s):
- pancakeswapV2Pair = _pancakeswapV2Pair (#1069)
- pancakeswapV2Router = _pancakeswapV2Router (#1068)
Reentrancy in AlphaGenesis.constructor() (#1024-1092):
External calls:
- _pancakeswapV2Pair = IPancakeswapV2Factory(_pancakeswapV2Router.factory()).createPair(address(this),_pancakeswapV2Router.WETH()) (#1065-1066)
- _setAutomatedMarketMakerPair(_pancakeswapV2Pair,true) (#1071)
- genesisTracer.excludeFromDividends(pair) (#1175)
State variables written after the call(s):
- _setAutomatedMarketMakerPair(_pancakeswapV2Pair,true) (#1071)
- _isExcludedMaxTransactionAmount[excludeMaxTransaction] = isExcluded (#1143)
- _setAutomatedMarketMakerPair(_pancakeswapV2Pair,true) (#1071)
- automatedMarketMakerPairs[pair] = value (#1170)
Reentrancy in AlphaGenesis.constructor() (#1024-1092):
External calls:
- _pancakeswapV2Pair = IPancakeswapV2Factory(_pancakeswapV2Router.factory()).createPair(address(this),_pancakeswapV2Router.WETH()) (#1065-1066)
- _setAutomatedMarketMakerPair(_pancakeswapV2Pair,true) (#1071)
- genesisTracer.excludeFromDividends(pair) (#1175)
- genesisTracer.excludeFromDividends(address(genesisTracer)) (#1073)
- genesisTracer.excludeFromDividends(address(this)) (#1074)
- genesisTracer.excludeFromDividends(newOwner) (#1075)
- genesisTracer.excludeFromDividends(address(_pancakeswapV2Router)) (#1076)
- genesisTracer.excludeFromDividends(address(0xdead)) (#1077)
State variables written after the call(s):
- _createInitialSupply(address(newOwner),totalSupply) (#1090)
- _balances[account] = _balances[account].add(amount) (#275)
- excludeFromFees(newOwner,true) (#1079)
- _isExcludedFromFees[account] = excluded (#1149)
- excludeFromFees(address(this),true) (#1080)
- _isExcludedFromFees[account] = excluded (#1149)
- excludeFromFees(address(0xdead),true) (#1081)
- _isExcludedFromFees[account] = excluded (#1149)
- excludeFromMaxTransaction(newOwner,true) (#1083)
- _isExcludedMaxTransactionAmount[excludeMaxTransaction] = isExcluded (#1143)
- excludeFromMaxTransaction(address(this),true) (#1084)
- _isExcludedMaxTransactionAmount[excludeMaxTransaction] = isExcluded (#1143)
- excludeFromMaxTransaction(address(genesisTracer),true) (#1085)
- _isExcludedMaxTransactionAmount[excludeMaxTransaction] = isExcluded (#1143)
- excludeFromMaxTransaction(address(_pancakeswapV2Router),true) (#1086)
- _isExcludedMaxTransactionAmount[excludeMaxTransaction] = isExcluded (#1143)
- excludeFromMaxTransaction(address(0xdead),true) (#1087)
- _isExcludedMaxTransactionAmount[excludeMaxTransaction] = isExcluded (#1143)
- _createInitialSupply(address(newOwner),totalSupply) (#1090)
- _totalSupply = _totalSupply.add(amount) (#274)
Reentrancy in GenesisTracer.processAccount(address,bool) (#922-932):
External calls:
- amount = _withdrawDividendOfUser(account) (#923)
- success = IBEP20(token).transfer(user,_withdrawableDividend) (#669)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#926)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in AlphaGenesis._setAutomatedMarketMakerPair(address,bool) (#1169-1179):
External calls:
- genesisTracer.excludeFromDividends(pair) (#1175)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1178)
Reentrancy in AlphaGenesis._transfer(address,address,uint256) (#1284-1369):
External calls:
- swapBack() (#1314)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1411-1417)
- pancakeswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(marketingWallet),block.timestamp) (#1392-1397)
- pancakeswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(this),block.timestamp) (#1377-1382)
- (success,None) = address(communityWallet).call{value: ethForCommunity}() (#1462)
- (success,None) = address(liquidityWallet).call{value: ethForLiquidity}() (#1463)
- success = IBEP20(token).transfer(address(genesisTracer),tokenBalance) (#1468)
- genesisTracer.distributeTokenDividends(tokenBalance) (#1471)
- (success,None) = address(marketingWallet).call{value: ethForMarketing * percentForMarketing / 100}(Genesis event complete) (#1476)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1479)
External calls sending eth:
- swapBack() (#1314)
- pancakeswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(marketingWallet),block.timestamp) (#1392-1397)
- pancakeswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(this),block.timestamp) (#1377-1382)
- (success,None) = address(communityWallet).call{value: ethForCommunity}() (#1462)
- (success,None) = address(liquidityWallet).call{value: ethForLiquidity}() (#1463)
- (success,None) = address(marketingWallet).call{value: ethForMarketing * percentForMarketing / 100}(Genesis event complete) (#1476)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1479)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#266)
- super._transfer(from,to,amount) (#1356)
- Transfer(sender,recipient,amount) (#266)
- super._transfer(from,address(this),fees) (#1350)
Reentrancy in AlphaGenesis._transfer(address,address,uint256) (#1284-1369):
External calls:
- swapBack() (#1314)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1411-1417)
- pancakeswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(marketingWallet),block.timestamp) (#1392-1397)
- pancakeswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(this),block.timestamp) (#1377-1382)
- (success,None) = address(communityWallet).call{value: ethForCommunity}() (#1462)
- (success,None) = address(liquidityWallet).call{value: ethForLiquidity}() (#1463)
- success = IBEP20(token).transfer(address(genesisTracer),tokenBalance) (#1468)
- genesisTracer.distributeTokenDividends(tokenBalance) (#1471)
- (success,None) = address(marketingWallet).call{value: ethForMarketing * percentForMarketing / 100}(Genesis event complete) (#1476)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1479)
- genesisTracer.setBalance(address(from),balanceOf(from)) (#1358)
- genesisTracer.setBalance(address(to),balanceOf(to)) (#1359)
- genesisTracer.process(gas) (#1364-1367)
External calls sending eth:
- swapBack() (#1314)
- pancakeswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(marketingWallet),block.timestamp) (#1392-1397)
- pancakeswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(this),block.timestamp) (#1377-1382)
- (success,None) = address(communityWallet).call{value: ethForCommunity}() (#1462)
- (success,None) = address(liquidityWallet).call{value: ethForLiquidity}() (#1463)
- (success,None) = address(marketingWallet).call{value: ethForMarketing * percentForMarketing / 100}(Genesis event complete) (#1476)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1479)
Event emitted after the call(s):
- ProcessedGenesisTracer(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1365)
Reentrancy in AlphaGenesis.constructor() (#1024-1092):
External calls:
- _pancakeswapV2Pair = IPancakeswapV2Factory(_pancakeswapV2Router.factory()).createPair(address(this),_pancakeswapV2Router.WETH()) (#1065-1066)
- _setAutomatedMarketMakerPair(_pancakeswapV2Pair,true) (#1071)
- genesisTracer.excludeFromDividends(pair) (#1175)
Event emitted after the call(s):
- ExcludedMaxTransactionAmount(excludeMaxTransaction,isExcluded) (#1144)
- _setAutomatedMarketMakerPair(_pancakeswapV2Pair,true) (#1071)
- SetAutomatedMarketMakerPair(pair,value) (#1178)
- _setAutomatedMarketMakerPair(_pancakeswapV2Pair,true) (#1071)
Reentrancy in AlphaGenesis.constructor() (#1024-1092):
External calls:
- _pancakeswapV2Pair = IPancakeswapV2Factory(_pancakeswapV2Router.factory()).createPair(address(this),_pancakeswapV2Router.WETH()) (#1065-1066)
- _setAutomatedMarketMakerPair(_pancakeswapV2Pair,true) (#1071)
- genesisTracer.excludeFromDividends(pair) (#1175)
- genesisTracer.excludeFromDividends(address(genesisTracer)) (#1073)
- genesisTracer.excludeFromDividends(address(this)) (#1074)
- genesisTracer.excludeFromDividends(newOwner) (#1075)
- genesisTracer.excludeFromDividends(address(_pancakeswapV2Router)) (#1076)
- genesisTracer.excludeFromDividends(address(0xdead)) (#1077)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1151)
- excludeFromFees(address(0xdead),true) (#1081)
- ExcludeFromFees(account,excluded) (#1151)
- excludeFromFees(address(this),true) (#1080)
- ExcludeFromFees(account,excluded) (#1151)
- excludeFromFees(newOwner,true) (#1079)
- ExcludedMaxTransactionAmount(excludeMaxTransaction,isExcluded) (#1144)
- excludeFromMaxTransaction(address(genesisTracer),true) (#1085)
- ExcludedMaxTransactionAmount(excludeMaxTransaction,isExcluded) (#1144)
- excludeFromMaxTransaction(address(this),true) (#1084)
- ExcludedMaxTransactionAmount(excludeMaxTransaction,isExcluded) (#1144)
- excludeFromMaxTransaction(newOwner,true) (#1083)
- ExcludedMaxTransactionAmount(excludeMaxTransaction,isExcluded) (#1144)
- excludeFromMaxTransaction(address(0xdead),true) (#1087)
- ExcludedMaxTransactionAmount(excludeMaxTransaction,isExcluded) (#1144)
- excludeFromMaxTransaction(address(_pancakeswapV2Router),true) (#1086)
- OwnershipTransferred(_owner,newOwner) (#418)
- transferOwnership(newOwner) (#1091)
- Transfer(address(0),account,amount) (#276)
- _createInitialSupply(address(newOwner),totalSupply) (#1090)
Reentrancy in AlphaGenesis.excludeFromGenesisTracer(address) (#1099-1102):
External calls:
- genesisTracer.excludeFromDividends(account) (#1100)
Event emitted after the call(s):
- ExcludeFromDividends(account) (#1101)
Reentrancy in AlphaGenesis.includeInGenesisTracer(address) (#1105-1108):
External calls:
- genesisTracer.includeInDividends(account) (#1106)
Event emitted after the call(s):
- IncludeInDividends(account) (#1107)
Reentrancy in GenesisTracer.processAccount(address,bool) (#922-932):
External calls:
- amount = _withdrawDividendOfUser(account) (#923)
- success = IBEP20(token).transfer(user,_withdrawableDividend) (#669)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#927)
Reentrancy in AlphaGenesis.processGenesisTracer(uint256) (#1263-1266):
External calls:
- (iterations,claims,lastProcessedIndex) = genesisTracer.process(gas) (#1264)
Event emitted after the call(s):
- ProcessedGenesisTracer(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (#1265)
Reentrancy in AlphaGenesis.swapBack() (#1437-1481):
External calls:
- swapTokensForEth(contractBalance) (#1447)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1411-1417)
- (success,None) = address(communityWallet).call{value: ethForCommunity}() (#1462)
- (success,None) = address(liquidityWallet).call{value: ethForLiquidity}() (#1463)
- swapBnbForRewardToken(ethForRewards) (#1465)
- pancakeswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(this),block.timestamp) (#1377-1382)
- success = IBEP20(token).transfer(address(genesisTracer),tokenBalance) (#1468)
- genesisTracer.distributeTokenDividends(tokenBalance) (#1471)
External calls sending eth:
- (success,None) = address(communityWallet).call{value: ethForCommunity}() (#1462)
- (success,None) = address(liquidityWallet).call{value: ethForLiquidity}() (#1463)
- swapBnbForRewardToken(ethForRewards) (#1465)
- pancakeswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(this),block.timestamp) (#1377-1382)
Event emitted after the call(s):
- SendDividends(tokenBalance,ethForRewards) (#1472)
Apply the check-effects-interactions pattern.
Additional information: link
GenesisTracer.getAccount(address) (#786-829) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#826-828)
GenesisTracer.canAutoClaim(uint256) (#850-856) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#851)
- block.timestamp.sub(lastClaimTime) >= claimWait (#855)
Avoid relying on block.timestamp.
Additional information: link
AlphaGenesis.addLiquidity(uint256,uint256) (#1421-1435) is never used and should be removed
BEP20._burn(address,uint256) (#279-287) is never used and should be removed
Context._msgData() (#10-13) is never used and should be removed
SafeMath.mod(uint256,uint256) (#380-382) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#384-387) is never used and should be removed
SafeMathInt.abs(int256) (#462-465) is never used and should be removed
SafeMathInt.div(int256,int256) (#439-445) is never used and should be removed
SafeMathInt.mul(int256,int256) (#429-436) is never used and should be removed
Remove unused functions.
Additional information: link
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 relatively low CoinGecko rank
Twitter account has relatively few followers
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account