Afrostar Token Logo

AFRO [Afrostar] Token

About AFRO

Listings

Token 2 years
CoinMarketCap 2 years
white paper

AFROSTAR IS THE UNITED DIGITAL CURRENCY OF AFRICA
It aims to be THE digital currency that is trusted and used across the continent, and a top crypto currency worldwide. The Afrostar ecosystem will provide a range of powerful real world use cases for the Afrostar crypto token.

Laser Scorebeta Last Audit: 2 March 2022

report
Token is either risky or in presale. For presale 30+ is a fine score.

CoinToken.swapETHForTokens(uint256,address) (#875-894) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,receiver,block.timestamp.add(300)) (#884-889)
CoinToken.addLiquidity(uint256,uint256) (#927-944) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#934-941)
CoinToken.transferToAddressETH(address,uint256) (#1159-1161) sends eth to arbitrary user
Dangerous calls:
- recipient.transfer(amount) (#1160)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in CoinToken._transfer(address,address,uint256) (#694-744):
External calls:
- swapTokens(minimumTokensBeforeSwap) (#716)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#864-870)
- uniswapV2Router.swapExactTokensForTokens(tokenAmount,0,path,source,(block.timestamp + 1)) (#846-852)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#934-941)
- usdContract.transfer(marketingAddress,receivedUSD) (#829)
- buyBackTokens(buyBackUpperLimit) (#721)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,receiver,block.timestamp.add(300)) (#884-889)
External calls sending eth:
- swapTokens(minimumTokensBeforeSwap) (#716)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#934-941)
- buyBackTokens(buyBackUpperLimit) (#721)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,receiver,block.timestamp.add(300)) (#884-889)
State variables written after the call(s):
- buyBackTokens(buyBackUpperLimit) (#721)
- _isExcludedFromFee[uniswapV2Pair] = true (#880)
- _isExcludedFromFee[address(uniswapV2Router)] = true (#881)
- _isExcludedFromFee[uniswapV2Pair] = false (#890)
- _isExcludedFromFee[address(uniswapV2Router)] = false (#891)
- _tokenTransfer(from,to,amount,takeFee) (#743)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#1050)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#975)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#966)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#967)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#996)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#986)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#987)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#977)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#998)
- _tokenTransfer(from,to,amount,takeFee) (#743)
- _rTotal = _rTotal.sub(rFee) (#1005)
- _tokenTransfer(from,to,amount,takeFee) (#743)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#1052)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#995)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#985)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#976)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#997)
- _tokenTransfer(from,to,amount,takeFee) (#743)
- buyBackFee = _previousBuyBackFee (#1091)
- buyBackFee = 0 (#1082)
- buyBackTokens(buyBackUpperLimit) (#721)
- inSwapAndLiquify = true (#518)
- inSwapAndLiquify = false (#520)
- liquifyFee = liquifyFeeBuy (#736)
- liquifyFee = liquifyFeeSell + currentWalleTaxFee (#739)
- _tokenTransfer(from,to,amount,takeFee) (#743)
- marketingFee = _previousMarketingFee (#1090)
- marketingFee = 0 (#1081)
Apply the check-effects-interactions pattern.

Additional information: link

CoinToken.swapTokens(uint256) (#811-830) ignores return value by usdContract.transfer(marketingAddress,receivedUSD) (#829)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.

Additional information: link


Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains


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.


Combination 2: Unchecked transfer + 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.


Combination 3: Reentrancy vulnerabilities + Unchecked transfer vulnerability. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.

CoinToken._validateStakeTransfer(address,address,uint256) (#767-784) performs a multiplication on the result of a division:
-require(bool,string)((balanceOf(from) - amount) >= (maxTimeStakeCluster - timeCluster) * stakeBalance[from].div(maxTimeStakeCluster),Cannot transfer staked balance) (#781)
CoinToken._checkBuySellLimits(address,address,uint256) (#1180-1201) performs a multiplication on the result of a division:
-steps = amount.div(a1000th) (#1197)
-currentWalleTaxFee = steps * waleTaxFeePer1000th (#1198)
Consider ordering multiplication before division.

Additional information: link

CoinToken.swapTokensForUSD(address,uint256) (#839-853) ignores return value by uniswapV2Router.swapExactTokensForTokens(tokenAmount,0,path,source,(block.timestamp + 1)) (#846-852)
CoinToken.addLiquidity(uint256,uint256) (#927-944) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#934-941)
Ensure that all the return values of the function calls are used.

Additional information: link

CoinToken.allowance(address,address).owner (#584) shadows:
- Ownable.owner() (#157-159) (function)
CoinToken._approve(address,address,uint256).owner (#686) shadows:
- Ownable.owner() (#157-159) (function)
Rename the local variables that shadow another component.

Additional information: link

CoinToken.setBotKillerMinutes(uint256) (#550-553) should emit an event for:
- botKillerLimitMinutes = _minutes (#552)
CoinToken.setMinimumTokensBeforeSwapAmount(uint256) (#620-622) should emit an event for:
- minimumTokensBeforeSwap = amount * 10 ** _decimals (#621)
CoinToken.setMaxWalletBalance(uint256) (#624-626) should emit an event for:
- maxWalletBalance = amount * 10 ** _decimals (#625)
CoinToken.setLiquifyFee(uint256) (#790-792) should emit an event for:
- liquifyFee = fee (#791)
CoinToken.setStakingReleaseIntervalDays(uint8) (#793-795) should emit an event for:
- stakingReleaseIntervalDays = durationInDays (#794)
CoinToken.setLiquifyFeeBuy(uint256) (#796-798) should emit an event for:
- liquifyFeeBuy = fee (#797)
CoinToken.setLiquifyFeeSell(uint256) (#799-801) should emit an event for:
- liquifyFeeSell = fee (#800)
CoinToken.setMarketingFee(uint256) (#802-804) should emit an event for:
- marketingFee = fee (#803)
CoinToken.setBuyBackFee(uint256) (#805-807) should emit an event for:
- buyBackFee = fee (#806)
CoinToken.setWaleTaxFeePer1000th(uint256) (#808-810) should emit an event for:
- waleTaxFeePer1000th = fee (#809)
CoinToken.setTaxFeePercent(uint256) (#1106-1108) should emit an event for:
- _taxFee = taxFee (#1107)
CoinToken.setLiquidityFeePercent(uint256) (#1110-1112) should emit an event for:
- _liquidityFee = liquidityFee (#1111)
CoinToken.setNumTokensSellToAddToLiquidity(uint256) (#1118-1120) should emit an event for:
- minimumTokensBeforeSwap = _minimumTokensBeforeSwap (#1119)
CoinToken.setBuybackUpperLimit(uint256) (#1122-1124) should emit an event for:
- buyBackUpperLimit = buyBackLimit * 10 ** 18 (#1123)
CoinToken.setBuyLimit(uint256) (#1170-1172) should emit an event for:
- buyLimit = amountWithoutDecimals * 10 ** _decimals (#1171)
CoinToken.setSellLimit(uint256) (#1174-1176) should emit an event for:
- sellLimit = amountWithoutDecimals * 10 ** _decimals (#1175)
Emit an event for critical parameter changes.

Additional information: link

CoinToken.constructor(address,uint8,address)._marketingWallet (#523) lacks a zero-check on :
- marketingAddress = address(_marketingWallet) (#532)
CoinToken.setMarketingAddress(address)._marketingAddress (#1126) lacks a zero-check on :
- marketingAddress = address(_marketingAddress) (#1127)
CoinToken.setUniswapUSDAddress(address).account (#1208) lacks a zero-check on :
- uniswapUSD = account (#1209)
Check that the address is not zero.

Additional information: link

Reentrancy in CoinToken._transfer(address,address,uint256) (#694-744):
External calls:
- swapTokens(minimumTokensBeforeSwap) (#716)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#864-870)
- uniswapV2Router.swapExactTokensForTokens(tokenAmount,0,path,source,(block.timestamp + 1)) (#846-852)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#934-941)
- usdContract.transfer(marketingAddress,receivedUSD) (#829)
- buyBackTokens(buyBackUpperLimit) (#721)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,receiver,block.timestamp.add(300)) (#884-889)
External calls sending eth:
- swapTokens(minimumTokensBeforeSwap) (#716)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#934-941)
- buyBackTokens(buyBackUpperLimit) (#721)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,receiver,block.timestamp.add(300)) (#884-889)
State variables written after the call(s):
- _liquidityFee = liquifyFee + marketingFee + buyBackFee (#741)
- _tokenTransfer(from,to,amount,takeFee) (#743)
- _liquidityFee = _previousLiquidityFee (#1087)
- _liquidityFee = 0 (#1078)
- _tokenTransfer(from,to,amount,takeFee) (#743)
- _previousBuyBackFee = buyBackFee (#1075)
- _tokenTransfer(from,to,amount,takeFee) (#743)
- _previousLiquidityFee = _liquidityFee (#1071)
- _tokenTransfer(from,to,amount,takeFee) (#743)
- liquifyFeeBuy = _previousLiquifyFeeBuy = liquifyFeeBuy (#1089)
- _previousLiquifyFeeBuy = liquifyFeeBuy (#1073)
- _tokenTransfer(from,to,amount,takeFee) (#743)
- _previousLiquifyFeeSell = liquifyFeeSell (#1072)
- _tokenTransfer(from,to,amount,takeFee) (#743)
- _previousMarketingFee = marketingFee (#1074)
- _tokenTransfer(from,to,amount,takeFee) (#743)
- _previousTaxFee = _taxFee (#1070)
- _tokenTransfer(from,to,amount,takeFee) (#743)
- _tFeeTotal = _tFeeTotal.add(tFee) (#1006)
- _tokenTransfer(from,to,amount,takeFee) (#743)
- _taxFee = _previousTaxFee (#1086)
- _taxFee = 0 (#1077)
- _tokenTransfer(from,to,amount,takeFee) (#743)
- liquifyFeeBuy = _previousLiquifyFeeBuy = liquifyFeeBuy (#1089)
- liquifyFeeBuy = 0 (#1080)
- _tokenTransfer(from,to,amount,takeFee) (#743)
- liquifyFeeSell = _previousLiquifyFeeSell (#1088)
- liquifyFeeSell = 0 (#1079)
Reentrancy in CoinToken.addLiquidity(uint256,uint256) (#927-944):
External calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#934-941)
State variables written after the call(s):
- _isExcludedFromFee[uniswapV2Pair] = false (#942)
- _isExcludedFromFee[address(uniswapV2Router)] = false (#943)
Reentrancy in CoinToken.constructor(address,uint8,address) (#523-541):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#527-528)
State variables written after the call(s):
- _isExcludedFromFee[owner()] = true (#535)
- _isExcludedFromFee[address(this)] = true (#536)
- _isExcludedFromFee[_marketingWallet] = true (#537)
- marketingAddress = address(_marketingWallet) (#532)
- setPresaleDate(block.timestamp) (#531)
- presaleDate = _timestamp (#555)
- stakingReleaseIntervalDays = _stakingReleaseIntervalDays (#533)
- uniswapV2Router = _uniswapV2Router (#530)
Reentrancy in CoinToken.swapAndLiquify(uint256,bool) (#901-925):
External calls:
- swapTokensForEth(half) (#913)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#864-870)
- addLiquidity(otherHalf,newBalance) (#920)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#934-941)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#920)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#934-941)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#920)
- _allowances[owner][spender] = amount (#690)
- addLiquidity(otherHalf,newBalance) (#920)
- _isExcludedFromFee[uniswapV2Pair] = true (#931)
- _isExcludedFromFee[address(uniswapV2Router)] = true (#932)
- _isExcludedFromFee[uniswapV2Pair] = false (#942)
- _isExcludedFromFee[address(uniswapV2Router)] = false (#943)
Reentrancy in CoinToken.swapETHForTokens(uint256,address) (#875-894):
External calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,receiver,block.timestamp.add(300)) (#884-889)
State variables written after the call(s):
- _isExcludedFromFee[uniswapV2Pair] = false (#890)
- _isExcludedFromFee[address(uniswapV2Router)] = false (#891)
Reentrancy in CoinToken.swapTokens(uint256) (#811-830):
External calls:
- swapAndLiquify(amountToLiquify,false) (#815)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#864-870)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#934-941)
- swapTokensForEth(buyBack) (#820)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#864-870)
External calls sending eth:
- swapAndLiquify(amountToLiquify,false) (#815)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#934-941)
State variables written after the call(s):
- swapTokensForEth(buyBack) (#820)
- _allowances[owner][spender] = amount (#690)
Reentrancy in CoinToken.swapTokens(uint256) (#811-830):
External calls:
- swapAndLiquify(amountToLiquify,false) (#815)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#864-870)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#934-941)
- swapTokensForEth(buyBack) (#820)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#864-870)
- swapTokensForUSD(address(this),rest.sub(buyBack)) (#824)
- uniswapV2Router.swapExactTokensForTokens(tokenAmount,0,path,source,(block.timestamp + 1)) (#846-852)
External calls sending eth:
- swapAndLiquify(amountToLiquify,false) (#815)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#934-941)
State variables written after the call(s):
- swapTokensForUSD(address(this),rest.sub(buyBack)) (#824)
- _allowances[owner][spender] = amount (#690)
Reentrancy in CoinToken.transferFrom(address,address,uint256) (#593-597):
External calls:
- _transfer(sender,recipient,amount) (#594)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#864-870)
- uniswapV2Router.swapExactTokensForTokens(tokenAmount,0,path,source,(block.timestamp + 1)) (#846-852)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,receiver,block.timestamp.add(300)) (#884-889)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#934-941)
- usdContract.transfer(marketingAddress,receivedUSD) (#829)
External calls sending eth:
- _transfer(sender,recipient,amount) (#594)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,receiver,block.timestamp.add(300)) (#884-889)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#934-941)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#595)
- _allowances[owner][spender] = amount (#690)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in CoinToken._transfer(address,address,uint256) (#694-744):
External calls:
- swapTokens(minimumTokensBeforeSwap) (#716)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#864-870)
- uniswapV2Router.swapExactTokensForTokens(tokenAmount,0,path,source,(block.timestamp + 1)) (#846-852)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#934-941)
- usdContract.transfer(marketingAddress,receivedUSD) (#829)
- buyBackTokens(buyBackUpperLimit) (#721)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,receiver,block.timestamp.add(300)) (#884-889)
External calls sending eth:
- swapTokens(minimumTokensBeforeSwap) (#716)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#934-941)
- buyBackTokens(buyBackUpperLimit) (#721)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,receiver,block.timestamp.add(300)) (#884-889)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#893)
- buyBackTokens(buyBackUpperLimit) (#721)
- Transfer(sender,recipient,tTransferAmount) (#970)
- _tokenTransfer(from,to,amount,takeFee) (#743)
- Transfer(sender,recipient,tTransferAmount) (#980)
- _tokenTransfer(from,to,amount,takeFee) (#743)
- Transfer(sender,recipient,tTransferAmount) (#990)
- _tokenTransfer(from,to,amount,takeFee) (#743)
- Transfer(sender,recipient,tTransferAmount) (#1001)
- _tokenTransfer(from,to,amount,takeFee) (#743)
Reentrancy in CoinToken.constructor(address,uint8,address) (#523-541):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#527-528)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_tTotal) (#540)
Reentrancy in CoinToken.swapAndLiquify(uint256,bool) (#901-925):
External calls:
- swapTokensForEth(half) (#913)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#864-870)
- addLiquidity(otherHalf,newBalance) (#920)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#934-941)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#920)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#934-941)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#691)
- addLiquidity(otherHalf,newBalance) (#920)
- SwapAndLiquify(half,newBalance,otherHalf) (#924)
Reentrancy in CoinToken.swapETHForTokens(uint256,address) (#875-894):
External calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,receiver,block.timestamp.add(300)) (#884-889)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#893)
Reentrancy in CoinToken.swapTokens(uint256) (#811-830):
External calls:
- swapAndLiquify(amountToLiquify,false) (#815)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#864-870)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#934-941)
- swapTokensForEth(buyBack) (#820)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#864-870)
External calls sending eth:
- swapAndLiquify(amountToLiquify,false) (#815)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#934-941)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#691)
- swapTokensForEth(buyBack) (#820)
- SwapTokensForETH(tokenAmount,path) (#872)
- swapTokensForEth(buyBack) (#820)
Reentrancy in CoinToken.swapTokens(uint256) (#811-830):
External calls:
- swapAndLiquify(amountToLiquify,false) (#815)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#864-870)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#934-941)
- swapTokensForEth(buyBack) (#820)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#864-870)
- swapTokensForUSD(address(this),rest.sub(buyBack)) (#824)
- uniswapV2Router.swapExactTokensForTokens(tokenAmount,0,path,source,(block.timestamp + 1)) (#846-852)
External calls sending eth:
- swapAndLiquify(amountToLiquify,false) (#815)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#934-941)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#691)
- swapTokensForUSD(address(this),rest.sub(buyBack)) (#824)
Reentrancy in CoinToken.swapTokensForEth(uint256) (#855-873):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#864-870)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#872)
Reentrancy in CoinToken.transferFrom(address,address,uint256) (#593-597):
External calls:
- _transfer(sender,recipient,amount) (#594)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#864-870)
- uniswapV2Router.swapExactTokensForTokens(tokenAmount,0,path,source,(block.timestamp + 1)) (#846-852)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,receiver,block.timestamp.add(300)) (#884-889)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#934-941)
- usdContract.transfer(marketingAddress,receivedUSD) (#829)
External calls sending eth:
- _transfer(sender,recipient,amount) (#594)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,receiver,block.timestamp.add(300)) (#884-889)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#934-941)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#691)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#595)
Apply the check-effects-interactions pattern.

Additional information: link

Ownable.unlock() (#192-197) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > _lockTime,Contract is locked until 7 days) (#194)
CoinToken._botKiller(address,address) (#745-755) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(lastTransaction[from] < (NOW - (botKillerLimitMinutes * 60)),Are you a bot) (#749)
CoinToken._validateStakeTransfer(address,address,uint256) (#767-784) uses timestamp for comparisons
Dangerous comparisons:
- timeCluster >= maxTimeStakeCluster (#777)
- require(bool,string)((balanceOf(from) - amount) >= (maxTimeStakeCluster - timeCluster) * stakeBalance[from].div(maxTimeStakeCluster),Cannot transfer staked balance) (#781)
Avoid relying on block.timestamp.

Additional information: link

Address.isContract(address) (#87-96) uses assembly
- INLINE ASM (#94)
Address._functionCallWithValue(address,bytes,uint256,string) (#124-141) uses assembly
- INLINE ASM (#133-136)
Do not use evm assembly.

Additional information: link

CoinToken._validateStakeTransfer(address,address,uint256) (#767-784) compares to a boolean constant:
-devWallets[to] == true (#769)
Remove the equality to the boolean constant.

Additional information: link

Address._functionCallWithValue(address,bytes,uint256,string) (#124-141) is never used and should be removed
Address.functionCall(address,bytes) (#107-109) is never used and should be removed
Address.functionCall(address,bytes,string) (#111-113) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#115-117) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#119-122) is never used and should be removed
Address.isContract(address) (#87-96) is never used and should be removed
Address.sendValue(address,uint256) (#98-104) is never used and should be removed
Context._msgData() (#10-13) is never used and should be removed
SafeMath.mod(uint256,uint256) (#75-77) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#79-82) is never used and should be removed
Remove unused functions.

Additional information: link

CoinToken._tTotal (#428) is set pre-construction with a non-constant function or state variable:
- 1 * 10 ** 15 * 10 ** _decimals
CoinToken._rTotal (#429) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
CoinToken._previousTaxFee (#441) is set pre-construction with a non-constant function or state variable:
- _taxFee
CoinToken._previousLiquidityFee (#444) is set pre-construction with a non-constant function or state variable:
- _liquidityFee
CoinToken.minimumTokensBeforeSwap (#448) is set pre-construction with a non-constant function or state variable:
- _tTotal.div(100000)
CoinToken._previousLiquifyFeeSell (#466) is set pre-construction with a non-constant function or state variable:
- liquifyFeeSell
CoinToken._previousLiquifyFeeBuy (#467) is set pre-construction with a non-constant function or state variable:
- liquifyFeeBuy
CoinToken._previousMarketingFee (#468) is set pre-construction with a non-constant function or state variable:
- marketingFee
CoinToken._previousBuyBackFee (#469) is set pre-construction with a non-constant function or state variable:
- buyBackFee
CoinToken.buyLimit (#484) is set pre-construction with a non-constant function or state variable:
- _tTotal.div(100)
CoinToken.sellLimit (#485) is set pre-construction with a non-constant function or state variable:
- _tTotal.div(100)
CoinToken.dailySellLimit (#486) is set pre-construction with a non-constant function or state variable:
- 2 * 10 ** 12 * 10 ** _decimals
CoinToken.maxWalletBalance (#487) is set pre-construction with a non-constant function or state variable:
- _tTotal.mul(5).div(100)
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) (#98-104):
- (success) = recipient.call{value: amount}() (#102)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#124-141):
- (success,returndata) = target.call{value: weiValue}(data) (#127)
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() (#236) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#237) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#253) is not in mixedCase
Function IUniswapV2Router01.WETH() (#274) is not in mixedCase
Parameter CoinToken.setBotKillerMinutes(uint256)._minutes (#550) is not in mixedCase
Parameter CoinToken.setPresaleDate(uint256)._timestamp (#554) is not in mixedCase
Parameter CoinToken.setStakeDuration(uint256)._days (#756) is not in mixedCase
Parameter CoinToken.unStakeTokens(address,uint256)._wallet (#759) is not in mixedCase
Parameter CoinToken.unStakeTokens(address,uint256)._amount (#759) is not in mixedCase
Function CoinToken._swapAndLiquify(uint256,bool) (#895-897) is not in mixedCase
Function CoinToken._addLiquidity(uint256,uint256) (#898-900) is not in mixedCase
Parameter CoinToken.calculateTaxFee(uint256)._amount (#1055) is not in mixedCase
Parameter CoinToken.calculateLiquidityFee(uint256)._amount (#1061) is not in mixedCase
Parameter CoinToken.setNumTokensSellToAddToLiquidity(uint256)._minimumTokensBeforeSwap (#1118) is not in mixedCase
Parameter CoinToken.setMarketingAddress(address)._marketingAddress (#1126) is not in mixedCase
Parameter CoinToken.setSwapAndLiquifyEnabled(bool)._enabled (#1130) is not in mixedCase
Parameter CoinToken.setBuyBackEnabled(bool)._enabled (#1135) is not in mixedCase
Variable CoinToken._taxFee (#440) is not in mixedCase
Variable CoinToken._liquidityFee (#443) is not in mixedCase
Variable CoinToken._previousLiquifyFeeSell (#466) is not in mixedCase
Variable CoinToken._previousLiquifyFeeBuy (#467) is not in mixedCase
Variable CoinToken._previousMarketingFee (#468) is not in mixedCase
Variable CoinToken._previousBuyBackFee (#469) is not in mixedCase
Follow the Solidity naming convention.

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 IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#279) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#280)
Variable CoinToken._transferFromExcluded(address,address,uint256).rTransferAmount (#984) is too similar to CoinToken._transferFromExcluded(address,address,uint256).tTransferAmount (#984)
Variable CoinToken._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#1026) is too similar to CoinToken._transferBothExcluded(address,address,uint256).tTransferAmount (#994)
Variable CoinToken._transferBothExcluded(address,address,uint256).rTransferAmount (#994) is too similar to CoinToken._transferFromExcluded(address,address,uint256).tTransferAmount (#984)
Variable CoinToken._transferToExcluded(address,address,uint256).rTransferAmount (#974) is too similar to CoinToken._transferToExcluded(address,address,uint256).tTransferAmount (#974)
Variable CoinToken._transferStandard(address,address,uint256).rTransferAmount (#965) is too similar to CoinToken._getTValues(uint256).tTransferAmount (#1018)
Variable CoinToken._transferToExcluded(address,address,uint256).rTransferAmount (#974) is too similar to CoinToken._transferFromExcluded(address,address,uint256).tTransferAmount (#984)
Variable CoinToken._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#1026) is too similar to CoinToken._transferStandard(address,address,uint256).tTransferAmount (#965)
Variable CoinToken._getValues(uint256).rTransferAmount (#1011) is too similar to CoinToken._transferBothExcluded(address,address,uint256).tTransferAmount (#994)
Variable CoinToken.reflectionFromToken(uint256,bool).rTransferAmount (#647) is too similar to CoinToken._transferStandard(address,address,uint256).tTransferAmount (#965)
Variable CoinToken._getValues(uint256).rTransferAmount (#1011) is too similar to CoinToken._transferStandard(address,address,uint256).tTransferAmount (#965)
Variable CoinToken._transferFromExcluded(address,address,uint256).rTransferAmount (#984) is too similar to CoinToken._getTValues(uint256).tTransferAmount (#1018)
Variable CoinToken._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#1026) is too similar to CoinToken._transferFromExcluded(address,address,uint256).tTransferAmount (#984)
Variable CoinToken._transferToExcluded(address,address,uint256).rTransferAmount (#974) is too similar to CoinToken._getTValues(uint256).tTransferAmount (#1018)
Variable CoinToken._transferBothExcluded(address,address,uint256).rTransferAmount (#994) is too similar to CoinToken._getTValues(uint256).tTransferAmount (#1018)
Variable CoinToken._transferToExcluded(address,address,uint256).rTransferAmount (#974) is too similar to CoinToken._getValues(uint256).tTransferAmount (#1010)
Variable CoinToken._getValues(uint256).rTransferAmount (#1011) is too similar to CoinToken._transferFromExcluded(address,address,uint256).tTransferAmount (#984)
Variable CoinToken._transferStandard(address,address,uint256).rTransferAmount (#965) is too similar to CoinToken._transferStandard(address,address,uint256).tTransferAmount (#965)
Variable CoinToken._transferFromExcluded(address,address,uint256).rTransferAmount (#984) is too similar to CoinToken._transferBothExcluded(address,address,uint256).tTransferAmount (#994)
Variable CoinToken._transferToExcluded(address,address,uint256).rTransferAmount (#974) is too similar to CoinToken._transferBothExcluded(address,address,uint256).tTransferAmount (#994)
Variable CoinToken._transferBothExcluded(address,address,uint256).rTransferAmount (#994) is too similar to CoinToken._transferBothExcluded(address,address,uint256).tTransferAmount (#994)
Variable CoinToken._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#1026) is too similar to CoinToken._getTValues(uint256).tTransferAmount (#1018)
Variable CoinToken._transferFromExcluded(address,address,uint256).rTransferAmount (#984) is too similar to CoinToken._transferStandard(address,address,uint256).tTransferAmount (#965)
Variable CoinToken.reflectionFromToken(uint256,bool).rTransferAmount (#647) is too similar to CoinToken._getTValues(uint256).tTransferAmount (#1018)
Variable CoinToken._getValues(uint256).rTransferAmount (#1011) is too similar to CoinToken._getTValues(uint256).tTransferAmount (#1018)
Variable CoinToken._transferToExcluded(address,address,uint256).rTransferAmount (#974) is too similar to CoinToken._transferStandard(address,address,uint256).tTransferAmount (#965)
Variable CoinToken._transferBothExcluded(address,address,uint256).rTransferAmount (#994) is too similar to CoinToken._transferStandard(address,address,uint256).tTransferAmount (#965)
Variable CoinToken.reflectionFromToken(uint256,bool).rTransferAmount (#647) is too similar to CoinToken._transferBothExcluded(address,address,uint256).tTransferAmount (#994)
Variable CoinToken.reflectionFromToken(uint256,bool).rTransferAmount (#647) is too similar to CoinToken._transferFromExcluded(address,address,uint256).tTransferAmount (#984)
Variable CoinToken._transferStandard(address,address,uint256).rTransferAmount (#965) is too similar to CoinToken._transferBothExcluded(address,address,uint256).tTransferAmount (#994)
Variable CoinToken._transferBothExcluded(address,address,uint256).rTransferAmount (#994) is too similar to CoinToken._transferToExcluded(address,address,uint256).tTransferAmount (#974)
Variable CoinToken._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#1026) is too similar to CoinToken._transferToExcluded(address,address,uint256).tTransferAmount (#974)
Variable CoinToken._transferStandard(address,address,uint256).rTransferAmount (#965) is too similar to CoinToken._transferFromExcluded(address,address,uint256).tTransferAmount (#984)
Variable CoinToken.reflectionFromToken(uint256,bool).rTransferAmount (#647) is too similar to CoinToken._transferToExcluded(address,address,uint256).tTransferAmount (#974)
Variable CoinToken._transferStandard(address,address,uint256).rTransferAmount (#965) is too similar to CoinToken._transferToExcluded(address,address,uint256).tTransferAmount (#974)
Variable CoinToken._transferBothExcluded(address,address,uint256).rTransferAmount (#994) is too similar to CoinToken._getValues(uint256).tTransferAmount (#1010)
Variable CoinToken._getValues(uint256).rTransferAmount (#1011) is too similar to CoinToken._transferToExcluded(address,address,uint256).tTransferAmount (#974)
Variable CoinToken._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#1026) is too similar to CoinToken._getValues(uint256).tTransferAmount (#1010)
Variable CoinToken.reflectionFromToken(uint256,bool).rTransferAmount (#647) is too similar to CoinToken._getValues(uint256).tTransferAmount (#1010)
Variable CoinToken._transferFromExcluded(address,address,uint256).rTransferAmount (#984) is too similar to CoinToken._transferToExcluded(address,address,uint256).tTransferAmount (#974)
Variable CoinToken._transferStandard(address,address,uint256).rTransferAmount (#965) is too similar to CoinToken._getValues(uint256).tTransferAmount (#1010)
Variable CoinToken._getValues(uint256).rTransferAmount (#1011) is too similar to CoinToken._getValues(uint256).tTransferAmount (#1010)
Variable CoinToken._transferFromExcluded(address,address,uint256).rTransferAmount (#984) is too similar to CoinToken._getValues(uint256).tTransferAmount (#1010)
Prevent variables from having similar names.

Additional information: link

CoinToken.prepareForPreSale() (#1140-1147) uses literals with too many digits:
- buyLimit = 1000000000 * 10 ** 6 * 10 ** _decimals (#1145)
CoinToken.slitherConstructorVariables() (#411-1212) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#416)
CoinToken.slitherConstructorVariables() (#411-1212) uses literals with too many digits:
- minimumTokensBeforeSwap = _tTotal.div(100000) (#448)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

CoinToken.stakeStartTime (#475) is never used in CoinToken (#411-1212)
CoinToken.dailySales (#490) is never used in CoinToken (#411-1212)
Remove unused state variables.

Additional information: link

CoinToken._decimals (#427) should be constant
CoinToken._name (#432) should be constant
CoinToken._symbol (#433) should be constant
CoinToken.maxTimeStakeCluster (#450) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#166-169)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#171-175)
getUnlockTime() should be declared external:
- Ownable.getUnlockTime() (#177-179)
getTime() should be declared external:
- Ownable.getTime() (#181-183)
lock(uint256) should be declared external:
- Ownable.lock(uint256) (#185-190)
unlock() should be declared external:
- Ownable.unlock() (#192-197)
goLive() should be declared external:
- CoinToken.goLive() (#543-549)
setBotKillerMinutes(uint256) should be declared external:
- CoinToken.setBotKillerMinutes(uint256) (#550-553)
name() should be declared external:
- CoinToken.name() (#558-560)
symbol() should be declared external:
- CoinToken.symbol() (#562-564)
decimals() should be declared external:
- CoinToken.decimals() (#566-568)
totalSupply() should be declared external:
- CoinToken.totalSupply() (#570-572)
transfer(address,uint256) should be declared external:
- CoinToken.transfer(address,uint256) (#579-582)
allowance(address,address) should be declared external:
- CoinToken.allowance(address,address) (#584-586)
approve(address,uint256) should be declared external:
- CoinToken.approve(address,uint256) (#588-591)
transferFrom(address,address,uint256) should be declared external:
- CoinToken.transferFrom(address,address,uint256) (#593-597)
increaseAllowance(address,uint256) should be declared external:
- CoinToken.increaseAllowance(address,uint256) (#599-602)
decreaseAllowance(address,uint256) should be declared external:
- CoinToken.decreaseAllowance(address,uint256) (#604-607)
isExcludedFromReward(address) should be declared external:
- CoinToken.isExcludedFromReward(address) (#609-611)
totalFees() should be declared external:
- CoinToken.totalFees() (#613-615)
minimumTokensBeforeSwapAmount() should be declared external:
- CoinToken.minimumTokensBeforeSwapAmount() (#617-619)
setMinimumTokensBeforeSwapAmount(uint256) should be declared external:
- CoinToken.setMinimumTokensBeforeSwapAmount(uint256) (#620-622)
setMaxWalletBalance(uint256) should be declared external:
- CoinToken.setMaxWalletBalance(uint256) (#624-626)
buyBackUpperLimitAmount() should be declared external:
- CoinToken.buyBackUpperLimitAmount() (#627-629)
deliver(uint256) should be declared external:
- CoinToken.deliver(uint256) (#631-638)
reflectionFromToken(uint256,bool) should be declared external:
- CoinToken.reflectionFromToken(uint256,bool) (#641-650)
excludeFromReward(address) should be declared external:
- CoinToken.excludeFromReward(address) (#658-665)
setDevWallet(address,bool) should be declared external:
- CoinToken.setDevWallet(address,bool) (#679-684)
enableLiquify(bool) should be declared external:
- CoinToken.enableLiquify(bool) (#786-788)
setLiquifyFee(uint256) should be declared external:
- CoinToken.setLiquifyFee(uint256) (#790-792)
setStakingReleaseIntervalDays(uint8) should be declared external:
- CoinToken.setStakingReleaseIntervalDays(uint8) (#793-795)
setLiquifyFeeBuy(uint256) should be declared external:
- CoinToken.setLiquifyFeeBuy(uint256) (#796-798)
setLiquifyFeeSell(uint256) should be declared external:
- CoinToken.setLiquifyFeeSell(uint256) (#799-801)
setMarketingFee(uint256) should be declared external:
- CoinToken.setMarketingFee(uint256) (#802-804)
setBuyBackFee(uint256) should be declared external:
- CoinToken.setBuyBackFee(uint256) (#805-807)
setWaleTaxFeePer1000th(uint256) should be declared external:
- CoinToken.setWaleTaxFeePer1000th(uint256) (#808-810)
isExcludedFromFee(address) should be declared external:
- CoinToken.isExcludedFromFee(address) (#1094-1096)
excludeFromFee(address) should be declared external:
- CoinToken.excludeFromFee(address) (#1098-1100)
setBuyBackEnabled(bool) should be declared external:
- CoinToken.setBuyBackEnabled(bool) (#1135-1138)
withdraw(address,uint256) should be declared external:
- CoinToken.withdraw(address,uint256) (#1166-1168)
setBuyLimit(uint256) should be declared external:
- CoinToken.setBuyLimit(uint256) (#1170-1172)
setDailySellLimit(uint256) should be declared external:
- CoinToken.setDailySellLimit(uint256) (#1177-1179)
Use the external attribute for functions never called from the contract.

Additional information: link

CoinToken.includeInReward(address) (#667-678) has costly operations inside a loop:
- _excluded.pop() (#674)
Use a local variable to hold the loop computation result.

Additional information: link

Holders:

Contract has 10% buy tax and 11% sell tax.
Taxes are high (over 10%) but contract ownership is renounced.


Average 30d PancakeSwap volume is low.


Average PancakeSwap trading volume, liqudity, number of swaps are low. Token seems to be inactive.


Token is deployed only at one blockchain


Token has only one trading pair


Unable to find PancakeSwap trading pair to compute liquidity.


Unable to find PancakeSwap trading pair to compute number of swaps.


Last post in Twitter was more than 30 days ago

No disclosed threats


Young tokens have high risks of scam / price dump / death


Young tokens have high risks of price dump / death


Young tokens have high risks of price dump / death


Young tokens have high risks of price dump / death


Young tokens have high risks of price dump / death


Token has relatively low CoinGecko rank


Token has relatively low CoinMarketCap rank

Price for AFRO

News for AFRO