Welcome to Over Rich! We are developing a cross-chain ecosystem with a multitude of decentralized applications that provide simplicity in trading crypto and NFTs at the lowest fees, offering a reliable and easy-to-use platform to access the broader crypto economy that allowing investors to save money on trading and make more money than ever when it comes to farming and staking! KYC is complete and multiple audits have been completed.
ORICH.addLiquidity(uint256,uint256) (#1685-1700) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1691-1698)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in ORICH._transfer(address,address,uint256) (#1527-1618):
External calls:
- swapTokensForEth(walletTokens) (#1565)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1656-1662)
- swapAndLiquify(swapTokens) (#1573)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1691-1698)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1656-1662)
- swapAndSendDividends(sellTokens) (#1576)
- success = IERC20(BUSD).transfer(address(dividendTracker),dividends) (#1705)
- dividendTracker.distributeBUSDDividends(dividends) (#1708)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1676-1682)
External calls sending eth:
- address(_marketingWalletAddress).transfer(marketingShare) (#1569)
- address(_buybackWalletAddress).transfer(buybackShare) (#1570)
- swapAndLiquify(swapTokens) (#1573)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1691-1698)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#1598)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#502)
- _balances[recipient] = _balances[recipient].add(amount) (#503)
- super._transfer(from,to,amount) (#1603)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#502)
- _balances[recipient] = _balances[recipient].add(amount) (#503)
- swapping = false (#1578)
Apply the check-effects-interactions pattern.
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.
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#838-854):
External calls:
- success = IERC20(BUSD).transfer(user,_withdrawableDividend) (#843)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#846)
Reentrancy in ORICH.updateDividendTracker(address) (#1335-1350):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1342)
- newDividendTracker.excludeFromDividends(address(this)) (#1343)
- newDividendTracker.excludeFromDividends(owner()) (#1344)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1345)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#1349)
Apply the check-effects-interactions pattern.
Additional information: link
ORICH._transfer(address,address,uint256).iterations (#1611) is a local variable never initialized
ORICH._transfer(address,address,uint256).lastProcessedIndex (#1611) is a local variable never initialized
ORICH._transfer(address,address,uint256).claims (#1611) 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
ORICH.claim() (#1514-1516) ignores return value by dividendTracker.processAccount(msg.sender,false) (#1515)
ORICH._transfer(address,address,uint256) (#1527-1618) ignores return value by dividendTracker.process(gas) (#1611-1616)
ORICH.addLiquidity(uint256,uint256) (#1685-1700) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1691-1698)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.constructor(string,string)._name (#812) shadows:
- ERC20._name (#324) (state variable)
DividendPayingToken.constructor(string,string)._symbol (#812) shadows:
- ERC20._symbol (#325) (state variable)
DividendPayingToken.dividendOf(address)._owner (#860) shadows:
- Ownable._owner (#723) (state variable)
DividendPayingToken.withdrawableDividendOf(address)._owner (#867) shadows:
- Ownable._owner (#723) (state variable)
DividendPayingToken.withdrawnDividendOf(address)._owner (#874) shadows:
- Ownable._owner (#723) (state variable)
DividendPayingToken.accumulativeDividendOf(address)._owner (#884) shadows:
- Ownable._owner (#723) (state variable)
Rename the local variables that shadow another component.
Additional information: link
ORICH.setSwapTokensAtAmount(uint256) (#1376-1378) should emit an event for:
- swapTokensAtAmount = amount * 10 ** 9 (#1377)
ORICH.setMaxSelltx(uint256) (#1380-1382) should emit an event for:
- maxSellTransactionAmount = _maxSellTxAmount * 10 ** 9 (#1381)
ORICH.setMaxBuytx(uint256) (#1384-1386) should emit an event for:
- maxBuyTransactionAmount = _maxBuyTxAmount * 10 ** 9 (#1385)
ORICH.setonSellFee(uint256,uint256,uint256,uint256) (#1396-1402) should emit an event for:
- onSellBUSDFee = rewardFee (#1397)
- onSellLiquidityFee = _liquidityFee (#1398)
- onSellMarketingFee = _marketingFee (#1399)
- onSellBuybackFee = _BuybackFee (#1400)
- onSellTotalFees = onSellBUSDFee.add(onSellLiquidityFee).add(onSellMarketingFee).add(onSellBuybackFee) (#1401)
ORICH.setonBuyFee(uint256,uint256,uint256,uint256) (#1404-1410) should emit an event for:
- BUSDFee = rewardFee (#1405)
- liquidityFee = _liquidityFee (#1406)
- marketingFee = _marketingFee (#1407)
- BuybackFee = _BuybackFee (#1408)
- totalFees = BUSDFee.add(liquidityFee).add(marketingFee).add(BuybackFee) (#1409)
Emit an event for critical parameter changes.
Additional information: link
ORICH.updateUniswapV2Router(address)._uniswapV2Pair (#1356-1357) lacks a zero-check on :
- uniswapV2Pair = _uniswapV2Pair (#1358)
ORICH.setMarketingWallet(address).wallet (#1388) lacks a zero-check on :
- _marketingWalletAddress = wallet (#1389)
ORICH.setBuybackWallet(address).wallet (#1392) lacks a zero-check on :
- _buybackWalletAddress = wallet (#1393)
Check that the address is not zero.
Additional information: link
DividendPayingToken._withdrawDividendOfUser(address) (#838-854) has external calls inside a loop: success = IERC20(BUSD).transfer(user,_withdrawableDividend) (#843)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'ORICH._transfer(address,address,uint256).iterations (#1611)' in ORICH._transfer(address,address,uint256) (#1527-1618) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1612)
Variable 'ORICH._transfer(address,address,uint256).lastProcessedIndex (#1611)' in ORICH._transfer(address,address,uint256) (#1527-1618) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1612)
Variable 'ORICH._transfer(address,address,uint256).claims (#1611)' in ORICH._transfer(address,address,uint256) (#1527-1618) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1612)
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 ORICH._transfer(address,address,uint256) (#1527-1618):
External calls:
- swapTokensForEth(walletTokens) (#1565)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1656-1662)
- swapAndLiquify(swapTokens) (#1573)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1691-1698)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1656-1662)
External calls sending eth:
- address(_marketingWalletAddress).transfer(marketingShare) (#1569)
- address(_buybackWalletAddress).transfer(buybackShare) (#1570)
- swapAndLiquify(swapTokens) (#1573)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1691-1698)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (#1573)
- _allowances[owner][spender] = amount (#568)
Reentrancy in ORICH._transfer(address,address,uint256) (#1527-1618):
External calls:
- swapTokensForEth(walletTokens) (#1565)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1656-1662)
- swapAndLiquify(swapTokens) (#1573)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1691-1698)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1656-1662)
- swapAndSendDividends(sellTokens) (#1576)
- success = IERC20(BUSD).transfer(address(dividendTracker),dividends) (#1705)
- dividendTracker.distributeBUSDDividends(dividends) (#1708)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1676-1682)
External calls sending eth:
- address(_marketingWalletAddress).transfer(marketingShare) (#1569)
- address(_buybackWalletAddress).transfer(buybackShare) (#1570)
- swapAndLiquify(swapTokens) (#1573)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1691-1698)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (#1576)
- _allowances[owner][spender] = amount (#568)
Reentrancy in ORICH.constructor() (#1296-1329):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1303-1304)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#1307)
- uniswapV2Router = _uniswapV2Router (#1306)
Reentrancy in ORICH.constructor() (#1296-1329):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1303-1304)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1309)
- dividendTracker.excludeFromDividends(pair) (#1426)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1312)
- dividendTracker.excludeFromDividends(address(this)) (#1313)
- dividendTracker.excludeFromDividends(owner()) (#1314)
- dividendTracker.excludeFromDividends(deadWallet) (#1315)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1316)
State variables written after the call(s):
- _mint(owner(),10000000 * (10 ** 9)) (#1328)
- _balances[account] = _balances[account].add(amount) (#522)
- excludeFromFees(owner(),true) (#1319)
- _isExcludedFromFees[account] = excluded (#1363)
- excludeFromFees(_marketingWalletAddress,true) (#1320)
- _isExcludedFromFees[account] = excluded (#1363)
- excludeFromFees(_buybackWalletAddress,true) (#1321)
- _isExcludedFromFees[account] = excluded (#1363)
- excludeFromFees(address(this),true) (#1322)
- _isExcludedFromFees[account] = excluded (#1363)
- _mint(owner(),10000000 * (10 ** 9)) (#1328)
- _totalSupply = _totalSupply.add(amount) (#521)
Reentrancy in ORICHDividendTracker.processAccount(address,bool) (#1917-1927):
External calls:
- amount = _withdrawDividendOfUser(account) (#1918)
- success = IERC20(BUSD).transfer(user,_withdrawableDividend) (#843)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#1921)
Reentrancy in ORICH.swapAndLiquify(uint256) (#1621-1642):
External calls:
- swapTokensForEth(half) (#1633)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1656-1662)
- addLiquidity(otherHalf,newBalance) (#1639)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1691-1698)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1639)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1691-1698)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1639)
- _allowances[owner][spender] = amount (#568)
Reentrancy in ORICH.updateUniswapV2Router(address) (#1352-1359):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (#1356-1357)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#1358)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in ORICH._setAutomatedMarketMakerPair(address,bool) (#1421-1430):
External calls:
- dividendTracker.excludeFromDividends(pair) (#1426)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1429)
Reentrancy in ORICH._transfer(address,address,uint256) (#1527-1618):
External calls:
- swapTokensForEth(walletTokens) (#1565)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1656-1662)
- swapAndLiquify(swapTokens) (#1573)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1691-1698)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1656-1662)
External calls sending eth:
- address(_marketingWalletAddress).transfer(marketingShare) (#1569)
- address(_buybackWalletAddress).transfer(buybackShare) (#1570)
- swapAndLiquify(swapTokens) (#1573)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1691-1698)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#569)
- swapAndLiquify(swapTokens) (#1573)
- SwapAndLiquify(half,newBalance,otherHalf) (#1641)
- swapAndLiquify(swapTokens) (#1573)
Reentrancy in ORICH._transfer(address,address,uint256) (#1527-1618):
External calls:
- swapTokensForEth(walletTokens) (#1565)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1656-1662)
- swapAndLiquify(swapTokens) (#1573)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1691-1698)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1656-1662)
- swapAndSendDividends(sellTokens) (#1576)
- success = IERC20(BUSD).transfer(address(dividendTracker),dividends) (#1705)
- dividendTracker.distributeBUSDDividends(dividends) (#1708)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1676-1682)
External calls sending eth:
- address(_marketingWalletAddress).transfer(marketingShare) (#1569)
- address(_buybackWalletAddress).transfer(buybackShare) (#1570)
- swapAndLiquify(swapTokens) (#1573)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1691-1698)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#569)
- swapAndSendDividends(sellTokens) (#1576)
- SendDividends(tokens,dividends) (#1709)
- swapAndSendDividends(sellTokens) (#1576)
- Transfer(sender,recipient,amount) (#504)
- super._transfer(from,address(this),fees) (#1598)
- Transfer(sender,recipient,amount) (#504)
- super._transfer(from,to,amount) (#1603)
Reentrancy in ORICH._transfer(address,address,uint256) (#1527-1618):
External calls:
- swapTokensForEth(walletTokens) (#1565)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1656-1662)
- swapAndLiquify(swapTokens) (#1573)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1691-1698)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1656-1662)
- swapAndSendDividends(sellTokens) (#1576)
- success = IERC20(BUSD).transfer(address(dividendTracker),dividends) (#1705)
- dividendTracker.distributeBUSDDividends(dividends) (#1708)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1676-1682)
- dividendTracker.setBalance(address(from),balanceOf(from)) (#1605)
- dividendTracker.setBalance(address(to),balanceOf(to)) (#1606)
- dividendTracker.process(gas) (#1611-1616)
External calls sending eth:
- address(_marketingWalletAddress).transfer(marketingShare) (#1569)
- address(_buybackWalletAddress).transfer(buybackShare) (#1570)
- swapAndLiquify(swapTokens) (#1573)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1691-1698)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1612)
Reentrancy in ORICH.constructor() (#1296-1329):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1303-1304)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1309)
- dividendTracker.excludeFromDividends(pair) (#1426)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1429)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1309)
Reentrancy in ORICH.constructor() (#1296-1329):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1303-1304)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1309)
- dividendTracker.excludeFromDividends(pair) (#1426)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1312)
- dividendTracker.excludeFromDividends(address(this)) (#1313)
- dividendTracker.excludeFromDividends(owner()) (#1314)
- dividendTracker.excludeFromDividends(deadWallet) (#1315)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1316)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1365)
- excludeFromFees(address(this),true) (#1322)
- ExcludeFromFees(account,excluded) (#1365)
- excludeFromFees(_buybackWalletAddress,true) (#1321)
- ExcludeFromFees(account,excluded) (#1365)
- excludeFromFees(_marketingWalletAddress,true) (#1320)
- ExcludeFromFees(account,excluded) (#1365)
- excludeFromFees(owner(),true) (#1319)
- Transfer(address(0),account,amount) (#523)
- _mint(owner(),10000000 * (10 ** 9)) (#1328)
Reentrancy in ORICHDividendTracker.processAccount(address,bool) (#1917-1927):
External calls:
- amount = _withdrawDividendOfUser(account) (#1918)
- success = IERC20(BUSD).transfer(user,_withdrawableDividend) (#843)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#1922)
Reentrancy in ORICH.processDividendTracker(uint256) (#1509-1512):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (#1510)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (#1511)
Reentrancy in ORICH.swapAndLiquify(uint256) (#1621-1642):
External calls:
- swapTokensForEth(half) (#1633)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1656-1662)
- addLiquidity(otherHalf,newBalance) (#1639)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1691-1698)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1639)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1691-1698)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#569)
- addLiquidity(otherHalf,newBalance) (#1639)
- SwapAndLiquify(half,newBalance,otherHalf) (#1641)
Reentrancy in ORICH.swapAndSendDividends(uint256) (#1702-1711):
External calls:
- swapTokensForBUSD(tokens) (#1703)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1676-1682)
- success = IERC20(BUSD).transfer(address(dividendTracker),dividends) (#1705)
- dividendTracker.distributeBUSDDividends(dividends) (#1708)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (#1709)
Reentrancy in ORICH.updateDividendTracker(address) (#1335-1350):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1342)
- newDividendTracker.excludeFromDividends(address(this)) (#1343)
- newDividendTracker.excludeFromDividends(owner()) (#1344)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1345)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#1347)
Apply the check-effects-interactions pattern.
Additional information: link
ORICHDividendTracker.getAccount(address) (#1781-1824) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#1821-1823)
ORICHDividendTracker.canAutoClaim(uint256) (#1845-1851) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#1846)
- block.timestamp.sub(lastClaimTime) >= claimWait (#1850)
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 (#24)
- ^0.6.2 (#1069)
Use one Solidity version.
Additional information: link
Context._msgData() (#141-144) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (#894-900) 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
SafeMathInt.abs(int256) (#657-660) is never used and should be removed
SafeMathInt.div(int256,int256) (#628-634) is never used and should be removed
SafeMathInt.mul(int256,int256) (#616-623) is never used and should be removed
Remove unused functions.
Additional information: link
ORICH.totalFees (#1235) is set pre-construction with a non-constant function or state variable:
- BUSDFee.add(liquidityFee).add(marketingFee).add(BuybackFee)
ORICH.onSellTotalFees (#1241) is set pre-construction with a non-constant function or state variable:
- onSellBUSDFee.add(onSellLiquidityFee).add(onSellMarketingFee).add(onSellBuybackFee)
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 (#1069) 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 (#860) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#867) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#874) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#884) is not in mixedCase
Variable DividendPayingToken.BUSD (#786) is not in mixedCase
Constant DividendPayingToken.magnitude (#792) is not in UPPER_CASE_WITH_UNDERSCORES
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#1015) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#1016) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#1033) is not in mixedCase
Function IUniswapV2Router01.WETH() (#1073) is not in mixedCase
Parameter ORICH.setMaxSelltx(uint256)._maxSellTxAmount (#1380) is not in mixedCase
Parameter ORICH.setMaxBuytx(uint256)._maxBuyTxAmount (#1384) is not in mixedCase
Parameter ORICH.setonSellFee(uint256,uint256,uint256,uint256)._liquidityFee (#1396) is not in mixedCase
Parameter ORICH.setonSellFee(uint256,uint256,uint256,uint256)._marketingFee (#1396) is not in mixedCase
Parameter ORICH.setonSellFee(uint256,uint256,uint256,uint256)._BuybackFee (#1396) is not in mixedCase
Parameter ORICH.setonBuyFee(uint256,uint256,uint256,uint256)._liquidityFee (#1404) is not in mixedCase
Parameter ORICH.setonBuyFee(uint256,uint256,uint256,uint256)._marketingFee (#1404) is not in mixedCase
Parameter ORICH.setonBuyFee(uint256,uint256,uint256,uint256)._BuybackFee (#1404) is not in mixedCase
Variable ORICH.BUSD (#1222) is not in mixedCase
Variable ORICH.BUSDFee (#1231) is not in mixedCase
Variable ORICH.BuybackFee (#1234) is not in mixedCase
Variable ORICH._marketingWalletAddress (#1243) is not in mixedCase
Variable ORICH._buybackWalletAddress (#1244) is not in mixedCase
Parameter ORICHDividendTracker.getAccount(address)._account (#1781) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#142)" inContext (#136-145)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in ORICH._transfer(address,address,uint256) (#1527-1618):
External calls:
- address(_marketingWalletAddress).transfer(marketingShare) (#1569)
- address(_buybackWalletAddress).transfer(buybackShare) (#1570)
External calls sending eth:
- address(_marketingWalletAddress).transfer(marketingShare) (#1569)
- address(_buybackWalletAddress).transfer(buybackShare) (#1570)
- swapAndLiquify(swapTokens) (#1573)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1691-1698)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (#1573)
- _allowances[owner][spender] = amount (#568)
- swapAndSendDividends(sellTokens) (#1576)
- _allowances[owner][spender] = amount (#568)
- super._transfer(from,address(this),fees) (#1598)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#502)
- _balances[recipient] = _balances[recipient].add(amount) (#503)
- super._transfer(from,to,amount) (#1603)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#502)
- _balances[recipient] = _balances[recipient].add(amount) (#503)
- swapping = false (#1578)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#569)
- swapAndLiquify(swapTokens) (#1573)
- Approval(owner,spender,amount) (#569)
- swapAndSendDividends(sellTokens) (#1576)
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1612)
- SendDividends(tokens,dividends) (#1709)
- swapAndSendDividends(sellTokens) (#1576)
- SwapAndLiquify(half,newBalance,otherHalf) (#1641)
- swapAndLiquify(swapTokens) (#1573)
- Transfer(sender,recipient,amount) (#504)
- super._transfer(from,address(this),fees) (#1598)
- Transfer(sender,recipient,amount) (#504)
- super._transfer(from,to,amount) (#1603)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#1078) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#1079)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#839) is too similar to ORICHDividendTracker.getAccount(address).withdrawableDividends (#1786)
Prevent variables from having similar names.
Additional information: link
ORICH.constructor() (#1296-1329) uses literals with too many digits:
- _mint(owner(),10000000 * (10 ** 9)) (#1328)
ORICH.updateGasForProcessing(uint256) (#1433-1438) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 800000,ORICH: gasForProcessing must be between 200,000 and 500,000) (#1434)
ORICH.slitherConstructorVariables() (#1210-1712) uses literals with too many digits:
- deadWallet = 0x000000000000000000000000000000000000dEaD (#1220)
ORICH.slitherConstructorVariables() (#1210-1712) uses literals with too many digits:
- maxSellTransactionAmount = 100000 * (10 ** 9) (#1226)
ORICH.slitherConstructorVariables() (#1210-1712) uses literals with too many digits:
- maxBuyTransactionAmount = 100000 * (10 ** 9) (#1227)
ORICH.slitherConstructorVariables() (#1210-1712) uses literals with too many digits:
- gasForProcessing = 300000 (#1248)
ORICHDividendTracker.getAccountAtIndex(uint256) (#1826-1843) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#1837)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (#611) is never used in SafeMathInt (#609-667)
Remove unused state variables.
Additional information: link
ORICH.deadWallet (#1220) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
name() should be declared external:
- ERC20.name() (#344-346)
symbol() should be declared external:
- ERC20.symbol() (#352-354)
decimals() should be declared external:
- ERC20.decimals() (#369-371)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#395-398)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#403-405)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#414-417)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#432-440)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#454-457)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#473-476)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#758-761)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#767-771)
distributeBUSDDividends(uint256) should be declared external:
- DividendPayingToken.distributeBUSDDividends(uint256) (#817-828)
withdrawDividend() should be declared external:
- DividendPayingToken.withdrawDividend() (#832-834)
- ORICHDividendTracker.withdrawDividend() (#1743-1745)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#860-862)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#874-876)
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (#947-949)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (#951-956)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (#958-960)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#964-966)
updateDividendTracker(address) should be declared external:
- ORICH.updateDividendTracker(address) (#1335-1350)
updateUniswapV2Router(address) should be declared external:
- ORICH.updateUniswapV2Router(address) (#1352-1359)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- ORICH.excludeMultipleAccountsFromFees(address[],bool) (#1368-1374)
setMaxSelltx(uint256) should be declared external:
- ORICH.setMaxSelltx(uint256) (#1380-1382)
setMaxBuytx(uint256) should be declared external:
- ORICH.setMaxBuytx(uint256) (#1384-1386)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- ORICH.setAutomatedMarketMakerPair(address,bool) (#1414-1418)
updateGasForProcessing(uint256) should be declared external:
- ORICH.updateGasForProcessing(uint256) (#1433-1438)
isExcludedFromFees(address) should be declared external:
- ORICH.isExcludedFromFees(address) (#1452-1454)
withdrawableDividendOf(address) should be declared external:
- ORICH.withdrawableDividendOf(address) (#1456-1458)
dividendTokenBalanceOf(address) should be declared external:
- ORICH.dividendTokenBalanceOf(address) (#1460-1462)
getAccountAtIndex(uint256) should be declared external:
- ORICHDividendTracker.getAccountAtIndex(uint256) (#1826-1843)
process(uint256) should be declared external:
- ORICHDividendTracker.process(uint256) (#1870-1915)
Use the external attribute for functions never called from the contract.
Additional information: link
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find whitepaper link on the website
Unable to find token on CoinGecko
Additional information: link
Unable to find token on CoinMarketCap
Additional information: link
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
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 Youtube account
Unable to find Discord account
Twitter account has few posts