RobiniaSwap is a multi-chain DeFi service using a cross-chain bridge.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
RobiniaSwap.addLiquidity(uint256,uint256) (contracts/RobiniaSwap.sol#1325-1338) sends eth to arbitrary user
Dangerous calls:
- RobiniaSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (contracts/RobiniaSwap.sol#1330-1337)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in RobiniaSwap._transfer(address,address,uint256) (contracts/RobiniaSwap.sol#1239-1270):
External calls:
- swapAndLiquify() (contracts/RobiniaSwap.sol#1249)
- RobiniaSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (contracts/RobiniaSwap.sol#1330-1337)
- RobiniaSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/RobiniaSwap.sol#1315-1321)
External calls sending eth:
- swapAndLiquify() (contracts/RobiniaSwap.sol#1249)
- RobiniaSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (contracts/RobiniaSwap.sol#1330-1337)
State variables written after the call(s):
- super._transfer(sender,recipient,amount) (contracts/RobiniaSwap.sol#1253)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (contracts/RobiniaSwap.sol#1060)
- _balances[recipient] = _balances[recipient].add(amount) (contracts/RobiniaSwap.sol#1061)
- super._transfer(sender,BURN_ADDRESS,burnAmount) (contracts/RobiniaSwap.sol#1265)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (contracts/RobiniaSwap.sol#1060)
- _balances[recipient] = _balances[recipient].add(amount) (contracts/RobiniaSwap.sol#1061)
- super._transfer(sender,address(this),liquidityAmount) (contracts/RobiniaSwap.sol#1266)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (contracts/RobiniaSwap.sol#1060)
- _balances[recipient] = _balances[recipient].add(amount) (contracts/RobiniaSwap.sol#1061)
- super._transfer(sender,recipient,sendAmount) (contracts/RobiniaSwap.sol#1267)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (contracts/RobiniaSwap.sol#1060)
- _balances[recipient] = _balances[recipient].add(amount) (contracts/RobiniaSwap.sol#1061)
Apply the check-effects-interactions pattern.
Additional information: link
RobiniaSwap._writeCheckpoint(address,uint32,uint256,uint256) (contracts/RobiniaSwap.sol#1640-1658) uses a dangerous strict equality:
- nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber (contracts/RobiniaSwap.sol#1650)
Don't use strict equality to determine if an account has enough Ether or tokens.
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.
RobiniaSwap._transfer(address,address,uint256) (contracts/RobiniaSwap.sol#1239-1270) performs a multiplication on the result of a division:
-taxAmount = amount.mul(transferTaxRate).div(10000) (contracts/RobiniaSwap.sol#1256)
-burnAmount = taxAmount.mul(burnRate).div(100) (contracts/RobiniaSwap.sol#1257)
Consider ordering multiplication before division.
Additional information: link
RobiniaSwap.addLiquidity(uint256,uint256) (contracts/RobiniaSwap.sol#1325-1338) ignores return value by RobiniaSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (contracts/RobiniaSwap.sol#1330-1337)
Ensure that all the return values of the function calls are used.
Additional information: link
RobiniaSwap.swapAndLiquify().maxTransferAmount (contracts/RobiniaSwap.sol#1275) shadows:
- RobiniaSwap.maxTransferAmount() (contracts/RobiniaSwap.sol#1343-1345) (function)
Rename the local variables that shadow another component.
Additional information: link
Reentrancy in RobiniaSwap.swapAndLiquify() (contracts/RobiniaSwap.sol#1273-1303):
External calls:
- swapTokensForEth(half) (contracts/RobiniaSwap.sol#1293)
- RobiniaSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/RobiniaSwap.sol#1315-1321)
- addLiquidity(otherHalf,newBalance) (contracts/RobiniaSwap.sol#1299)
- RobiniaSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (contracts/RobiniaSwap.sol#1330-1337)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (contracts/RobiniaSwap.sol#1299)
- RobiniaSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (contracts/RobiniaSwap.sol#1330-1337)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (contracts/RobiniaSwap.sol#1299)
- _allowances[owner][spender] = amount (contracts/RobiniaSwap.sol#1122)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in RobiniaSwap.updateRobiniaSwapRouter(address) (contracts/RobiniaSwap.sol#1417-1422):
External calls:
- RobiniaSwapPair = IUniswapV2Factory(RobiniaSwapRouter.factory()).createPair(address(this),RobiniaSwapRouter.WETH()) (contracts/RobiniaSwap.sol#1419)
Event emitted after the call(s):
- RobiniaSwapRouterUpdated(msg.sender,address(RobiniaSwapRouter),RobiniaSwapPair) (contracts/RobiniaSwap.sol#1421)
Apply the check-effects-interactions pattern.
Additional information: link
RobiniaSwap.delegateBySig(address,uint256,uint256,uint8,bytes32,bytes32) (contracts/RobiniaSwap.sol#1506-1547) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(now <= expiry,RBS::delegateBySig: signature expired) (contracts/RobiniaSwap.sol#1545)
Avoid relying on block.timestamp.
Additional information: link
RobiniaSwap.getChainId() (contracts/RobiniaSwap.sol#1665-1669) uses assembly
- INLINE ASM (contracts/RobiniaSwap.sol#1667)
Do not use evm assembly.
Additional information: link
RobiniaSwap.antiWhale(address,address,uint256) (contracts/RobiniaSwap.sol#1194-1204) compares to a boolean constant:
-_excludedFromAntiWhale[sender] == false && _excludedFromAntiWhale[recipient] == false (contracts/RobiniaSwap.sol#1197-1198)
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.2<0.8.0']
- >=0.5.0 (contracts/RobiniaSwap.sol#9)
- >=0.5.0 (contracts/RobiniaSwap.sol#29)
- >=0.6.2 (contracts/RobiniaSwap.sol#84)
- >=0.6.2 (contracts/RobiniaSwap.sol#182)
- >=0.6.2<0.8.0 (contracts/RobiniaSwap.sol#228)
- >=0.6.0<0.8.0 (contracts/RobiniaSwap.sol#418)
- >=0.4.0 (contracts/RobiniaSwap.sol#633)
- >=0.6.0<0.8.0 (contracts/RobiniaSwap.sol#732)
- >=0.6.0<0.8.0 (contracts/RobiniaSwap.sol#757)
- >=0.4.0 (contracts/RobiniaSwap.sol#825)
- 0.6.12 (contracts/RobiniaSwap.sol#1144)
Use one Solidity version.
Additional information: link
SafeMath.trySub(uint256,uint256) (contracts/RobiniaSwap.sol#450-453) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version>=0.4.0 (contracts/RobiniaSwap.sol#825) 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
Low level call in Address.functionDelegateCall(address,bytes,string) (contracts/RobiniaSwap.sol#388-394):
- (success,returndata) = target.delegatecall(data) (contracts/RobiniaSwap.sol#392)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable RobiniaSwap._delegates (contracts/RobiniaSwap.sol#1448) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (contracts/RobiniaSwap.sol#750)" inContext (contracts/RobiniaSwap.sol#744-753)
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 (contracts/RobiniaSwap.sol#93) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (contracts/RobiniaSwap.sol#94)
Prevent variables from having similar names.
Additional information: link
RobiniaSwap.slitherConstructorConstantVariables() (contracts/RobiniaSwap.sol#1151-1671) uses literals with too many digits:
- BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD (contracts/RobiniaSwap.sol#1159)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
transferOperator(address) should be declared external:
- RobiniaSwap.transferOperator(address) (contracts/RobiniaSwap.sol#1435-1439)
Use the external attribute for functions never called from the contract.
Additional information: link
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Number of Binance Smart Chain (BSC) token holders is low.
Token is deployed only at one blockchain
Token has only one trading pair
Unable to find PancakeSwap trading pair to compute liquidity.
Unable to find PancakeSwap trading pair to compute volume.
Unable to find PancakeSwap trading pair to compute number of swaps.
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Token was delisted (assigned to inactive / untracked listing) from CoinMarketCap
Additional information: link
Unable to find token contract audit
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
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
Token has no active CoinMarketCap listing / rank
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
Twitter account link seems to be invalid
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account