RedBuff Token Logo

REDBUFF Token

About REDBUFF

Listings

Token 12 months
CoinMarketCap 11 months
white paper

Safe, Fair & Transparent Yield Farming Optimizer on #BinanceSmartChain

Social

Laser Scorebeta Last Audit: 30 November 2021

report
Token is either risky or in presale. For presale 30+ is a fine score.

Anti-Scam

Links


Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)

RedBuffToken.addLiquidity(uint256,uint256) (#1356-1369) sends eth to arbitrary user
Dangerous calls:
- redbuffSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1361-1368)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in RedBuffToken._transfer(address,address,uint256) (#1262-1299):
External calls:
- swapAndLiquify() (#1272)
- redbuffSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1361-1368)
- redbuffSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1346-1352)
External calls sending eth:
- swapAndLiquify() (#1272)
- redbuffSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1361-1368)
State variables written after the call(s):
- super._transfer(sender,recipient,amount) (#1276)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#928)
- _balances[recipient] = _balances[recipient].add(amount) (#929)
- super._transfer(sender,BURN_ADDRESS,burnAmount) (#1289)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#928)
- _balances[recipient] = _balances[recipient].add(amount) (#929)
- super._transfer(sender,address(this),liquidityAmount) (#1292)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#928)
- _balances[recipient] = _balances[recipient].add(amount) (#929)
- super._transfer(sender,recipient,sendAmount) (#1295)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#928)
- _balances[recipient] = _balances[recipient].add(amount) (#929)
Apply the check-effects-interactions pattern.

Additional information: link

RedBuffToken._writeCheckpoint(address,uint32,uint256,uint256) (#1694-1712) uses a dangerous strict equality:
- nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber (#1704)
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.

RedBuffToken._transfer(address,address,uint256) (#1262-1299) performs a multiplication on the result of a division:
-taxAmount = amount.mul(transferTaxRate).div(10000) (#1279)
-burnAmount = taxAmount.mul(burnRate).div(100) (#1280)
Consider ordering multiplication before division.

Additional information: link

RedBuffToken.addLiquidity(uint256,uint256) (#1356-1369) ignores return value by redbuffSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1361-1368)
Ensure that all the return values of the function calls are used.

Additional information: link

RedBuffToken.swapAndLiquify().maxTransferAmount (#1304) shadows:
- RedBuffToken.maxTransferAmount() (#1374-1376) (function)
Rename the local variables that shadow another component.

Additional information: link

Reentrancy in RedBuffToken.swapAndLiquify() (#1302-1332):
External calls:
- swapTokensForEth(half) (#1322)
- redbuffSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1346-1352)
- addLiquidity(otherHalf,newBalance) (#1328)
- redbuffSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1361-1368)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1328)
- redbuffSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1361-1368)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1328)
- _allowances[owner][spender] = amount (#993)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in RedBuffToken.swapAndLiquify() (#1302-1332):
External calls:
- swapTokensForEth(half) (#1322)
- redbuffSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1346-1352)
- addLiquidity(otherHalf,newBalance) (#1328)
- redbuffSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1361-1368)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1328)
- redbuffSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (#1361-1368)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#994)
- addLiquidity(otherHalf,newBalance) (#1328)
- SwapAndLiquify(half,newBalance,otherHalf) (#1330)
Apply the check-effects-interactions pattern.

Additional information: link

RedBuffToken.delegateBySig(address,uint256,uint256,uint8,bytes32,bytes32) (#1560-1601) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(now <= expiry,REDBUFF::delegateBySig: signature expired) (#1599)
Avoid relying on block.timestamp.

Additional information: link

RedBuffToken.getChainId() (#1719-1723) uses assembly
- INLINE ASM (#1721)
Do not use evm assembly.

Additional information: link

RedBuffToken.antiWhale(address,address,uint256) (#1212-1223) compares to a boolean constant:
-require(bool,string)(swapEnabled == true,REDBUFF::swap: Cannot transfer at the moment) (#1219)
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.6.0<0.8.0 (#3)
- >=0.6.2<0.8.0 (#216)
- >=0.6.0<0.8.0 (#405)
- >=0.6.0<0.8.0 (#429)
- >=0.4.0 (#496)
- >=0.5.0 (#593)
- >=0.5.0 (#617)
- >=0.5.0 (#670)
- >=0.4.0 (#689)
- >=0.6.2 (#1013)
- >=0.6.2 (#1110)
- 0.6.12 (#1155)
Use one Solidity version.

Additional information: link

SafeMath.trySub(uint256,uint256) (#35-38) is never used and should be removed
Remove unused functions.

Additional information: link

Pragma version>=0.6.2 (#1110) 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) (#376-382):
- (success,returndata) = target.delegatecall(data) (#380)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Variable RedBuffToken._delegates (#1502) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#423)" inContext (#417-426)
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 (#1022) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#1023)
Prevent variables from having similar names.

Additional information: link

RedBuffToken.slitherConstructorConstantVariables() (#1160-1725) uses literals with too many digits:
- BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD (#1169)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

transferOperator(address) should be declared external:
- RedBuffToken.transferOperator(address) (#1489-1493)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


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.


Twitter account link seems to be invalid


Unable to find Blog account (Reddit or Medium)


Unable to find Youtube account


Unable to find Discord account


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


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

Price for REDBUFF