OCTANS aka $OCTA is a auto yield and liquidity smart contract aimed to combat the following concerns of DeFi world:
- Yield Farming
- Liquidity Mining
- Staking
$OCTA uses a reward system where holders benefits overtime, for this to succeed, $OCTA applies 8% fees on all of the transactions , either buys
or sells. In which:
- 4% is automatically rewarded to holders
- 4% automatically goes to liquidity pool (BNB/OCTA)
Liquidity was locked for a period of 4 years and tokens continue to burn, thus making less Octans in circulation.
Holders benefith overtime by holding.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in OCTA._transfer(address,address,uint256) (#947-996):
External calls:
- swapAndLiquify(contractTokenBalance) (#983)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1044-1051)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1030-1036)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#983)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1044-1051)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#995)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#903)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1086)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1077)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1078)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#816)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1097)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1088)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1098)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#818)
- _tokenTransfer(from,to,amount,takeFee) (#995)
- _rTotal = _rTotal.sub(rFee) (#858)
- _tokenTransfer(from,to,amount,takeFee) (#995)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#905)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#815)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1096)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1087)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#817)
Apply the check-effects-interactions pattern.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#337-358) uses assembly
- INLINE ASM (#350-353)
Do not use evm assembly.
Additional information: link
SafeMath.mod(uint256,uint256,string) (#209-212) is never used and should be removed
Remove unused functions.
Additional information: link
OCTA._previousLiquidityFee (#663) is set pre-construction with a non-constant function or state variable:
- _liquidityFee
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
Ownable.unlock() (#427-432) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(now > _lockTime,Contract is locked until 7 days) (#429)
Avoid relying on block.timestamp.
Additional information: link
OCTA.addLiquidity(uint256,uint256) (#1039-1052) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1044-1051)
Ensure that all the return values of the function calls are used.
Additional information: link
OCTA._approve(address,address,uint256).owner (#939) shadows:
- Ownable.owner() (#380-382) (function)
Rename the local variables that shadow another component.
Additional information: link
OCTA.setMaxTxPercent(uint256) (#840-844) should emit an event for:
- _maxTxAmount = _tTotal.mul(maxTxPercent).div(10 ** 2) (#841-843)
Emit an event for critical parameter changes.
Additional information: link
Reentrancy in OCTA.transferFrom(address,address,uint256) (#742-746):
External calls:
- _transfer(sender,recipient,amount) (#743)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1044-1051)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1030-1036)
External calls sending eth:
- _transfer(sender,recipient,amount) (#743)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1044-1051)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#744)
- _allowances[owner][spender] = amount (#943)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in OCTA.transferFrom(address,address,uint256) (#742-746):
External calls:
- _transfer(sender,recipient,amount) (#743)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1044-1051)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1030-1036)
External calls sending eth:
- _transfer(sender,recipient,amount) (#743)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1044-1051)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#944)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#744)
Apply the check-effects-interactions pattern.
Additional information: link
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#337-358):
- (success,returndata) = target.call{value: weiValue}(data) (#341)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable OCTA._maxTxAmount (#672) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#221)" inContext (#215-224)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable OCTA._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#879) is too similar to OCTA._getValues(uint256).tTransferAmount (#863)
Prevent variables from having similar names.
Additional information: link
OCTA.slitherConstructorVariables() (#637-1108) uses literals with too many digits:
- numTokensSellToAddToLiquidity = 500000 * 10 ** 6 * 10 ** 9 (#673)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
OCTA.numTokensSellToAddToLiquidity (#673) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
isExcludedFromFee(address) should be declared external:
- OCTA.isExcludedFromFee(address) (#935-937)
Use the external attribute for functions never called from the contract.
Additional information: link
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has a considerable age, but social accounts / website are missing or have few users
Token has relatively low CoinMarketCap rank
Twitter account link seems to be invalid
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account