Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
GalactiCum.swapETHForTokens(uint256) (#829-844) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#836-841)
GalactiCum.addLiquidity(uint256,uint256) (#846-859) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#851-858)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
GalactiCum._transfer(address,address,uint256) (#672-789) uses a weak PRNG: "_bBSLimit = _bBSLimitMin + uint256(keccak256(bytes)(abi.encodePacked(block.timestamp,block.difficulty))) % (_bBSLimitMax - _bBSLimitMin + 1) (#733)"
Do not use block.timestamp, now or blockhash as a source of randomness
Additional information: link
Reentrancy in GalactiCum._transfer(address,address,uint256) (#672-789):
External calls:
- swapTokens(contractTokenBalance) (#701)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#818-824)
External calls sending eth:
- swapTokens(contractTokenBalance) (#701)
- recipient.transfer(amount) (#1142)
State variables written after the call(s):
- _removeOldSellHistories() (#728)
- _sellHistories[i].time = _sellHistories[j].time (#1029)
- _sellHistories[i].bnbAmount = _sellHistories[j].bnbAmount (#1030)
- _sellHistories.pop() (#1040)
Reentrancy in GalactiCum._transfer(address,address,uint256) (#672-789):
External calls:
- swapTokens(contractTokenBalance) (#701)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#818-824)
- buyBackTokens(_bBSLimit) (#736)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#836-841)
External calls sending eth:
- swapTokens(contractTokenBalance) (#701)
- recipient.transfer(amount) (#1142)
- buyBackTokens(_bBSLimit) (#736)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#836-841)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#788)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#965)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#890)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#881)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#911)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#882)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#901)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#902)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#892)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#913)
- _tokenTransfer(from,to,amount,takeFee) (#788)
- _rTotal = _rTotal.sub(rFee) (#920)
- _tokenTransfer(from,to,amount,takeFee) (#788)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#967)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#900)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#910)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#891)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#912)
- buyBackTokens(_bBSLimit) (#736)
- inSwapAndLiquify = true (#518)
- inSwapAndLiquify = false (#520)
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.
Ownable.unlock() (#198-203) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > _lockTime,Contract is locked until 7 days) (#200)
GalactiCum._transfer(address,address,uint256) (#672-789) uses timestamp for comparisons
Dangerous comparisons:
- overMinimumTokenBalance && _startTimeForSwap + _intervalMinutesForSwap <= block.timestamp (#698)
- _sellHistories[i].time >= startTime (#718)
- balance > _bBSLimit (#735)
GalactiCum.buyBackTokens(uint256) (#803-807) uses timestamp for comparisons
Dangerous comparisons:
- amount > 0 (#804)
GalactiCum._removeOldSellHistories() (#1021-1043) uses timestamp for comparisons
Dangerous comparisons:
- _sellHistories[j].time >= maxStartTimeForHistories (#1027)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#93-102) uses assembly
- INLINE ASM (#100)
Address._functionCallWithValue(address,bytes,uint256,string) (#130-147) uses assembly
- INLINE ASM (#139-142)
Do not use evm assembly.
Additional information: link
GalactiCum.includeInReward(address) (#651-662) has costly operations inside a loop:
- _excluded.pop() (#658)
Use a local variable to hold the loop computation result.
Additional information: link
GalactiCum._transfer(address,address,uint256).sellHistory (#688) 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
GalactiCum.addLiquidity(uint256,uint256) (#846-859) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#851-858)
Ensure that all the return values of the function calls are used.
Additional information: link
GalactiCum.allowance(address,address).owner (#573) shadows:
- Ownable.owner() (#163-165) (function)
GalactiCum._approve(address,address,uint256).owner (#664) shadows:
- Ownable.owner() (#163-165) (function)
Rename the local variables that shadow another component.
Additional information: link
GalactiCum.SetBuyBackMaxTimeForHistories(uint256) (#1045-1047) should emit an event for:
- _buyBackMaxTimeForHistories = newMinutes * 60 (#1046)
GalactiCum.SetBuyBackDivisor(uint256) (#1049-1051) should emit an event for:
- _buyBackDivisor = newDivisor (#1050)
GalactiCum.SetBuyBackTimeInterval(uint256) (#1057-1059) should emit an event for:
- _buyBackTimeInterval = newMinutes * 60 (#1058)
GalactiCum.SetBuyBackRangeRate(uint256) (#1061-1064) should emit an event for:
- _buyBackRangeRate = newPercent (#1063)
GalactiCum.SetSwapMinutes(uint256) (#1070-1072) should emit an event for:
- _intervalMinutesForSwap = newMinutes * 60 (#1071)
GalactiCum.setTaxFeePercent(uint256) (#1074-1076) should emit an event for:
- _taxFee = taxFee (#1075)
GalactiCum.setBuyFee(uint256,uint256) (#1078-1081) should emit an event for:
- _buyTaxFee = buyTaxFee (#1079)
- _buyLiquidityFee = buyLiquidityFee (#1080)
GalactiCum.setSellFee(uint256,uint256) (#1083-1086) should emit an event for:
- _sellTaxFee = sellTaxFee (#1084)
- _sellLiquidityFee = sellLiquidityFee (#1085)
GalactiCum.setLiquidityFeePercent(uint256) (#1088-1090) should emit an event for:
- _liquidityFee = liquidityFee (#1089)
GalactiCum.setBuyBackSellLimit(uint256) (#1092-1094) should emit an event for:
- buyBackSellLimit = buyBackSellSetLimit (#1093)
GalactiCum.setMaxTxAmount(uint256) (#1096-1098) should emit an event for:
- _maxTxAmount = maxTxAmount (#1097)
GalactiCum.setMarketingDivisor(uint256) (#1100-1102) should emit an event for:
- marketingDivisor = divisor (#1101)
GalactiCum.setNumTokensSellToAddToBuyBack(uint256) (#1104-1106) should emit an event for:
- minimumTokensBeforeSwap = _minimumTokensBeforeSwap (#1105)
Emit an event for critical parameter changes.
Additional information: link
GalactiCum.setMarketingAddress(address)._marketingAddress (#1108) lacks a zero-check on :
- marketingAddress = address(_marketingAddress) (#1109)
Check that the address is not zero.
Additional information: link
Reentrancy in GalactiCum._transfer(address,address,uint256) (#672-789):
External calls:
- swapTokens(contractTokenBalance) (#701)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#818-824)
- buyBackTokens(_bBSLimit) (#736)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#836-841)
External calls sending eth:
- swapTokens(contractTokenBalance) (#701)
- recipient.transfer(amount) (#1142)
- buyBackTokens(_bBSLimit) (#736)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#836-841)
State variables written after the call(s):
- removeAllFee() (#752)
- _liquidityFee = 0 (#989)
- _liquidityFee = _buyLiquidityFee (#754)
- removeAllFee() (#758)
- _liquidityFee = 0 (#989)
- _liquidityFee = _sellLiquidityFee (#760)
- removeAllFee() (#765)
- _liquidityFee = 0 (#989)
- _liquidityFee = _addressFees[from]._liquidityFee (#767)
- _liquidityFee = _addressFees[from]._sellLiquidityFee (#772)
- removeAllFee() (#779)
- _liquidityFee = 0 (#989)
- _liquidityFee = _addressFees[to]._buyLiquidityFee (#782)
- _tokenTransfer(from,to,amount,takeFee) (#788)
- _liquidityFee = _previousLiquidityFee (#994)
- _liquidityFee = 0 (#989)
- removeAllFee() (#752)
- _previousLiquidityFee = _liquidityFee (#986)
- removeAllFee() (#758)
- _previousLiquidityFee = _liquidityFee (#986)
- removeAllFee() (#765)
- _previousLiquidityFee = _liquidityFee (#986)
- removeAllFee() (#779)
- _previousLiquidityFee = _liquidityFee (#986)
- _tokenTransfer(from,to,amount,takeFee) (#788)
- _previousLiquidityFee = _liquidityFee (#986)
- removeAllFee() (#752)
- _previousTaxFee = _taxFee (#985)
- removeAllFee() (#758)
- _previousTaxFee = _taxFee (#985)
- removeAllFee() (#765)
- _previousTaxFee = _taxFee (#985)
- removeAllFee() (#779)
- _previousTaxFee = _taxFee (#985)
- _tokenTransfer(from,to,amount,takeFee) (#788)
- _previousTaxFee = _taxFee (#985)
- _tokenTransfer(from,to,amount,takeFee) (#788)
- _tFeeTotal = _tFeeTotal.add(tFee) (#921)
- removeAllFee() (#752)
- _taxFee = 0 (#988)
- _taxFee = _buyTaxFee (#753)
- removeAllFee() (#758)
- _taxFee = 0 (#988)
- _taxFee = _sellTaxFee (#759)
- removeAllFee() (#765)
- _taxFee = 0 (#988)
- _taxFee = _addressFees[from]._taxFee (#766)
- _taxFee = _addressFees[from]._sellTaxFee (#771)
- removeAllFee() (#779)
- _taxFee = 0 (#988)
- _taxFee = _addressFees[to]._buyTaxFee (#781)
- _tokenTransfer(from,to,amount,takeFee) (#788)
- _taxFee = _previousTaxFee (#993)
- _taxFee = 0 (#988)
Reentrancy in GalactiCum.changeRouterVersion(address) (#1145-1158):
External calls:
- _pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1151-1152)
State variables written after the call(s):
- uniswapV2Pair = _pair (#1154)
- uniswapV2Router = _uniswapV2Router (#1157)
Reentrancy in GalactiCum.constructor() (#523-545):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#533-534)
State variables written after the call(s):
- _isExcludedFromFee[owner()] = true (#539)
- _isExcludedFromFee[address(this)] = true (#540)
- _startTimeForSwap = block.timestamp (#542)
- uniswapV2Router = _uniswapV2Router (#536)
Reentrancy in GalactiCum.transferFrom(address,address,uint256) (#582-586):
External calls:
- _transfer(sender,recipient,amount) (#583)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#836-841)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#818-824)
External calls sending eth:
- _transfer(sender,recipient,amount) (#583)
- recipient.transfer(amount) (#1142)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#836-841)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#584)
- _allowances[owner][spender] = amount (#668)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in GalactiCum._transfer(address,address,uint256) (#672-789):
External calls:
- swapTokens(contractTokenBalance) (#701)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#818-824)
- buyBackTokens(_bBSLimit) (#736)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#836-841)
External calls sending eth:
- swapTokens(contractTokenBalance) (#701)
- recipient.transfer(amount) (#1142)
- buyBackTokens(_bBSLimit) (#736)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#836-841)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#843)
- buyBackTokens(_bBSLimit) (#736)
- Transfer(sender,recipient,tTransferAmount) (#885)
- _tokenTransfer(from,to,amount,takeFee) (#788)
- Transfer(sender,recipient,tTransferAmount) (#895)
- _tokenTransfer(from,to,amount,takeFee) (#788)
- Transfer(sender,recipient,tTransferAmount) (#905)
- _tokenTransfer(from,to,amount,takeFee) (#788)
- Transfer(sender,recipient,tTransferAmount) (#916)
- _tokenTransfer(from,to,amount,takeFee) (#788)
Reentrancy in GalactiCum.constructor() (#523-545):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#533-534)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_tTotal) (#544)
Reentrancy in GalactiCum.swapETHForTokens(uint256) (#829-844):
External calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#836-841)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#843)
Reentrancy in GalactiCum.swapTokensForEth(uint256) (#809-827):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#818-824)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#826)
Reentrancy in GalactiCum.transferFrom(address,address,uint256) (#582-586):
External calls:
- _transfer(sender,recipient,amount) (#583)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#836-841)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#818-824)
External calls sending eth:
- _transfer(sender,recipient,amount) (#583)
- recipient.transfer(amount) (#1142)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#836-841)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#669)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#584)
Apply the check-effects-interactions pattern.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#130-147) is never used and should be removed
Address.functionCall(address,bytes) (#113-115) is never used and should be removed
Address.functionCall(address,bytes,string) (#117-119) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#121-123) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#125-128) is never used and should be removed
Address.isContract(address) (#93-102) is never used and should be removed
Address.sendValue(address,uint256) (#104-110) is never used and should be removed
Context._msgData() (#16-19) is never used and should be removed
GalactiCum.addLiquidity(uint256,uint256) (#846-859) is never used and should be removed
SafeMath.mod(uint256,uint256) (#81-83) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#85-88) is never used and should be removed
Remove unused functions.
Additional information: link
GalactiCum._rTotal (#433) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
GalactiCum._previousTaxFee (#456) is set pre-construction with a non-constant function or state variable:
- _taxFee
GalactiCum._previousLiquidityFee (#459) is set pre-construction with a non-constant function or state variable:
- _liquidityFee
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 Address.sendValue(address,uint256) (#104-110):
- (success) = recipient.call{value: amount}() (#108)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#130-147):
- (success,returndata) = target.call{value: weiValue}(data) (#133)
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() (#243) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#244) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#260) is not in mixedCase
Function IUniswapV2Router01.WETH() (#281) is not in mixedCase
Parameter GalactiCum.calculateTaxFee(uint256)._amount (#970) is not in mixedCase
Parameter GalactiCum.calculateLiquidityFee(uint256)._amount (#976) is not in mixedCase
Function GalactiCum.SetBuyBackMaxTimeForHistories(uint256) (#1045-1047) is not in mixedCase
Function GalactiCum.SetBuyBackDivisor(uint256) (#1049-1051) is not in mixedCase
Function GalactiCum.GetBuyBackTimeInterval() (#1053-1055) is not in mixedCase
Function GalactiCum.SetBuyBackTimeInterval(uint256) (#1057-1059) is not in mixedCase
Function GalactiCum.SetBuyBackRangeRate(uint256) (#1061-1064) is not in mixedCase
Function GalactiCum.GetSwapMinutes() (#1066-1068) is not in mixedCase
Function GalactiCum.SetSwapMinutes(uint256) (#1070-1072) is not in mixedCase
Parameter GalactiCum.setNumTokensSellToAddToBuyBack(uint256)._minimumTokensBeforeSwap (#1104) is not in mixedCase
Parameter GalactiCum.setMarketingAddress(address)._marketingAddress (#1108) is not in mixedCase
Parameter GalactiCum.setSwapAndLiquifyEnabled(bool)._enabled (#1112) is not in mixedCase
Parameter GalactiCum.setBuyBackEnabled(bool)._enabled (#1117) is not in mixedCase
Parameter GalactiCum.setAutoBuyBackEnabled(bool)._enabled (#1122) is not in mixedCase
Parameter GalactiCum.changeRouterVersion(address)._router (#1145) is not in mixedCase
Parameter GalactiCum.transferForeignToken(address,address)._token (#1164) is not in mixedCase
Parameter GalactiCum.transferForeignToken(address,address)._to (#1164) is not in mixedCase
Function GalactiCum.Sweep() (#1170-1173) is not in mixedCase
Parameter GalactiCum.setAddressFee(address,bool,uint256,uint256)._address (#1175) is not in mixedCase
Parameter GalactiCum.setAddressFee(address,bool,uint256,uint256)._enable (#1175) is not in mixedCase
Parameter GalactiCum.setAddressFee(address,bool,uint256,uint256)._addressTaxFee (#1175) is not in mixedCase
Parameter GalactiCum.setAddressFee(address,bool,uint256,uint256)._addressLiquidityFee (#1175) is not in mixedCase
Parameter GalactiCum.setBuyAddressFee(address,bool,uint256,uint256)._address (#1181) is not in mixedCase
Parameter GalactiCum.setBuyAddressFee(address,bool,uint256,uint256)._enable (#1181) is not in mixedCase
Parameter GalactiCum.setBuyAddressFee(address,bool,uint256,uint256)._addressTaxFee (#1181) is not in mixedCase
Parameter GalactiCum.setBuyAddressFee(address,bool,uint256,uint256)._addressLiquidityFee (#1181) is not in mixedCase
Parameter GalactiCum.setSellAddressFee(address,bool,uint256,uint256)._address (#1187) is not in mixedCase
Parameter GalactiCum.setSellAddressFee(address,bool,uint256,uint256)._enable (#1187) is not in mixedCase
Parameter GalactiCum.setSellAddressFee(address,bool,uint256,uint256)._addressTaxFee (#1187) is not in mixedCase
Parameter GalactiCum.setSellAddressFee(address,bool,uint256,uint256)._addressLiquidityFee (#1187) is not in mixedCase
Variable GalactiCum._taxFee (#455) is not in mixedCase
Variable GalactiCum._liquidityFee (#458) is not in mixedCase
Variable GalactiCum._buyTaxFee (#461) is not in mixedCase
Variable GalactiCum._buyLiquidityFee (#462) is not in mixedCase
Variable GalactiCum._sellTaxFee (#464) is not in mixedCase
Variable GalactiCum._startTimeForSwap (#467) is not in mixedCase
Variable GalactiCum._intervalMinutesForSwap (#468) is not in mixedCase
Variable GalactiCum._buyBackRangeRate (#470) is not in mixedCase
Variable GalactiCum._addressFees (#473) is not in mixedCase
Variable GalactiCum._maxTxAmount (#477) is not in mixedCase
Variable GalactiCum._sellHistories (#482) is not in mixedCase
Variable GalactiCum._isAutoBuyBack (#483) is not in mixedCase
Variable GalactiCum._buyBackDivisor (#484) is not in mixedCase
Variable GalactiCum._buyBackTimeInterval (#485) is not in mixedCase
Variable GalactiCum._buyBackMaxTimeForHistories (#486) is not in mixedCase
Variable GalactiCum._isEnabledBuyBackAndBurn (#495) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#17)" inContext (#11-20)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in GalactiCum._transfer(address,address,uint256) (#672-789):
External calls:
- swapTokens(contractTokenBalance) (#701)
- recipient.transfer(amount) (#1142)
State variables written after the call(s):
- _removeOldSellHistories() (#728)
- _sellHistories[i].time = _sellHistories[j].time (#1029)
- _sellHistories[i].bnbAmount = _sellHistories[j].bnbAmount (#1030)
- _sellHistories.pop() (#1040)
Reentrancy in GalactiCum._transfer(address,address,uint256) (#672-789):
External calls:
- swapTokens(contractTokenBalance) (#701)
- recipient.transfer(amount) (#1142)
External calls sending eth:
- swapTokens(contractTokenBalance) (#701)
- recipient.transfer(amount) (#1142)
- buyBackTokens(_bBSLimit) (#736)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#836-841)
State variables written after the call(s):
- removeAllFee() (#752)
- _liquidityFee = 0 (#989)
- _liquidityFee = _buyLiquidityFee (#754)
- removeAllFee() (#758)
- _liquidityFee = 0 (#989)
- _liquidityFee = _sellLiquidityFee (#760)
- removeAllFee() (#765)
- _liquidityFee = 0 (#989)
- _liquidityFee = _addressFees[from]._liquidityFee (#767)
- _liquidityFee = _addressFees[from]._sellLiquidityFee (#772)
- removeAllFee() (#779)
- _liquidityFee = 0 (#989)
- _liquidityFee = _addressFees[to]._buyLiquidityFee (#782)
- _tokenTransfer(from,to,amount,takeFee) (#788)
- _liquidityFee = _previousLiquidityFee (#994)
- _liquidityFee = 0 (#989)
- removeAllFee() (#752)
- _previousLiquidityFee = _liquidityFee (#986)
- removeAllFee() (#758)
- _previousLiquidityFee = _liquidityFee (#986)
- removeAllFee() (#765)
- _previousLiquidityFee = _liquidityFee (#986)
- removeAllFee() (#779)
- _previousLiquidityFee = _liquidityFee (#986)
- _tokenTransfer(from,to,amount,takeFee) (#788)
- _previousLiquidityFee = _liquidityFee (#986)
- removeAllFee() (#752)
- _previousTaxFee = _taxFee (#985)
- removeAllFee() (#758)
- _previousTaxFee = _taxFee (#985)
- removeAllFee() (#765)
- _previousTaxFee = _taxFee (#985)
- removeAllFee() (#779)
- _previousTaxFee = _taxFee (#985)
- _tokenTransfer(from,to,amount,takeFee) (#788)
- _previousTaxFee = _taxFee (#985)
- _tokenTransfer(from,to,amount,takeFee) (#788)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#965)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#890)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#881)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#911)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#882)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#901)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#902)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#892)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#913)
- _tokenTransfer(from,to,amount,takeFee) (#788)
- _rTotal = _rTotal.sub(rFee) (#920)
- _tokenTransfer(from,to,amount,takeFee) (#788)
- _tFeeTotal = _tFeeTotal.add(tFee) (#921)
- _tokenTransfer(from,to,amount,takeFee) (#788)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#967)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#900)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#910)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#891)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#912)
- removeAllFee() (#752)
- _taxFee = 0 (#988)
- _taxFee = _buyTaxFee (#753)
- removeAllFee() (#758)
- _taxFee = 0 (#988)
- _taxFee = _sellTaxFee (#759)
- removeAllFee() (#765)
- _taxFee = 0 (#988)
- _taxFee = _addressFees[from]._taxFee (#766)
- _taxFee = _addressFees[from]._sellTaxFee (#771)
- removeAllFee() (#779)
- _taxFee = 0 (#988)
- _taxFee = _addressFees[to]._buyTaxFee (#781)
- _tokenTransfer(from,to,amount,takeFee) (#788)
- _taxFee = _previousTaxFee (#993)
- _taxFee = 0 (#988)
- buyBackTokens(_bBSLimit) (#736)
- inSwapAndLiquify = true (#518)
- inSwapAndLiquify = false (#520)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#843)
- buyBackTokens(_bBSLimit) (#736)
- Transfer(sender,recipient,tTransferAmount) (#885)
- _tokenTransfer(from,to,amount,takeFee) (#788)
- Transfer(sender,recipient,tTransferAmount) (#895)
- _tokenTransfer(from,to,amount,takeFee) (#788)
- Transfer(sender,recipient,tTransferAmount) (#905)
- _tokenTransfer(from,to,amount,takeFee) (#788)
- Transfer(sender,recipient,tTransferAmount) (#916)
- _tokenTransfer(from,to,amount,takeFee) (#788)
Reentrancy in GalactiCum.transferFrom(address,address,uint256) (#582-586):
External calls:
- _transfer(sender,recipient,amount) (#583)
- recipient.transfer(amount) (#1142)
External calls sending eth:
- _transfer(sender,recipient,amount) (#583)
- recipient.transfer(amount) (#1142)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp.add(300)) (#836-841)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#584)
- _allowances[owner][spender] = amount (#668)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#669)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#584)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#286) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#287)
Variable GalactiCum.reflectionFromToken(uint256,bool).rTransferAmount (#630) is too similar to GalactiCum._transferBothExcluded(address,address,uint256).tTransferAmount (#909)
Variable GalactiCum._transferStandard(address,address,uint256).rTransferAmount (#880) is too similar to GalactiCum._transferBothExcluded(address,address,uint256).tTransferAmount (#909)
Variable GalactiCum._getValues(uint256).rTransferAmount (#926) is too similar to GalactiCum._transferBothExcluded(address,address,uint256).tTransferAmount (#909)
Variable GalactiCum._transferFromExcluded(address,address,uint256).rTransferAmount (#899) is too similar to GalactiCum._getValues(uint256).tTransferAmount (#925)
Variable GalactiCum._transferFromExcluded(address,address,uint256).rTransferAmount (#899) is too similar to GalactiCum._transferFromExcluded(address,address,uint256).tTransferAmount (#899)
Variable GalactiCum._transferBothExcluded(address,address,uint256).rTransferAmount (#909) is too similar to GalactiCum._transferBothExcluded(address,address,uint256).tTransferAmount (#909)
Variable GalactiCum._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#941) is too similar to GalactiCum._transferBothExcluded(address,address,uint256).tTransferAmount (#909)
Variable GalactiCum._transferFromExcluded(address,address,uint256).rTransferAmount (#899) is too similar to GalactiCum._transferStandard(address,address,uint256).tTransferAmount (#880)
Variable GalactiCum._transferStandard(address,address,uint256).rTransferAmount (#880) is too similar to GalactiCum._transferStandard(address,address,uint256).tTransferAmount (#880)
Variable GalactiCum._transferFromExcluded(address,address,uint256).rTransferAmount (#899) is too similar to GalactiCum._transferBothExcluded(address,address,uint256).tTransferAmount (#909)
Variable GalactiCum._transferFromExcluded(address,address,uint256).rTransferAmount (#899) is too similar to GalactiCum._transferToExcluded(address,address,uint256).tTransferAmount (#889)
Variable GalactiCum._transferStandard(address,address,uint256).rTransferAmount (#880) is too similar to GalactiCum._transferToExcluded(address,address,uint256).tTransferAmount (#889)
Variable GalactiCum._getValues(uint256).rTransferAmount (#926) is too similar to GalactiCum._transferToExcluded(address,address,uint256).tTransferAmount (#889)
Variable GalactiCum._transferStandard(address,address,uint256).rTransferAmount (#880) is too similar to GalactiCum._transferFromExcluded(address,address,uint256).tTransferAmount (#899)
Variable GalactiCum._getValues(uint256).rTransferAmount (#926) is too similar to GalactiCum._transferFromExcluded(address,address,uint256).tTransferAmount (#899)
Variable GalactiCum._transferBothExcluded(address,address,uint256).rTransferAmount (#909) is too similar to GalactiCum._transferStandard(address,address,uint256).tTransferAmount (#880)
Variable GalactiCum._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#941) is too similar to GalactiCum._getValues(uint256).tTransferAmount (#925)
Variable GalactiCum._transferFromExcluded(address,address,uint256).rTransferAmount (#899) is too similar to GalactiCum._getTValues(uint256).tTransferAmount (#933)
Variable GalactiCum._transferToExcluded(address,address,uint256).rTransferAmount (#889) is too similar to GalactiCum._transferToExcluded(address,address,uint256).tTransferAmount (#889)
Variable GalactiCum._transferStandard(address,address,uint256).rTransferAmount (#880) is too similar to GalactiCum._getValues(uint256).tTransferAmount (#925)
Variable GalactiCum._getValues(uint256).rTransferAmount (#926) is too similar to GalactiCum._getValues(uint256).tTransferAmount (#925)
Variable GalactiCum._transferToExcluded(address,address,uint256).rTransferAmount (#889) is too similar to GalactiCum._transferFromExcluded(address,address,uint256).tTransferAmount (#899)
Variable GalactiCum.reflectionFromToken(uint256,bool).rTransferAmount (#630) is too similar to GalactiCum._transferStandard(address,address,uint256).tTransferAmount (#880)
Variable GalactiCum._transferBothExcluded(address,address,uint256).rTransferAmount (#909) is too similar to GalactiCum._transferToExcluded(address,address,uint256).tTransferAmount (#889)
Variable GalactiCum._transferToExcluded(address,address,uint256).rTransferAmount (#889) is too similar to GalactiCum._getValues(uint256).tTransferAmount (#925)
Variable GalactiCum._transferBothExcluded(address,address,uint256).rTransferAmount (#909) is too similar to GalactiCum._transferFromExcluded(address,address,uint256).tTransferAmount (#899)
Variable GalactiCum.reflectionFromToken(uint256,bool).rTransferAmount (#630) is too similar to GalactiCum._transferToExcluded(address,address,uint256).tTransferAmount (#889)
Variable GalactiCum.reflectionFromToken(uint256,bool).rTransferAmount (#630) is too similar to GalactiCum._transferFromExcluded(address,address,uint256).tTransferAmount (#899)
Variable GalactiCum._transferBothExcluded(address,address,uint256).rTransferAmount (#909) is too similar to GalactiCum._getValues(uint256).tTransferAmount (#925)
Variable GalactiCum.reflectionFromToken(uint256,bool).rTransferAmount (#630) is too similar to GalactiCum._getValues(uint256).tTransferAmount (#925)
Variable GalactiCum._transferToExcluded(address,address,uint256).rTransferAmount (#889) is too similar to GalactiCum._transferBothExcluded(address,address,uint256).tTransferAmount (#909)
Variable GalactiCum._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#941) is too similar to GalactiCum._getTValues(uint256).tTransferAmount (#933)
Variable GalactiCum._transferStandard(address,address,uint256).rTransferAmount (#880) is too similar to GalactiCum._getTValues(uint256).tTransferAmount (#933)
Variable GalactiCum._getValues(uint256).rTransferAmount (#926) is too similar to GalactiCum._getTValues(uint256).tTransferAmount (#933)
Variable GalactiCum._transferToExcluded(address,address,uint256).rTransferAmount (#889) is too similar to GalactiCum._getTValues(uint256).tTransferAmount (#933)
Variable GalactiCum._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#941) is too similar to GalactiCum._transferStandard(address,address,uint256).tTransferAmount (#880)
Variable GalactiCum._getValues(uint256).rTransferAmount (#926) is too similar to GalactiCum._transferStandard(address,address,uint256).tTransferAmount (#880)
Variable GalactiCum._transferBothExcluded(address,address,uint256).rTransferAmount (#909) is too similar to GalactiCum._getTValues(uint256).tTransferAmount (#933)
Variable GalactiCum.reflectionFromToken(uint256,bool).rTransferAmount (#630) is too similar to GalactiCum._getTValues(uint256).tTransferAmount (#933)
Variable GalactiCum._transferToExcluded(address,address,uint256).rTransferAmount (#889) is too similar to GalactiCum._transferStandard(address,address,uint256).tTransferAmount (#880)
Variable GalactiCum._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#941) is too similar to GalactiCum._transferToExcluded(address,address,uint256).tTransferAmount (#889)
Variable GalactiCum._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#941) is too similar to GalactiCum._transferFromExcluded(address,address,uint256).tTransferAmount (#899)
Prevent variables from having similar names.
Additional information: link
GalactiCum.prepareForPreSale() (#1127-1132) uses literals with too many digits:
- _maxTxAmount = 1000000000 * 10 ** 6 * 10 ** 9 (#1131)
GalactiCum.afterPreSale() (#1134-1139) uses literals with too many digits:
- _maxTxAmount = 3000000 * 10 ** 6 * 10 ** 9 (#1138)
GalactiCum.slitherConstructorVariables() (#416-1194) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#421)
GalactiCum.slitherConstructorVariables() (#416-1194) uses literals with too many digits:
- _tTotal = 1000000000000 * 10 ** 9 (#432)
GalactiCum.slitherConstructorVariables() (#416-1194) uses literals with too many digits:
- _maxTxAmount = 100000000000000 * 10 ** 9 (#477)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
GalactiCum._decimals (#438) should be constant
GalactiCum._isEnabledBuyBackAndBurn (#495) should be constant
GalactiCum._name (#436) should be constant
GalactiCum._symbol (#437) should be constant
GalactiCum._tTotal (#432) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#172-175)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#177-181)
getUnlockTime() should be declared external:
- Ownable.getUnlockTime() (#183-185)
getTime() should be declared external:
- Ownable.getTime() (#187-189)
lock(uint256) should be declared external:
- Ownable.lock(uint256) (#191-196)
unlock() should be declared external:
- Ownable.unlock() (#198-203)
name() should be declared external:
- GalactiCum.name() (#547-549)
symbol() should be declared external:
- GalactiCum.symbol() (#551-553)
decimals() should be declared external:
- GalactiCum.decimals() (#555-557)
totalSupply() should be declared external:
- GalactiCum.totalSupply() (#559-561)
transfer(address,uint256) should be declared external:
- GalactiCum.transfer(address,uint256) (#568-571)
allowance(address,address) should be declared external:
- GalactiCum.allowance(address,address) (#573-575)
approve(address,uint256) should be declared external:
- GalactiCum.approve(address,uint256) (#577-580)
transferFrom(address,address,uint256) should be declared external:
- GalactiCum.transferFrom(address,address,uint256) (#582-586)
increaseAllowance(address,uint256) should be declared external:
- GalactiCum.increaseAllowance(address,uint256) (#588-591)
decreaseAllowance(address,uint256) should be declared external:
- GalactiCum.decreaseAllowance(address,uint256) (#593-596)
isExcludedFromReward(address) should be declared external:
- GalactiCum.isExcludedFromReward(address) (#598-600)
totalFees() should be declared external:
- GalactiCum.totalFees() (#602-604)
minimumTokensBeforeSwapAmount() should be declared external:
- GalactiCum.minimumTokensBeforeSwapAmount() (#606-608)
buyBackSellLimitAmount() should be declared external:
- GalactiCum.buyBackSellLimitAmount() (#610-612)
deliver(uint256) should be declared external:
- GalactiCum.deliver(uint256) (#614-621)
reflectionFromToken(uint256,bool) should be declared external:
- GalactiCum.reflectionFromToken(uint256,bool) (#624-633)
excludeFromReward(address) should be declared external:
- GalactiCum.excludeFromReward(address) (#641-649)
isExcludedFromFee(address) should be declared external:
- GalactiCum.isExcludedFromFee(address) (#997-999)
excludeFromFee(address) should be declared external:
- GalactiCum.excludeFromFee(address) (#1001-1003)
includeInFee(address) should be declared external:
- GalactiCum.includeInFee(address) (#1005-1007)
GetBuyBackTimeInterval() should be declared external:
- GalactiCum.GetBuyBackTimeInterval() (#1053-1055)
GetSwapMinutes() should be declared external:
- GalactiCum.GetSwapMinutes() (#1066-1068)
setBuyBackEnabled(bool) should be declared external:
- GalactiCum.setBuyBackEnabled(bool) (#1117-1120)
setAutoBuyBackEnabled(bool) should be declared external:
- GalactiCum.setAutoBuyBackEnabled(bool) (#1122-1125)
changeRouterVersion(address) should be declared external:
- GalactiCum.changeRouterVersion(address) (#1145-1158)
transferForeignToken(address,address) should be declared external:
- GalactiCum.transferForeignToken(address,address) (#1164-1168)
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