TrumpSwap (TSW) aims to offer automated market maker (AMM) - a popular tool among cryptocurrency users.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
TRUMPSWAP.addLiquidity(uint256,uint256) (#1055-1068) sends eth to arbitrary user
Dangerous calls:
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in TRUMPSWAP._transfer(address,address,uint256) (#969-1000):
External calls:
- swapAndLiquify() (#979)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
- TSWRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1045-1051)
External calls sending eth:
- swapAndLiquify() (#979)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
State variables written after the call(s):
- super._transfer(sender,recipient,amount) (#983)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#579)
- _balances[recipient] = _balances[recipient].add(amount) (#580)
- super._transfer(sender,BURN_ADDRESS,burnAmount) (#995)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#579)
- _balances[recipient] = _balances[recipient].add(amount) (#580)
- super._transfer(sender,address(this),liquidityAmount) (#996)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#579)
- _balances[recipient] = _balances[recipient].add(amount) (#580)
- super._transfer(sender,recipient,sendAmount) (#997)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#579)
- _balances[recipient] = _balances[recipient].add(amount) (#580)
Reentrancy in TRUMPSWAP.buyIDO(address) (#1424-1438):
External calls:
- _transfer(address(this),_refer,_tkns / 2) (#1433)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
- TSWRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1045-1051)
- _transfer(address(this),msg.sender,_tkns) (#1436)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
- TSWRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1045-1051)
External calls sending eth:
- _transfer(address(this),_refer,_tkns / 2) (#1433)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
- _transfer(address(this),msg.sender,_tkns) (#1436)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
State variables written after the call(s):
- _transfer(address(this),msg.sender,_tkns) (#1436)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#579)
- _balances[recipient] = _balances[recipient].add(amount) (#580)
- _transfer(address(this),msg.sender,_tkns) (#1436)
- _inSwapAndLiquify = true (#937)
- _inSwapAndLiquify = false (#939)
- _transfer(address(this),msg.sender,_tkns) (#1436)
- transferTaxRate = 0 (#944)
- transferTaxRate = _transferTaxRate (#946)
Reentrancy in TRUMPSWAP.getAirdrop(address) (#1412-1422):
External calls:
- _transfer(address(this),_refer,aAmt / 2) (#1418)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
- TSWRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1045-1051)
- _transfer(address(this),msg.sender,aAmt) (#1420)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
- TSWRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1045-1051)
External calls sending eth:
- _transfer(address(this),_refer,aAmt / 2) (#1418)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
- _transfer(address(this),msg.sender,aAmt) (#1420)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
State variables written after the call(s):
- _transfer(address(this),msg.sender,aAmt) (#1420)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#579)
- _balances[recipient] = _balances[recipient].add(amount) (#580)
- _transfer(address(this),msg.sender,aAmt) (#1420)
- _inSwapAndLiquify = true (#937)
- _inSwapAndLiquify = false (#939)
- _transfer(address(this),msg.sender,aAmt) (#1420)
- transferTaxRate = 0 (#944)
- transferTaxRate = _transferTaxRate (#946)
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.
TRUMPSWAP._writeCheckpoint(address,uint32,uint256,uint256) (#1370-1388) uses a dangerous strict equality:
- nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber (#1380)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
Redundant expression "this (#21)" inContext (#15-24)
Remove redundant statements if they congest code but offer no value.
Additional information: link
TRUMPSWAP._transfer(address,address,uint256) (#969-1000) performs a multiplication on the result of a division:
-taxAmount = amount.mul(transferTaxRate).div(10000) (#986)
-burnAmount = taxAmount.mul(burnRate).div(100) (#987)
Consider ordering multiplication before division.
Additional information: link
TRUMPSWAP.addLiquidity(uint256,uint256) (#1055-1068) ignores return value by TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
Ensure that all the return values of the function calls are used.
Additional information: link
BEP20.constructor(string,string).name (#409) shadows:
- BEP20.name() (#425-427) (function)
- IBEP20.name() (#119) (function)
BEP20.constructor(string,string).symbol (#409) shadows:
- BEP20.symbol() (#433-435) (function)
- IBEP20.symbol() (#114) (function)
BEP20.allowance(address,address).owner (#474) shadows:
- Ownable.owner() (#61-63) (function)
BEP20._approve(address,address,uint256).owner (#633) shadows:
- Ownable.owner() (#61-63) (function)
TRUMPSWAP.swapAndLiquify().maxTransferAmount (#1005) shadows:
- TRUMPSWAP.maxTransferAmount() (#1073-1075) (function)
TRUMPSWAP.clear(uint256)._owner (#1465) shadows:
- Ownable._owner (#45) (state variable)
Rename the local variables that shadow another component.
Additional information: link
TRUMPSWAP.startAirdrop(uint256,uint256,uint256,uint256) (#1447-1453) should emit an event for:
- aSBlock = _aSBlock (#1448)
- aEBlock = _aEBlock (#1449)
- aAmt = _aAmt (#1450)
- aCap = _aCap (#1451)
TRUMPSWAP.startSale(uint256,uint256,uint256,uint256) (#1454-1461) should emit an event for:
- sSBlock = _sSBlock (#1455)
- sEBlock = _sEBlock (#1456)
- sPrice = _sPrice (#1458)
- sCap = _sCap (#1459)
Emit an event for critical parameter changes.
Additional information: link
TRUMPSWAP.clear(uint256)._owner (#1465) lacks a zero-check on :
- _owner.transfer(amount) (#1466)
Check that the address is not zero.
Additional information: link
Reentrancy in TRUMPSWAP.buyIDO(address) (#1424-1438):
External calls:
- _transfer(address(this),_refer,_tkns / 2) (#1433)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
- TSWRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1045-1051)
- _transfer(address(this),msg.sender,_tkns) (#1436)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
- TSWRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1045-1051)
External calls sending eth:
- _transfer(address(this),_refer,_tkns / 2) (#1433)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
- _transfer(address(this),msg.sender,_tkns) (#1436)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
State variables written after the call(s):
- _transfer(address(this),msg.sender,_tkns) (#1436)
- _allowances[owner][spender] = amount (#637)
Reentrancy in TRUMPSWAP.getAirdrop(address) (#1412-1422):
External calls:
- _transfer(address(this),_refer,aAmt / 2) (#1418)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
- TSWRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1045-1051)
- _transfer(address(this),msg.sender,aAmt) (#1420)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
- TSWRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1045-1051)
External calls sending eth:
- _transfer(address(this),_refer,aAmt / 2) (#1418)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
- _transfer(address(this),msg.sender,aAmt) (#1420)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
State variables written after the call(s):
- _transfer(address(this),msg.sender,aAmt) (#1420)
- _allowances[owner][spender] = amount (#637)
Reentrancy in TRUMPSWAP.swapAndLiquify() (#1003-1033):
External calls:
- swapTokensForEth(half) (#1023)
- TSWRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1045-1051)
- addLiquidity(otherHalf,newBalance) (#1029)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1029)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1029)
- _allowances[owner][spender] = amount (#637)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in TRUMPSWAP._transfer(address,address,uint256) (#969-1000):
External calls:
- swapAndLiquify() (#979)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
- TSWRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1045-1051)
External calls sending eth:
- swapAndLiquify() (#979)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#581)
- super._transfer(sender,recipient,sendAmount) (#997)
- Transfer(sender,recipient,amount) (#581)
- super._transfer(sender,address(this),liquidityAmount) (#996)
- Transfer(sender,recipient,amount) (#581)
- super._transfer(sender,recipient,amount) (#983)
- Transfer(sender,recipient,amount) (#581)
- super._transfer(sender,BURN_ADDRESS,burnAmount) (#995)
Reentrancy in TRUMPSWAP.buyIDO(address) (#1424-1438):
External calls:
- _transfer(address(this),_refer,_tkns / 2) (#1433)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
- TSWRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1045-1051)
- _transfer(address(this),msg.sender,_tkns) (#1436)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
- TSWRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1045-1051)
External calls sending eth:
- _transfer(address(this),_refer,_tkns / 2) (#1433)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
- _transfer(address(this),msg.sender,_tkns) (#1436)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#638)
- _transfer(address(this),msg.sender,_tkns) (#1436)
- SwapAndLiquify(half,newBalance,otherHalf) (#1031)
- _transfer(address(this),msg.sender,_tkns) (#1436)
- Transfer(sender,recipient,amount) (#581)
- _transfer(address(this),msg.sender,_tkns) (#1436)
Reentrancy in TRUMPSWAP.getAirdrop(address) (#1412-1422):
External calls:
- _transfer(address(this),_refer,aAmt / 2) (#1418)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
- TSWRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1045-1051)
- _transfer(address(this),msg.sender,aAmt) (#1420)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
- TSWRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1045-1051)
External calls sending eth:
- _transfer(address(this),_refer,aAmt / 2) (#1418)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
- _transfer(address(this),msg.sender,aAmt) (#1420)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#638)
- _transfer(address(this),msg.sender,aAmt) (#1420)
- SwapAndLiquify(half,newBalance,otherHalf) (#1031)
- _transfer(address(this),msg.sender,aAmt) (#1420)
- Transfer(sender,recipient,amount) (#581)
- _transfer(address(this),msg.sender,aAmt) (#1420)
Reentrancy in TRUMPSWAP.swapAndLiquify() (#1003-1033):
External calls:
- swapTokensForEth(half) (#1023)
- TSWRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1045-1051)
- addLiquidity(otherHalf,newBalance) (#1029)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1029)
- TSWRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1060-1067)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#638)
- addLiquidity(otherHalf,newBalance) (#1029)
- SwapAndLiquify(half,newBalance,otherHalf) (#1031)
Apply the check-effects-interactions pattern.
Additional information: link
TRUMPSWAP.delegateBySig(address,uint256,uint256,uint8,bytes32,bytes32) (#1236-1277) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(now <= expiry,TSW::delegateBySig: signature expired) (#1275)
Avoid relying on block.timestamp.
Additional information: link
TRUMPSWAP.getChainId() (#1395-1399) uses assembly
- INLINE ASM (#1397)
Do not use evm assembly.
Additional information: link
TRUMPSWAP._transfer(address,address,uint256) (#969-1000) compares to a boolean constant:
-swapAndLiquifyEnabled == true && _inSwapAndLiquify == false && address(TSWRouter) != address(0) && TSWPair != address(0) && sender != TSWPair && sender != owner() (#972-977)
TRUMPSWAP.antiWhale(address,address,uint256) (#924-934) compares to a boolean constant:
-_excludedFromAntiWhale[sender] == false && _excludedFromAntiWhale[recipient] == false (#927-928)
Remove the equality to the boolean constant.
Additional information: link
Different versions of Solidity is used:
- Version used: ['0.6.12', '>=0.4.0', '>=0.5.0', '>=0.6.0<0.8.0', '>=0.6.2', '>=0.6.4']
- >=0.6.0<0.8.0 (#3)
- >=0.6.0<0.8.0 (#30)
- >=0.6.4 (#98)
- >=0.6.0<0.8.0 (#195)
- >=0.4.0 (#357)
- >=0.6.2 (#655)
- >=0.6.2 (#753)
- >=0.5.0 (#799)
- >=0.5.0 (#854)
- 0.6.12 (#874)
Use one Solidity version.
Additional information: link
BEP20._burn(address,uint256) (#612-618) is never used and should be removed
BEP20._burnFrom(address,uint256) (#647-650) is never used and should be removed
Context._msgData() (#20-23) is never used and should be removed
SafeMath.mod(uint256,uint256) (#331-333) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#347-350) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version>=0.6.0<0.8.0 (#3) is too complex
Pragma version>=0.6.0<0.8.0 (#30) is too complex
Pragma version>=0.6.4 (#98) allows old versions
Pragma version>=0.6.0<0.8.0 (#195) is too complex
Pragma version>=0.4.0 (#357) allows old versions
Pragma version>=0.6.2 (#655) allows old versions
Pragma version>=0.6.2 (#753) allows old versions
Pragma version>=0.5.0 (#799) allows old versions
Pragma version>=0.5.0 (#854) 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
Function IUniswapV2Router01.WETH() (#659) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#816) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#817) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#834) is not in mixedCase
Parameter TRUMPSWAP.mint(address,uint256)._to (#963) is not in mixedCase
Parameter TRUMPSWAP.mint(address,uint256)._amount (#963) is not in mixedCase
Parameter TRUMPSWAP.isExcludedFromAntiWhale(address)._account (#1080) is not in mixedCase
Parameter TRUMPSWAP.updateTransferTaxRate(uint16)._transferTaxRate (#1091) is not in mixedCase
Parameter TRUMPSWAP.updateBurnRate(uint16)._burnRate (#1101) is not in mixedCase
Parameter TRUMPSWAP.updateMaxTransferAmountRate(uint16)._maxTransferAmountRate (#1111) is not in mixedCase
Parameter TRUMPSWAP.updateMinAmountToLiquify(uint256)._minAmount (#1121) is not in mixedCase
Parameter TRUMPSWAP.setExcludedFromAntiWhale(address,bool)._account (#1130) is not in mixedCase
Parameter TRUMPSWAP.setExcludedFromAntiWhale(address,bool)._excluded (#1130) is not in mixedCase
Parameter TRUMPSWAP.updateSwapAndLiquifyEnabled(bool)._enabled (#1138) is not in mixedCase
Parameter TRUMPSWAP.updateTSWRouter(address)._router (#1147) is not in mixedCase
Parameter TRUMPSWAP.getAirdrop(address)._refer (#1412) is not in mixedCase
Parameter TRUMPSWAP.buyIDO(address)._refer (#1424) is not in mixedCase
Parameter TRUMPSWAP.startAirdrop(uint256,uint256,uint256,uint256)._aSBlock (#1447) is not in mixedCase
Parameter TRUMPSWAP.startAirdrop(uint256,uint256,uint256,uint256)._aEBlock (#1447) is not in mixedCase
Parameter TRUMPSWAP.startAirdrop(uint256,uint256,uint256,uint256)._aAmt (#1447) is not in mixedCase
Parameter TRUMPSWAP.startAirdrop(uint256,uint256,uint256,uint256)._aCap (#1447) is not in mixedCase
Parameter TRUMPSWAP.startSale(uint256,uint256,uint256,uint256)._sSBlock (#1454) is not in mixedCase
Parameter TRUMPSWAP.startSale(uint256,uint256,uint256,uint256)._sEBlock (#1454) is not in mixedCase
Parameter TRUMPSWAP.startSale(uint256,uint256,uint256,uint256)._sPrice (#1454) is not in mixedCase
Parameter TRUMPSWAP.startSale(uint256,uint256,uint256,uint256)._sCap (#1454) is not in mixedCase
Variable TRUMPSWAP.TSWRouter (#900) is not in mixedCase
Variable TRUMPSWAP.TSWPair (#902) is not in mixedCase
Variable TRUMPSWAP._delegates (#1178) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#664) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#665)
Prevent variables from having similar names.
Additional information: link
TRUMPSWAP.getAirdrop(address) (#1412-1422) uses literals with too many digits:
- msg.sender != _refer && balanceOf(_refer) != 0 && _refer != 0x0000000000000000000000000000000000000000 (#1417)
TRUMPSWAP.buyIDO(address) (#1424-1438) uses literals with too many digits:
- msg.sender != _refer && balanceOf(_refer) != 0 && _refer != 0x0000000000000000000000000000000000000000 (#1431)
TRUMPSWAP.slitherConstructorConstantVariables() (#881-1469) uses literals with too many digits:
- BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD (#889)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#80-83)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#89-93)
symbol() should be declared external:
- BEP20.symbol() (#433-435)
decimals() should be declared external:
- BEP20.decimals() (#440-442)
transfer(address,uint256) should be declared external:
- BEP20.transfer(address,uint256) (#466-469)
allowance(address,address) should be declared external:
- BEP20.allowance(address,address) (#474-476)
approve(address,uint256) should be declared external:
- BEP20.approve(address,uint256) (#485-488)
transferFrom(address,address,uint256) should be declared external:
- BEP20.transferFrom(address,address,uint256) (#502-510)
increaseAllowance(address,uint256) should be declared external:
- BEP20.increaseAllowance(address,uint256) (#524-527)
decreaseAllowance(address,uint256) should be declared external:
- BEP20.decreaseAllowance(address,uint256) (#543-546)
mint(uint256) should be declared external:
- BEP20.mint(uint256) (#556-559)
mint(address,uint256) should be declared external:
- TRUMPSWAP.mint(address,uint256) (#963-966)
isExcludedFromAntiWhale(address) should be declared external:
- TRUMPSWAP.isExcludedFromAntiWhale(address) (#1080-1082)
updateTransferTaxRate(uint16) should be declared external:
- TRUMPSWAP.updateTransferTaxRate(uint16) (#1091-1095)
updateBurnRate(uint16) should be declared external:
- TRUMPSWAP.updateBurnRate(uint16) (#1101-1105)
updateMaxTransferAmountRate(uint16) should be declared external:
- TRUMPSWAP.updateMaxTransferAmountRate(uint16) (#1111-1115)
updateMinAmountToLiquify(uint256) should be declared external:
- TRUMPSWAP.updateMinAmountToLiquify(uint256) (#1121-1124)
setExcludedFromAntiWhale(address,bool) should be declared external:
- TRUMPSWAP.setExcludedFromAntiWhale(address,bool) (#1130-1132)
updateSwapAndLiquifyEnabled(bool) should be declared external:
- TRUMPSWAP.updateSwapAndLiquifyEnabled(bool) (#1138-1141)
updateTSWRouter(address) should be declared external:
- TRUMPSWAP.updateTSWRouter(address) (#1147-1152)
transferOperator(address) should be declared external:
- TRUMPSWAP.transferOperator(address) (#1165-1169)
getAirdrop(address) should be declared external:
- TRUMPSWAP.getAirdrop(address) (#1412-1422)
buyIDO(address) should be declared external:
- TRUMPSWAP.buyIDO(address) (#1424-1438)
viewAirdrop() should be declared external:
- TRUMPSWAP.viewAirdrop() (#1440-1442)
viewSale() should be declared external:
- TRUMPSWAP.viewSale() (#1443-1445)
startAirdrop(uint256,uint256,uint256,uint256) should be declared external:
- TRUMPSWAP.startAirdrop(uint256,uint256,uint256,uint256) (#1447-1453)
startSale(uint256,uint256,uint256,uint256) should be declared external:
- TRUMPSWAP.startSale(uint256,uint256,uint256,uint256) (#1454-1461)
clear(uint256) should be declared external:
- TRUMPSWAP.clear(uint256) (#1464-1467)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract ownership is semi-renounced (passed to a contract)
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Token makes many airdrops and seems to be a phishing / airdrop scam
Additional information: link
Average 30d number of PancakeSwap swaps is low.
Token is deployed only at one blockchain
Contract has 5% buy tax and 3% sell tax.
Taxes are low and contract ownership is renounced.
Unable to find token on CoinGecko
Additional information: link
Unable to find token on CoinMarketCap
Additional information: link
Unable to find token contract audit
Unable to find audit link on the website
Unable to find code repository for the project
Token is not listed at Mobula.Finance
Additional information: link
Token is marked as scam (rug pull, honeypot, phishing, etc.)
Additional information: link
Token has a considerable age, but social accounts / website are missing or have few users
Token has a considerable age, but average PancakeSwap 30d trading volume is low
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Telegram account link seems to be invalid
Twitter account link seems to be invalid
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account