Altbase aims to simplify the process for new-comers to crypto and make the process of buying altcoins simple and straightforward.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Altbase._totalSupply (#1053) shadows:
- ERC20._totalSupply (#560)
Remove the state variable shadowing.
Additional information: link
Altbase._minimumSupply (#1054) is never initialized. It is used in:
- Altbase.minimumSupply() (#1113-1115)
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
Reentrancy in Altbase._transfer(address,address,uint256) (#1124-1192):
External calls:
- swapAndLiquify(contractTokenBalance) (#1146)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1241-1248)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1227-1233)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#1146)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1241-1248)
State variables written after the call(s):
- super._transfer(from,address(this),tokensToLock) (#1180)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#733)
- _balances[recipient] = _balances[recipient].add(amount) (#734)
- _burn(from,burnAmount) (#1181)
- _balances[account] = _balances[account].sub(amount,ERC20: burn amount exceeds balance) (#773)
- super._transfer(from,_manualBurnWallet,manualBurn) (#1182)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#733)
- _balances[recipient] = _balances[recipient].add(amount) (#734)
- super._transfer(from,_devWallet,devAmount) (#1183)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#733)
- _balances[recipient] = _balances[recipient].add(amount) (#734)
- super._transfer(from,to,tokensToTransfer) (#1186)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#733)
- _balances[recipient] = _balances[recipient].add(amount) (#734)
- super._transfer(from,to,amount) (#1188)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#733)
- _balances[recipient] = _balances[recipient].add(amount) (#734)
Apply the check-effects-interactions pattern.
Additional information: link
Altbase.burnLiq(address,address,uint256) (#1320-1327) ignores return value by token.transfer(_burnPool,_amount) (#1326)
Altbase.withdrawAnyToken(address,address,uint256) (#1349-1354) ignores return value by IERC20(_ERC20address).transfer(_recipient,_amount) (#1352)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Contract ownership is not renounced (belongs to a wallet)
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.
Altbase._balanceOfLpTokens (#1057) should be constant
Altbase._burnPool (#1041) should be constant
Altbase._feesDisabled (#1067) should be constant
Altbase._minimumSupply (#1054) should be constant
Altbase._totalBurnedTokens (#1055) should be constant
Altbase._totalSupply (#1053) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
owner() should be declared external:
- Ownable.owner() (#95-97)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#114-117)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#123-127)
name() should be declared external:
- ERC20.name() (#584-586)
symbol() should be declared external:
- ERC20.symbol() (#592-594)
decimals() should be declared external:
- ERC20.decimals() (#609-611)
totalSupply() should be declared external:
- ERC20.totalSupply() (#616-618)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#635-638)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#643-645)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#654-657)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#671-675)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#689-692)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#708-711)
setFeeDecimals(uint8) should be declared external:
- Altbase.setFeeDecimals(uint8) (#1271-1276)
setLiquidityFee(uint32) should be declared external:
- Altbase.setLiquidityFee(uint32) (#1277-1282)
setDevFee(uint32) should be declared external:
- Altbase.setDevFee(uint32) (#1284-1289)
setAutoBurnFee(uint32) should be declared external:
- Altbase.setAutoBurnFee(uint32) (#1290-1295)
setManualBurnFee(uint32) should be declared external:
- Altbase.setManualBurnFee(uint32) (#1296-1301)
updateMinTokensBeforeSwap(uint128) should be declared external:
- Altbase.updateMinTokensBeforeSwap(uint128) (#1303-1309)
updateSwapAndLiquifyEnabled(bool) should be declared external:
- Altbase.updateSwapAndLiquifyEnabled(bool) (#1311-1314)
burn(uint256) should be declared external:
- Altbase.burn(uint256) (#1316-1318)
burnLiq(address,address,uint256) should be declared external:
- Altbase.burnLiq(address,address,uint256) (#1320-1327)
blacklistAddress(address,bool) should be declared external:
- Altbase.blacklistAddress(address,bool) (#1333-1335)
changePauseState(bool) should be declared external:
- Altbase.changePauseState(bool) (#1337-1339)
changeDevWallet(address) should be declared external:
- Altbase.changeDevWallet(address) (#1341-1343)
changeManualBurnWallet(address) should be declared external:
- Altbase.changeManualBurnWallet(address) (#1345-1347)
withdrawAnyToken(address,address,uint256) should be declared external:
- Altbase.withdrawAnyToken(address,address,uint256) (#1349-1354)
transferXS() should be declared external:
- Altbase.transferXS() (#1356-1358)
Use the external attribute for functions never called from the contract.
Additional information: link
Altbase.slitherConstructorVariables() (#1024-1361) uses literals with too many digits:
- _burnPool = 0x0000000000000000000000000000000000000000 (#1041)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Altbase._totalSupply (#1053) is never used in Altbase (#1024-1361)
Remove unused state variables.
Additional information: link
Altbase.addLiquidity(uint256,uint256) (#1236-1249) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1241-1248)
Ensure that all the return values of the function calls are used.
Additional information: link
ERC20.constructor(string,string).name (#575) shadows:
- ERC20.name() (#584-586) (function)
ERC20.constructor(string,string).symbol (#575) shadows:
- ERC20.symbol() (#592-594) (function)
Rename the local variables that shadow another component.
Additional information: link
Altbase.changeDevWallet(address).newAddress (#1341) lacks a zero-check on :
- _devWallet = newAddress (#1342)
Altbase.changeManualBurnWallet(address).newAddress (#1345) lacks a zero-check on :
- _manualBurnWallet = newAddress (#1346)
Check that the address is not zero.
Additional information: link
Reentrancy in Altbase._transfer(address,address,uint256) (#1124-1192):
External calls:
- swapAndLiquify(contractTokenBalance) (#1146)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1241-1248)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1227-1233)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#1146)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1241-1248)
State variables written after the call(s):
- _burn(from,burnAmount) (#1181)
- _totalSupply = _totalSupply.sub(amount) (#774)
Reentrancy in Altbase.constructor() (#1084-1107):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1094-1095)
State variables written after the call(s):
- _devWallet = 0x792E67056D7f45C147234CB81D764b55b3bc9058 (#1101)
- excludeFromFee(msg.sender,true) (#1106)
- _isExcludedFromFee[account] = value (#1330)
- _manualBurnWallet = 0xe98Edf4a1f8bD45F11AF9535c55E943EC41e5D9C (#1102)
- uniswapV2Router = _uniswapV2Router (#1104)
Reentrancy in Altbase.swapAndLiquify(uint256) (#1194-1216):
External calls:
- swapTokensForEth(half) (#1206)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1227-1233)
- addLiquidity(otherHalf,newBalance) (#1212)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1241-1248)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1212)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1241-1248)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1212)
- _allowances[owner][spender] = amount (#795)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Altbase._transfer(address,address,uint256) (#1124-1192):
External calls:
- swapAndLiquify(contractTokenBalance) (#1146)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1241-1248)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1227-1233)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#1146)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1241-1248)
Event emitted after the call(s):
- Transfer(account,address(0),amount) (#775)
- _burn(from,burnAmount) (#1181)
- Transfer(sender,recipient,amount) (#735)
- super._transfer(from,address(this),tokensToLock) (#1180)
- Transfer(sender,recipient,amount) (#735)
- super._transfer(from,to,amount) (#1188)
- Transfer(sender,recipient,amount) (#735)
- super._transfer(from,to,tokensToTransfer) (#1186)
- Transfer(sender,recipient,amount) (#735)
- super._transfer(from,_devWallet,devAmount) (#1183)
- Transfer(sender,recipient,amount) (#735)
- super._transfer(from,_manualBurnWallet,manualBurn) (#1182)
Reentrancy in Altbase.swapAndLiquify(uint256) (#1194-1216):
External calls:
- swapTokensForEth(half) (#1206)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1227-1233)
- addLiquidity(otherHalf,newBalance) (#1212)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1241-1248)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1212)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1241-1248)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#796)
- addLiquidity(otherHalf,newBalance) (#1212)
- SwapAndLiquify(half,newBalance,otherHalf) (#1215)
Apply the check-effects-interactions pattern.
Additional information: link
Address.isContract(address) (#399-408) uses assembly
- INLINE ASM (#406)
Address._functionCallWithValue(address,bytes,uint256,string) (#492-513) uses assembly
- INLINE ASM (#505-508)
Do not use evm assembly.
Additional information: link
Different versions of Solidity is used:
- Version used: ['0.6.12', '^0.6.0']
- ^0.6.0 (#29)
- 0.6.12 (#1022)
Use one Solidity version.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#492-513) is never used and should be removed
Address.functionCall(address,bytes) (#452-454) is never used and should be removed
Address.functionCall(address,bytes,string) (#462-464) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#477-479) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#487-490) is never used and should be removed
Address.isContract(address) (#399-408) is never used and should be removed
Address.sendValue(address,uint256) (#426-432) is never used and should be removed
Context._msgData() (#52-55) is never used and should be removed
ERC20._setupDecimals(uint8) (#806-808) is never used and should be removed
SafeMath.mod(uint256,uint256) (#268-270) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#284-287) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.6.0 (#29) allows old versions
Deploy with any of the following Solidity versions: 0.5.16 - 0.5.17, 0.6.11 - 0.6.12, 0.7.5 - 0.7.6 Use a simple pragma version that allows any of these versions. Consider using the latest version of Solidity for testing.
Additional information: link
Low level call in Address.sendValue(address,uint256) (#426-432):
- (success) = recipient.call{value: amount}() (#430)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#492-513):
- (success,returndata) = target.call{value: weiValue}(data) (#496)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IUniswapV2ERC20.DOMAIN_SEPARATOR() (#866) is not in mixedCase
Function IUniswapV2ERC20.PERMIT_TYPEHASH() (#867) is not in mixedCase
Function IUniswapV2Router01.WETH() (#880) is not in mixedCase
Parameter Altbase.calculateTokenFee(uint256,uint8,uint32)._amount (#1256) is not in mixedCase
Parameter Altbase.calculateTokenFee(uint256,uint8,uint32)._feeDecimals (#1257) is not in mixedCase
Parameter Altbase.calculateTokenFee(uint256,uint8,uint32)._liquidityFee (#1258) is not in mixedCase
Parameter Altbase.setFeeDecimals(uint8)._feeDecimals (#1271) is not in mixedCase
Parameter Altbase.updateMinTokensBeforeSwap(uint128)._minTokensBeforeSwap (#1303) is not in mixedCase
Parameter Altbase.updateSwapAndLiquifyEnabled(bool)._enabled (#1311) is not in mixedCase
Parameter Altbase.burn(uint256)._amount (#1316) is not in mixedCase
Parameter Altbase.burnLiq(address,address,uint256)._token (#1320) is not in mixedCase
Parameter Altbase.burnLiq(address,address,uint256)._to (#1320) is not in mixedCase
Parameter Altbase.burnLiq(address,address,uint256)._amount (#1320) is not in mixedCase
Parameter Altbase.withdrawAnyToken(address,address,uint256)._recipient (#1349) is not in mixedCase
Parameter Altbase.withdrawAnyToken(address,address,uint256)._ERC20address (#1349) is not in mixedCase
Parameter Altbase.withdrawAnyToken(address,address,uint256)._amount (#1349) is not in mixedCase
Variable Altbase._totalSupply (#1053) is not in mixedCase
Variable Altbase._uniswapV2Router (#1039) is not in mixedCase
Variable Altbase._burnPool (#1041) is not in mixedCase
Variable Altbase._devWallet (#1043) is not in mixedCase
Variable Altbase._manualBurnWallet (#1044) is not in mixedCase
Variable Altbase._isExcludedFromFee (#1046) is not in mixedCase
Variable Altbase._isBlacklisted (#1047) is not in mixedCase
Variable Altbase._minimumSupply (#1054) is not in mixedCase
Variable Altbase._totalBurnedTokens (#1055) is not in mixedCase
Variable Altbase._totalBurnedLpTokens (#1056) is not in mixedCase
Variable Altbase._balanceOfLpTokens (#1057) is not in mixedCase
Variable Altbase._autoBurn (#1059) is not in mixedCase
Variable Altbase._devFee (#1060) is not in mixedCase
Variable Altbase._manualBurn (#1061) is not in mixedCase
Variable Altbase._paused (#1066) is not in mixedCase
Variable Altbase._feesDisabled (#1067) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#53)" inContext (#47-56)
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 (#885) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#886)
Prevent variables from having similar names.
Additional information: link
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find token contract audit
Unable to find whitepaper link on the website
Unable to verify token contract address on the website
Unable to find audit link on the website
Unable to find Telegram link on the website
Unable to find Twitter link on the website
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Token has relatively low CoinGecko rank
Unable to find Youtube account