Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
OTTO.addLiquidity(uint256,uint256) (#1626-1641) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1632-1639)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in OTTO._transfer(address,address,uint256) (#1479-1559):
External calls:
- swapTokensForEth(marketingTokens) (#1513)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1597-1603)
- swapAndLiquify(swapTokens) (#1518)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1632-1639)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1597-1603)
- swapAndSendDividends(sellTokens) (#1521)
- success = IERC20(MATIC).transfer(address(dividendTracker),dividends) (#1646)
- dividendTracker.distributeMATICDividends(dividends) (#1649)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1617-1623)
External calls sending eth:
- address(_marketingWalletAddress).transfer(newBalance) (#1515)
- swapAndLiquify(swapTokens) (#1518)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1632-1639)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#1541)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#481)
- _balances[recipient] = _balances[recipient].add(amount) (#482)
- super._transfer(from,to,amount) (#1544)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#481)
- _balances[recipient] = _balances[recipient].add(amount) (#482)
- swapping = false (#1523)
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.
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#817-833):
External calls:
- success = IERC20(MATIC).transfer(user,_withdrawableDividend) (#822)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#825)
Reentrancy in OTTO.updateDividendTracker(address) (#1302-1317):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1309)
- newDividendTracker.excludeFromDividends(address(this)) (#1310)
- newDividendTracker.excludeFromDividends(owner()) (#1311)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1312)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#1316)
Apply the check-effects-interactions pattern.
Additional information: link
OTTO._transfer(address,address,uint256).claims (#1552) is a local variable never initialized
OTTO._transfer(address,address,uint256).lastProcessedIndex (#1552) is a local variable never initialized
OTTO._transfer(address,address,uint256).iterations (#1552) 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
OTTO.claim() (#1462-1464) ignores return value by dividendTracker.processAccount(msg.sender,false) (#1463)
OTTO._transfer(address,address,uint256) (#1479-1559) ignores return value by dividendTracker.process(gas) (#1552-1557)
OTTO.addLiquidity(uint256,uint256) (#1626-1641) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1632-1639)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.constructor(string,string)._name (#791) shadows:
- ERC20._name (#303) (state variable)
DividendPayingToken.constructor(string,string)._symbol (#791) shadows:
- ERC20._symbol (#304) (state variable)
DividendPayingToken.dividendOf(address)._owner (#839) shadows:
- Ownable._owner (#702) (state variable)
DividendPayingToken.withdrawableDividendOf(address)._owner (#846) shadows:
- Ownable._owner (#702) (state variable)
DividendPayingToken.withdrawnDividendOf(address)._owner (#853) shadows:
- Ownable._owner (#702) (state variable)
DividendPayingToken.accumulativeDividendOf(address)._owner (#863) shadows:
- Ownable._owner (#702) (state variable)
Rename the local variables that shadow another component.
Additional information: link
OTTO.setSwapTokensAtAmount(uint256) (#1356-1358) should emit an event for:
- swapTokensAtAmount = _amount (#1357)
OTTO.setMATICRewardsFee(uint256) (#1360-1363) should emit an event for:
- MATICRewardsFee = value (#1361)
- totalFees = MATICRewardsFee.add(liquidityFee).add(marketingFee) (#1362)
OTTO.setLiquiditFee(uint256) (#1365-1368) should emit an event for:
- liquidityFee = value (#1366)
- totalFees = MATICRewardsFee.add(liquidityFee).add(marketingFee) (#1367)
OTTO.setMarketingFee(uint256) (#1370-1374) should emit an event for:
- marketingFee = _marketingFee (#1371)
- totalFees = MATICRewardsFee.add(liquidityFee).add(marketingFee) (#1372)
OTTO.setMaxTxPercent(uint256) (#1474-1476) should emit an event for:
- _maxTxAmount = maxTxAmount (#1475)
Emit an event for critical parameter changes.
Additional information: link
OTTO.updateUniswapV2Router(address)._uniswapV2Pair (#1323-1324) lacks a zero-check on :
- uniswapV2Pair = _uniswapV2Pair (#1325)
OTTO.setMarketingWallet(address).wallet (#1352) lacks a zero-check on :
- _marketingWalletAddress = wallet (#1353)
Check that the address is not zero.
Additional information: link
DividendPayingToken._withdrawDividendOfUser(address) (#817-833) has external calls inside a loop: success = IERC20(MATIC).transfer(user,_withdrawableDividend) (#822)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'OTTO._transfer(address,address,uint256).claims (#1552)' in OTTO._transfer(address,address,uint256) (#1479-1559) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1553)
Variable 'OTTO._transfer(address,address,uint256).lastProcessedIndex (#1552)' in OTTO._transfer(address,address,uint256) (#1479-1559) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1553)
Variable 'OTTO._transfer(address,address,uint256).iterations (#1552)' in OTTO._transfer(address,address,uint256) (#1479-1559) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1553)
Move all variable declarations prior to any usage of the variable, and ensure that reaching a variable declaration does not depend on some conditional if it is used unconditionally.
Additional information: link
Reentrancy in OTTO._transfer(address,address,uint256) (#1479-1559):
External calls:
- swapTokensForEth(marketingTokens) (#1513)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1597-1603)
- swapAndLiquify(swapTokens) (#1518)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1632-1639)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1597-1603)
External calls sending eth:
- address(_marketingWalletAddress).transfer(newBalance) (#1515)
- swapAndLiquify(swapTokens) (#1518)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1632-1639)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (#1518)
- _allowances[owner][spender] = amount (#547)
Reentrancy in OTTO._transfer(address,address,uint256) (#1479-1559):
External calls:
- swapTokensForEth(marketingTokens) (#1513)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1597-1603)
- swapAndLiquify(swapTokens) (#1518)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1632-1639)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1597-1603)
- swapAndSendDividends(sellTokens) (#1521)
- success = IERC20(MATIC).transfer(address(dividendTracker),dividends) (#1646)
- dividendTracker.distributeMATICDividends(dividends) (#1649)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1617-1623)
External calls sending eth:
- address(_marketingWalletAddress).transfer(newBalance) (#1515)
- swapAndLiquify(swapTokens) (#1518)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1632-1639)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (#1521)
- _allowances[owner][spender] = amount (#547)
Reentrancy in OTTO.constructor() (#1264-1296):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1271-1272)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#1275)
- uniswapV2Router = _uniswapV2Router (#1274)
Reentrancy in OTTO.constructor() (#1264-1296):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1271-1272)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1277)
- dividendTracker.excludeFromDividends(pair) (#1389)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1280)
- dividendTracker.excludeFromDividends(address(this)) (#1281)
- dividendTracker.excludeFromDividends(owner()) (#1282)
- dividendTracker.excludeFromDividends(deadWallet) (#1283)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1284)
State variables written after the call(s):
- _mint(owner(),1000000000000000 * (10 ** 18)) (#1295)
- _balances[account] = _balances[account].add(amount) (#501)
- excludeFromFees(owner(),true) (#1287)
- _isExcludedFromFees[account] = excluded (#1330)
- excludeFromFees(_marketingWalletAddress,true) (#1288)
- _isExcludedFromFees[account] = excluded (#1330)
- excludeFromFees(address(this),true) (#1289)
- _isExcludedFromFees[account] = excluded (#1330)
- _mint(owner(),1000000000000000 * (10 ** 18)) (#1295)
- _totalSupply = _totalSupply.add(amount) (#500)
Reentrancy in OTTODividendTracker.processAccount(address,bool) (#1851-1861):
External calls:
- amount = _withdrawDividendOfUser(account) (#1852)
- success = IERC20(MATIC).transfer(user,_withdrawableDividend) (#822)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#1855)
Reentrancy in OTTO.swapAndLiquify(uint256) (#1562-1583):
External calls:
- swapTokensForEth(half) (#1574)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1597-1603)
- addLiquidity(otherHalf,newBalance) (#1580)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1632-1639)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1580)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1632-1639)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1580)
- _allowances[owner][spender] = amount (#547)
Reentrancy in OTTO.updateUniswapV2Router(address) (#1319-1326):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (#1323-1324)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#1325)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in OTTO._setAutomatedMarketMakerPair(address,bool) (#1384-1393):
External calls:
- dividendTracker.excludeFromDividends(pair) (#1389)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1392)
Reentrancy in OTTO._transfer(address,address,uint256) (#1479-1559):
External calls:
- swapTokensForEth(marketingTokens) (#1513)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1597-1603)
- swapAndLiquify(swapTokens) (#1518)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1632-1639)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1597-1603)
External calls sending eth:
- address(_marketingWalletAddress).transfer(newBalance) (#1515)
- swapAndLiquify(swapTokens) (#1518)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1632-1639)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#548)
- swapAndLiquify(swapTokens) (#1518)
- SwapAndLiquify(half,newBalance,otherHalf) (#1582)
- swapAndLiquify(swapTokens) (#1518)
Reentrancy in OTTO._transfer(address,address,uint256) (#1479-1559):
External calls:
- swapTokensForEth(marketingTokens) (#1513)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1597-1603)
- swapAndLiquify(swapTokens) (#1518)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1632-1639)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1597-1603)
- swapAndSendDividends(sellTokens) (#1521)
- success = IERC20(MATIC).transfer(address(dividendTracker),dividends) (#1646)
- dividendTracker.distributeMATICDividends(dividends) (#1649)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1617-1623)
External calls sending eth:
- address(_marketingWalletAddress).transfer(newBalance) (#1515)
- swapAndLiquify(swapTokens) (#1518)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1632-1639)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#548)
- swapAndSendDividends(sellTokens) (#1521)
- SendDividends(tokens,dividends) (#1650)
- swapAndSendDividends(sellTokens) (#1521)
- Transfer(sender,recipient,amount) (#483)
- super._transfer(from,address(this),fees) (#1541)
- Transfer(sender,recipient,amount) (#483)
- super._transfer(from,to,amount) (#1544)
Reentrancy in OTTO._transfer(address,address,uint256) (#1479-1559):
External calls:
- swapTokensForEth(marketingTokens) (#1513)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1597-1603)
- swapAndLiquify(swapTokens) (#1518)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1632-1639)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1597-1603)
- swapAndSendDividends(sellTokens) (#1521)
- success = IERC20(MATIC).transfer(address(dividendTracker),dividends) (#1646)
- dividendTracker.distributeMATICDividends(dividends) (#1649)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1617-1623)
- dividendTracker.setBalance(address(from),balanceOf(from)) (#1546)
- dividendTracker.setBalance(address(to),balanceOf(to)) (#1547)
- dividendTracker.process(gas) (#1552-1557)
External calls sending eth:
- address(_marketingWalletAddress).transfer(newBalance) (#1515)
- swapAndLiquify(swapTokens) (#1518)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1632-1639)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1553)
Reentrancy in OTTO.constructor() (#1264-1296):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1271-1272)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1277)
- dividendTracker.excludeFromDividends(pair) (#1389)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1392)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1277)
Reentrancy in OTTO.constructor() (#1264-1296):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1271-1272)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1277)
- dividendTracker.excludeFromDividends(pair) (#1389)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1280)
- dividendTracker.excludeFromDividends(address(this)) (#1281)
- dividendTracker.excludeFromDividends(owner()) (#1282)
- dividendTracker.excludeFromDividends(deadWallet) (#1283)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1284)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1332)
- excludeFromFees(address(this),true) (#1289)
- ExcludeFromFees(account,excluded) (#1332)
- excludeFromFees(_marketingWalletAddress,true) (#1288)
- ExcludeFromFees(account,excluded) (#1332)
- excludeFromFees(owner(),true) (#1287)
- Transfer(address(0),account,amount) (#502)
- _mint(owner(),1000000000000000 * (10 ** 18)) (#1295)
Reentrancy in OTTODividendTracker.processAccount(address,bool) (#1851-1861):
External calls:
- amount = _withdrawDividendOfUser(account) (#1852)
- success = IERC20(MATIC).transfer(user,_withdrawableDividend) (#822)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#1856)
Reentrancy in OTTO.processDividendTracker(uint256) (#1457-1460):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (#1458)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (#1459)
Reentrancy in OTTO.swapAndLiquify(uint256) (#1562-1583):
External calls:
- swapTokensForEth(half) (#1574)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1597-1603)
- addLiquidity(otherHalf,newBalance) (#1580)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1632-1639)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1580)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1632-1639)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#548)
- addLiquidity(otherHalf,newBalance) (#1580)
- SwapAndLiquify(half,newBalance,otherHalf) (#1582)
Reentrancy in OTTO.swapAndSendDividends(uint256) (#1643-1652):
External calls:
- swapTokensForMATIC(tokens) (#1644)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1617-1623)
- success = IERC20(MATIC).transfer(address(dividendTracker),dividends) (#1646)
- dividendTracker.distributeMATICDividends(dividends) (#1649)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (#1650)
Reentrancy in OTTO.updateDividendTracker(address) (#1302-1317):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1309)
- newDividendTracker.excludeFromDividends(address(this)) (#1310)
- newDividendTracker.excludeFromDividends(owner()) (#1311)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1312)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#1314)
Apply the check-effects-interactions pattern.
Additional information: link
OTTODividendTracker.getAccount(address) (#1715-1758) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#1755-1757)
OTTODividendTracker.canAutoClaim(uint256) (#1779-1785) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#1780)
- block.timestamp.sub(lastClaimTime) >= claimWait (#1784)
Avoid relying on block.timestamp.
Additional information: link
Different versions of Solidity is used:
- Version used: ['^0.6.12', '^0.6.2']
- ^0.6.12 (#3)
- ^0.6.2 (#1048)
Use one Solidity version.
Additional information: link
Context._msgData() (#120-123) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (#873-879) is never used and should be removed
SafeMath.mod(uint256,uint256) (#247-249) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#263-266) is never used and should be removed
SafeMathInt.abs(int256) (#636-639) is never used and should be removed
SafeMathInt.div(int256,int256) (#607-613) is never used and should be removed
SafeMathInt.mul(int256,int256) (#595-602) is never used and should be removed
Remove unused functions.
Additional information: link
OTTO.totalFees (#1210) is set pre-construction with a non-constant function or state variable:
- MATICRewardsFee.add(liquidityFee).add(marketingFee)
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
Pragma version^0.6.2 (#1048) 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
Parameter DividendPayingToken.dividendOf(address)._owner (#839) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#846) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#853) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#863) is not in mixedCase
Variable DividendPayingToken.MATIC (#765) is not in mixedCase
Constant DividendPayingToken.magnitude (#771) is not in UPPER_CASE_WITH_UNDERSCORES
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#994) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#995) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#1012) is not in mixedCase
Function IUniswapV2Router01.WETH() (#1052) is not in mixedCase
Parameter OTTO.setExcludeFromAll(address)._address (#1343) is not in mixedCase
Parameter OTTO.tradingStatus(bool)._status (#1348) is not in mixedCase
Parameter OTTO.setSwapTokensAtAmount(uint256)._amount (#1356) is not in mixedCase
Parameter OTTO.setMarketingFee(uint256)._marketingFee (#1370) is not in mixedCase
Variable OTTO.MATIC (#1201) is not in mixedCase
Variable OTTO._maxTxAmount (#1203) is not in mixedCase
Variable OTTO.MATICRewardsFee (#1207) is not in mixedCase
Variable OTTO._marketingWalletAddress (#1212) is not in mixedCase
Parameter OTTODividendTracker.getAccount(address)._account (#1715) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#121)" inContext (#115-124)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in OTTO._transfer(address,address,uint256) (#1479-1559):
External calls:
- address(_marketingWalletAddress).transfer(newBalance) (#1515)
External calls sending eth:
- address(_marketingWalletAddress).transfer(newBalance) (#1515)
- swapAndLiquify(swapTokens) (#1518)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1632-1639)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (#1518)
- _allowances[owner][spender] = amount (#547)
- swapAndSendDividends(sellTokens) (#1521)
- _allowances[owner][spender] = amount (#547)
- super._transfer(from,address(this),fees) (#1541)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#481)
- _balances[recipient] = _balances[recipient].add(amount) (#482)
- super._transfer(from,to,amount) (#1544)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#481)
- _balances[recipient] = _balances[recipient].add(amount) (#482)
- swapping = false (#1523)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#548)
- swapAndSendDividends(sellTokens) (#1521)
- Approval(owner,spender,amount) (#548)
- swapAndLiquify(swapTokens) (#1518)
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1553)
- SendDividends(tokens,dividends) (#1650)
- swapAndSendDividends(sellTokens) (#1521)
- SwapAndLiquify(half,newBalance,otherHalf) (#1582)
- swapAndLiquify(swapTokens) (#1518)
- Transfer(sender,recipient,amount) (#483)
- super._transfer(from,address(this),fees) (#1541)
- Transfer(sender,recipient,amount) (#483)
- super._transfer(from,to,amount) (#1544)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#1057) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#1058)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#818) is too similar to OTTODividendTracker.getAccount(address).withdrawableDividends (#1720)
Prevent variables from having similar names.
Additional information: link
OTTO.constructor() (#1264-1296) uses literals with too many digits:
- _mint(owner(),1000000000000000 * (10 ** 18)) (#1295)
OTTO.updateGasForProcessing(uint256) (#1396-1401) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 800000,OTTO: gasForProcessing must be between 200,000 and 500,000) (#1397)
OTTO.slitherConstructorVariables() (#1189-1653) uses literals with too many digits:
- deadWallet = 0x000000000000000000000000000000000000dEaD (#1199)
OTTO.slitherConstructorVariables() (#1189-1653) uses literals with too many digits:
- _maxTxAmount = 100000000000000 * (10 ** 18) (#1203)
OTTO.slitherConstructorVariables() (#1189-1653) uses literals with too many digits:
- swapTokensAtAmount = 1000000000000 * (10 ** 18) (#1204)
OTTO.slitherConstructorVariables() (#1189-1653) uses literals with too many digits:
- gasForProcessing = 300000 (#1216)
OTTODividendTracker.constructor() (#1675-1678) uses literals with too many digits:
- minimumTokenBalanceForDividends = 200000 * (10 ** 18) (#1677)
OTTODividendTracker.getAccountAtIndex(uint256) (#1760-1777) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#1771)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (#590) is never used in SafeMathInt (#588-646)
Remove unused state variables.
Additional information: link
OTTO.deadWallet (#1199) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
name() should be declared external:
- ERC20.name() (#323-325)
symbol() should be declared external:
- ERC20.symbol() (#331-333)
decimals() should be declared external:
- ERC20.decimals() (#348-350)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#374-377)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#382-384)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#393-396)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#411-419)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#433-436)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#452-455)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#737-740)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#746-750)
distributeMATICDividends(uint256) should be declared external:
- DividendPayingToken.distributeMATICDividends(uint256) (#796-807)
withdrawDividend() should be declared external:
- DividendPayingToken.withdrawDividend() (#811-813)
- OTTODividendTracker.withdrawDividend() (#1684-1686)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#839-841)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#853-855)
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (#926-928)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (#930-935)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (#937-939)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#943-945)
updateDividendTracker(address) should be declared external:
- OTTO.updateDividendTracker(address) (#1302-1317)
updateUniswapV2Router(address) should be declared external:
- OTTO.updateUniswapV2Router(address) (#1319-1326)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- OTTO.excludeMultipleAccountsFromFees(address[],bool) (#1335-1341)
setExcludeFromAll(address) should be declared external:
- OTTO.setExcludeFromAll(address) (#1343-1346)
tradingStatus(bool) should be declared external:
- OTTO.tradingStatus(bool) (#1348-1350)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- OTTO.setAutomatedMarketMakerPair(address,bool) (#1377-1381)
updateGasForProcessing(uint256) should be declared external:
- OTTO.updateGasForProcessing(uint256) (#1396-1401)
isExcludedFromFees(address) should be declared external:
- OTTO.isExcludedFromFees(address) (#1415-1417)
withdrawableDividendOf(address) should be declared external:
- OTTO.withdrawableDividendOf(address) (#1419-1421)
dividendTokenBalanceOf(address) should be declared external:
- OTTO.dividendTokenBalanceOf(address) (#1423-1425)
getAccountAtIndex(uint256) should be declared external:
- OTTODividendTracker.getAccountAtIndex(uint256) (#1760-1777)
process(uint256) should be declared external:
- OTTODividendTracker.process(uint256) (#1804-1849)
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