RobustSwap by the Robust Protocol team is a decentralized exchange (DEX) with yield farming and automated market maker (AMM) on the Binance Smart Chain designed to optimize profitability through scarcity and liquidity.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
RobustSwap.addLiquidity(uint256,uint256) (#1563-1578) sends eth to arbitrary user
Dangerous calls:
- _robustSwapRouter.addLiquidityETH{value: amountBNB}(address(this),amountRBS,0,0,address(this),block.timestamp) (#1568-1575)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in RobustSwap._transfer(address,address,uint256) (#1354-1398):
External calls:
- autoLiquidity() (#1367)
- _robustSwapRouter.addLiquidityETH{value: amountBNB}(address(this),amountRBS,0,0,address(this),block.timestamp) (#1568-1575)
- _robustSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amountRBS,0,path,address(this),block.timestamp) (#1549-1555)
- autoSell() (#1370)
- _robustSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amountRBS,0,path,address(this),block.timestamp) (#1549-1555)
External calls sending eth:
- autoLiquidity() (#1367)
- _robustSwapRouter.addLiquidityETH{value: amountBNB}(address(this),amountRBS,0,0,address(this),block.timestamp) (#1568-1575)
State variables written after the call(s):
- _burn(sender,amount) (#1381)
- _balances[account] = _balances[account].sub(amount,BEP20: burn amount exceeds balance) (#1070)
- super._transfer(sender,recipient,amount) (#1385)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#1034)
- _balances[recipient] = _balances[recipient].add(amount) (#1035)
- taxedTransfers(sender,recipient,amount) (#1396)
- _balances[account] = _balances[account].sub(amount,BEP20: burn amount exceeds balance) (#1070)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#1034)
- _balances[recipient] = _balances[recipient].add(amount) (#1035)
- autoSell() (#1370)
- _inAutoTrigger = true (#1296)
- _inAutoTrigger = false (#1298)
- _burn(sender,amount) (#1381)
- _totalSupply = _totalSupply.sub(amount) (#1071)
- taxedTransfers(sender,recipient,amount) (#1396)
- _totalSupply = _totalSupply.sub(amount) (#1071)
- autoSell() (#1370)
- transferTaxEnabled = false (#1306)
- transferTaxEnabled = _transferTaxEnabled (#1308)
Apply the check-effects-interactions pattern.
Additional information: link
RobustSwap.balanceWithdrawToken(IBEP20,address,uint256) (#1941-1951) ignores return value by _tokenAddress.transfer(_recipient,balanceToken) (#1950)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
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.
Combination 2: Unchecked transfer + 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.
Combination 3: Reentrancy vulnerabilities + Unchecked transfer vulnerability. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
RobustSwap.getTotalLiquidityAmount(uint256) (#1583-1601) performs a multiplication on the result of a division:
-amountRBSPerBNB = runningBalanceRBS.div(quoteOutputBNB) (#1590)
-totalLiquidityAmount = amountRBSPerBNB.mul(minAutoTriggerAmount()) (#1593)
Consider ordering multiplication before division.
Additional information: link
RobustSwap._transfer(address,address,uint256) (#1354-1398) uses tx.origin for authorization: require(bool,string)(_botGuard[tx.origin] <= block.number,RobustSwap::_transfer:Transfer only after number of botGuardBlocks) (#1393)
Do not use tx.origin for authorization.
Additional information: link
RobustSwap.addLiquidity(uint256,uint256) (#1563-1578) ignores return value by _robustSwapRouter.addLiquidityETH{value: amountBNB}(address(this),amountRBS,0,0,address(this),block.timestamp) (#1568-1575)
Ensure that all the return values of the function calls are used.
Additional information: link
BEP20._approve(address,address,uint256).owner (#1089) shadows:
- Ownable.owner() (#59-61) (function)
Rename the local variables that shadow another component.
Additional information: link
Reentrancy in RobustSwap.autoLiquidity() (#1481-1517):
External calls:
- swapRBSForBNB(totalLiquidityAmount) (#1491)
- _robustSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amountRBS,0,path,address(this),block.timestamp) (#1549-1555)
- addLiquidity(totalLiquidityAmount,liquidityBNB) (#1499)
- _robustSwapRouter.addLiquidityETH{value: amountBNB}(address(this),amountRBS,0,0,address(this),block.timestamp) (#1568-1575)
- addLiquidity(totalLiquidityAmount,minTriggerAmount) (#1515)
- _robustSwapRouter.addLiquidityETH{value: amountBNB}(address(this),amountRBS,0,0,address(this),block.timestamp) (#1568-1575)
External calls sending eth:
- addLiquidity(totalLiquidityAmount,liquidityBNB) (#1499)
- _robustSwapRouter.addLiquidityETH{value: amountBNB}(address(this),amountRBS,0,0,address(this),block.timestamp) (#1568-1575)
- addLiquidity(totalLiquidityAmount,minTriggerAmount) (#1515)
- _robustSwapRouter.addLiquidityETH{value: amountBNB}(address(this),amountRBS,0,0,address(this),block.timestamp) (#1568-1575)
State variables written after the call(s):
- addLiquidity(totalLiquidityAmount,minTriggerAmount) (#1515)
- _allowances[owner][spender] = amount (#1096)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in RobustSwap.swapRBSForBNB(uint256) (#1540-1558):
External calls:
- _robustSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amountRBS,0,path,address(this),block.timestamp) (#1549-1555)
Event emitted after the call(s):
- SwapRBSForBNB(amountRBS,path) (#1557)
Apply the check-effects-interactions pattern.
Additional information: link
Address._verifyCallResult(bool,bytes,string) (#782-799) uses assembly
- INLINE ASM (#791-794)
Do not use evm assembly.
Additional information: link
SafeMath.trySub(uint256,uint256) (#433-436) is never used and should be removed
Remove unused functions.
Additional information: link
Low level call in Address.functionDelegateCall(address,bytes,string) (#774-780):
- (success,returndata) = target.delegatecall(data) (#778)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Parameter RobustSwap.balanceWithdrawToken(IBEP20,address,uint256)._amount (#1941) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#23)" inContext (#17-26)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#174) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#175)
Prevent variables from having similar names.
Additional information: link
RobustSwap.slitherConstructorConstantVariables() (#1129-1954) uses literals with too many digits:
- BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD (#1158)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
decreaseAllowance(address,uint256) should be declared external:
- BEP20.decreaseAllowance(address,uint256) (#989-996)
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 token on CoinGecko
Additional information: link
Unable to verify token contract address on the website
Unable to find audit link on the website
Unable to find whitepaper link on the website
Unable to find Telegram link on the website
Unable to find Twitter link on the website
Young tokens have high risks of price dump / death
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Young tokens have high risks of price dump / death
Token has relatively low CoinMarketCap rank
Twitter account link seems to be invalid
Unable to find Youtube account
Unable to find Discord account