FreeUbi is a community project for Socialfi + Defi + Gamefi that aims to increase awareness and community autonomy.
FreeUbi.swapETHForTokens(uint256) (#956-969) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens.value(amount)(0,path,deadAddress,block.timestamp.add(300)) (#963-968)
FreeUbi.addLiquidity(uint256,uint256) (#972-986) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#978-985)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in FreeUbi._transfer(address,address,uint256) (#814-849):
External calls:
- swapAndLiquify(numTokensSell) (#836)
- uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#978-985)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp.add(300)) (#946-952)
- buyBackTokens(buybackLimit.div(buybackDivisor)) (#842)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens.value(amount)(0,path,deadAddress,block.timestamp.add(300)) (#963-968)
External calls sending eth:
- swapAndLiquify(numTokensSell) (#836)
- recipient.transfer(amount) (#932)
- uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#978-985)
- buyBackTokens(buybackLimit.div(buybackDivisor)) (#842)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens.value(amount)(0,path,deadAddress,block.timestamp.add(300)) (#963-968)
State variables written after the call(s):
- _tokenTransfer(from,to,value) (#846)
- _gonBalances[address(this)] = _gonBalances[address(this)].add(rFee) (#891)
- _gonBalances[sender] = _gonBalances[sender].sub(gonValue) (#872)
- _gonBalances[recipient] = _gonBalances[recipient].add(gonValue) (#873)
- _gonBalances[sender] = _gonBalances[sender].sub(gonDeduct) (#864)
- _gonBalances[recipient] = _gonBalances[recipient].add(gonValue) (#865)
- buyBackTokens(buybackLimit.div(buybackDivisor)) (#842)
- inSwapAndLiquify = true (#632)
- inSwapAndLiquify = false (#634)
Apply the check-effects-interactions pattern.
Additional information: link
FreeUbi.burnAutoLP() (#1107-1113) ignores return value by uniswapV2Pair.transfer(owner(),balance) (#1112)
FreeUbi.recoverWrongTokens(address,uint256) (#1148-1152) ignores return value by IERC20(_tokenAddress).transfer(address(msg.sender),_tokenAmount) (#1150)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Ownable._lockTime (#269) is never initialized. It is used in:
- Ownable.getUnlockTime() (#320-322)
- Ownable.unlock() (#333-338)
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
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
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.
Contract ownership is not renounced (belongs to a wallet)
FreeUbi.addLiquidity(uint256,uint256) (#972-986) ignores return value by uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#978-985)
Ensure that all the return values of the function calls are used.
Additional information: link
ERC20Detailed.constructor(string,string,uint8).name (#517) shadows:
- ERC20Detailed.name() (#526-528) (function)
ERC20Detailed.constructor(string,string,uint8).symbol (#517) shadows:
- ERC20Detailed.symbol() (#534-536) (function)
ERC20Detailed.constructor(string,string,uint8).decimals (#517) shadows:
- ERC20Detailed.decimals() (#550-552) (function)
FreeUbi._approve(address,address,uint256).owner (#1007) shadows:
- Ownable.owner() (#290-292) (function)
Rename the local variables that shadow another component.
Additional information: link
FreeUbi.setMaster(address) (#727-733) should emit an event for:
- master = _master (#732)
Emit an event for critical parameter changes.
Additional information: link
FreeUbi.updateAir(uint256) (#1154-1156) should emit an event for:
- _fubi = _tokenAmount (#1155)
Emit an event for critical parameter changes.
Additional information: link
FreeUbi.constructor(address,address)._marketingAddress (#656) lacks a zero-check on :
- marketingAddress = _marketingAddress (#661)
FreeUbi.setMaster(address)._master (#727) lacks a zero-check on :
- master = _master (#732)
FreeUbi.setLP(address)._lp (#738) lacks a zero-check on :
- lp = _lp (#743)
FreeUbi.burnBNB(address).burnAddress (#1130) lacks a zero-check on :
- burnAddress.transfer(address(this).balance) (#1131)
Check that the address is not zero.
Additional information: link
Reentrancy in FreeUbi.constructor(address,address) (#656-689):
External calls:
- uniswapV2PairAddress = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#665-666)
State variables written after the call(s):
- _fubi = 1 (#676)
- _gonBalances[msg.sender] = TOTAL_GONS (#679)
- _gonsPerFragment = TOTAL_GONS.div(_totalSupply) (#680)
- _isExcluded[owner()] = true (#685)
- _isExcluded[address(this)] = true (#686)
- _totalSupply = INITIAL_FRAGMENTS_SUPPLY (#678)
- initialDistributionFinished = false (#682)
- setLP(uniswapV2PairAddress) (#670)
- lp = _lp (#743)
- setLP(uniswapV2PairAddress) (#670)
- lpContract = ILP(_lp) (#744)
- uniswapV2Pair = _uniswapV2Pair (#674)
- uniswapV2Router = _uniswapV2Router (#668)
Reentrancy in FreeUbi.swapAndLiquify(uint256) (#895-922):
External calls:
- swapTokensForEth(threequarters) (#907)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp.add(300)) (#946-952)
- addLiquidity(onequarter,sharedETH) (#915)
- uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#978-985)
External calls sending eth:
- addLiquidity(onequarter,sharedETH) (#915)
- uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#978-985)
State variables written after the call(s):
- addLiquidity(onequarter,sharedETH) (#915)
- _allowedFragments[owner][spender] = value (#1011)
Reentrancy in FreeUbi.transferFrom(address,address,uint256) (#797-805):
External calls:
- _transfer(sender,recipient,amount) (#802)
- uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#978-985)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens.value(amount)(0,path,deadAddress,block.timestamp.add(300)) (#963-968)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp.add(300)) (#946-952)
External calls sending eth:
- _transfer(sender,recipient,amount) (#802)
- recipient.transfer(amount) (#932)
- uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#978-985)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens.value(amount)(0,path,deadAddress,block.timestamp.add(300)) (#963-968)
State variables written after the call(s):
- _approve(sender,msg.sender,_allowedFragments[sender][msg.sender].sub(amount)) (#803)
- _allowedFragments[owner][spender] = value (#1011)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in FreeUbi._transfer(address,address,uint256) (#814-849):
External calls:
- swapAndLiquify(numTokensSell) (#836)
- uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#978-985)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp.add(300)) (#946-952)
- buyBackTokens(buybackLimit.div(buybackDivisor)) (#842)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens.value(amount)(0,path,deadAddress,block.timestamp.add(300)) (#963-968)
External calls sending eth:
- swapAndLiquify(numTokensSell) (#836)
- recipient.transfer(amount) (#932)
- uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#978-985)
- buyBackTokens(buybackLimit.div(buybackDivisor)) (#842)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens.value(amount)(0,path,deadAddress,block.timestamp.add(300)) (#963-968)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#874)
- _tokenTransfer(from,to,value) (#846)
- Transfer(sender,recipient,amount) (#867)
- _tokenTransfer(from,to,value) (#846)
Reentrancy in FreeUbi.constructor(address,address) (#656-689):
External calls:
- uniswapV2PairAddress = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#665-666)
Event emitted after the call(s):
- Transfer(address(0x0),msg.sender,_totalSupply) (#688)
Reentrancy in FreeUbi.rebase(uint256,int256) (#696-721):
External calls:
- lpContract.sync() (#717)
Event emitted after the call(s):
- LogRebase(epoch,_totalSupply) (#719)
Reentrancy in FreeUbi.swapAndLiquify(uint256) (#895-922):
External calls:
- swapTokensForEth(threequarters) (#907)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp.add(300)) (#946-952)
- addLiquidity(onequarter,sharedETH) (#915)
- uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#978-985)
External calls sending eth:
- addLiquidity(onequarter,sharedETH) (#915)
- uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#978-985)
Event emitted after the call(s):
- Approval(owner,spender,value) (#1012)
- addLiquidity(onequarter,sharedETH) (#915)
Reentrancy in FreeUbi.swapAndLiquify(uint256) (#895-922):
External calls:
- swapTokensForEth(threequarters) (#907)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp.add(300)) (#946-952)
- addLiquidity(onequarter,sharedETH) (#915)
- uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#978-985)
External calls sending eth:
- addLiquidity(onequarter,sharedETH) (#915)
- uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#978-985)
- transferToAddressETH(marketingAddress,sharedETH) (#918)
- recipient.transfer(amount) (#932)
Event emitted after the call(s):
- SwapAndLiquify(threequarters,sharedETH,onequarter) (#920)
Reentrancy in FreeUbi.transferFrom(address,address,uint256) (#797-805):
External calls:
- _transfer(sender,recipient,amount) (#802)
- uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#978-985)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens.value(amount)(0,path,deadAddress,block.timestamp.add(300)) (#963-968)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp.add(300)) (#946-952)
External calls sending eth:
- _transfer(sender,recipient,amount) (#802)
- recipient.transfer(amount) (#932)
- uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#978-985)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens.value(amount)(0,path,deadAddress,block.timestamp.add(300)) (#963-968)
Event emitted after the call(s):
- Approval(owner,spender,value) (#1012)
- _approve(sender,msg.sender,_allowedFragments[sender][msg.sender].sub(amount)) (#803)
Apply the check-effects-interactions pattern.
Additional information: link
Ownable.unlock() (#333-338) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(now > _lockTime,Contract is locked until 7 days) (#335)
Avoid relying on block.timestamp.
Additional information: link
SafeMath.mod(uint256,uint256) (#419-422) is never used and should be removed
SafeMathInt.abs(int256) (#495-502) is never used and should be removed
SafeMathInt.add(int256,int256) (#482-490) is never used and should be removed
SafeMathInt.div(int256,int256) (#454-464) is never used and should be removed
SafeMathInt.mul(int256,int256) (#438-449) is never used and should be removed
SafeMathInt.sub(int256,int256) (#469-477) is never used and should be removed
Remove unused functions.
Additional information: link
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#87) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#88) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#105) is not in mixedCase
Function IUniswapV2Router02.WETH() (#128) is not in mixedCase
Parameter FreeUbi.setMaster(address)._master (#727) is not in mixedCase
Parameter FreeUbi.setLP(address)._lp (#738) is not in mixedCase
Parameter FreeUbi.setSwapAndLiquifyEnabled(bool)._enabled (#758) is not in mixedCase
Parameter FreeUbi.calculateFee(uint256)._amount (#885) is not in mixedCase
Parameter FreeUbi.enableTransfer(address)._addr (#1086) is not in mixedCase
Parameter FreeUbi.excludeAddress(address)._addr (#1093) is not in mixedCase
Parameter FreeUbi.excludeAddressRemove(address)._addr (#1100) is not in mixedCase
Parameter FreeUbi.setBuyBackEnabled(bool)._enabled (#1117) is not in mixedCase
Parameter FreeUbi.setBuyBackLimit(uint256)._buybackLimit (#1121) is not in mixedCase
Parameter FreeUbi.setBuyBackDivisor(uint256)._buybackDivisor (#1124) is not in mixedCase
Parameter FreeUbi.setnumTokensSellDivisor(uint256)._numTokensSellDivisor (#1127) is not in mixedCase
Parameter FreeUbi.recoverWrongTokens(address,uint256)._tokenAddress (#1148) is not in mixedCase
Parameter FreeUbi.recoverWrongTokens(address,uint256)._tokenAmount (#1148) is not in mixedCase
Parameter FreeUbi.updateAir(uint256)._tokenAmount (#1154) is not in mixedCase
Variable FreeUbi._gonsPerFragment (#649) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Reentrancy in FreeUbi._transfer(address,address,uint256) (#814-849):
External calls:
- swapAndLiquify(numTokensSell) (#836)
- recipient.transfer(amount) (#932)
External calls sending eth:
- swapAndLiquify(numTokensSell) (#836)
- recipient.transfer(amount) (#932)
- uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#978-985)
- buyBackTokens(buybackLimit.div(buybackDivisor)) (#842)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens.value(amount)(0,path,deadAddress,block.timestamp.add(300)) (#963-968)
State variables written after the call(s):
- _tokenTransfer(from,to,value) (#846)
- _gonBalances[address(this)] = _gonBalances[address(this)].add(rFee) (#891)
- _gonBalances[sender] = _gonBalances[sender].sub(gonValue) (#872)
- _gonBalances[recipient] = _gonBalances[recipient].add(gonValue) (#873)
- _gonBalances[sender] = _gonBalances[sender].sub(gonDeduct) (#864)
- _gonBalances[recipient] = _gonBalances[recipient].add(gonValue) (#865)
- buyBackTokens(buybackLimit.div(buybackDivisor)) (#842)
- inSwapAndLiquify = true (#632)
- inSwapAndLiquify = false (#634)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#874)
- _tokenTransfer(from,to,value) (#846)
- Transfer(sender,recipient,amount) (#867)
- _tokenTransfer(from,to,value) (#846)
Reentrancy in FreeUbi.swapAndLiquify(uint256) (#895-922):
External calls:
- transferToAddressETH(marketingAddress,sharedETH) (#918)
- recipient.transfer(amount) (#932)
External calls sending eth:
- addLiquidity(onequarter,sharedETH) (#915)
- uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#978-985)
- transferToAddressETH(marketingAddress,sharedETH) (#918)
- recipient.transfer(amount) (#932)
Event emitted after the call(s):
- SwapAndLiquify(threequarters,sharedETH,onequarter) (#920)
Reentrancy in FreeUbi.transferFrom(address,address,uint256) (#797-805):
External calls:
- _transfer(sender,recipient,amount) (#802)
- recipient.transfer(amount) (#932)
External calls sending eth:
- _transfer(sender,recipient,amount) (#802)
- recipient.transfer(amount) (#932)
- uniswapV2Router.addLiquidityETH.value(ethAmount)(address(this),tokenAmount,0,0,address(this),block.timestamp.add(300)) (#978-985)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens.value(amount)(0,path,deadAddress,block.timestamp.add(300)) (#963-968)
State variables written after the call(s):
- _approve(sender,msg.sender,_allowedFragments[sender][msg.sender].sub(amount)) (#803)
- _allowedFragments[owner][spender] = value (#1011)
Event emitted after the call(s):
- Approval(owner,spender,value) (#1012)
- _approve(sender,msg.sender,_allowedFragments[sender][msg.sender].sub(amount)) (#803)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router02.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#133) is too similar to IUniswapV2Router02.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#134)
Prevent variables from having similar names.
Additional information: link
FreeUbi.slitherConstructorVariables() (#562-1159) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#620)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (#433) is never used in SafeMathInt (#431-503)
FreeUbi.privateSaleDropCompleted (#629) is never used in FreeUbi (#562-1159)
Remove unused state variables.
Additional information: link
FreeUbi.deadAddress (#620) should be constant
FreeUbi.privateSaleDropCompleted (#629) should be constant
FreeUbi.transactionTax (#612) should be constant
Ownable._lockTime (#269) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#315-318)
getUnlockTime() should be declared external:
- Ownable.getUnlockTime() (#320-322)
lock() should be declared external:
- Ownable.lock() (#326-331)
unlock() should be declared external:
- Ownable.unlock() (#333-338)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#344-346)
name() should be declared external:
- ERC20Detailed.name() (#526-528)
symbol() should be declared external:
- ERC20Detailed.symbol() (#534-536)
decimals() should be declared external:
- ERC20Detailed.decimals() (#550-552)
setSwapAndLiquifyEnabled(bool) should be declared external:
- FreeUbi.setSwapAndLiquifyEnabled(bool) (#758-761)
increaseAllowance(address,uint256) should be declared external:
- FreeUbi.increaseAllowance(address,uint256) (#997-1004)
approve(address,uint256) should be declared external:
- FreeUbi.approve(address,uint256) (#1027-1034)
allowance(address,address) should be declared external:
- FreeUbi.allowance(address,address) (#1043-1049)
setBuyBackEnabled(bool) should be declared external:
- FreeUbi.setBuyBackEnabled(bool) (#1117-1119)
setBuyBackLimit(uint256) should be declared external:
- FreeUbi.setBuyBackLimit(uint256) (#1121-1122)
setBuyBackDivisor(uint256) should be declared external:
- FreeUbi.setBuyBackDivisor(uint256) (#1124-1125)
setnumTokensSellDivisor(uint256) should be declared external:
- FreeUbi.setnumTokensSellDivisor(uint256) (#1127-1128)
batchTransferToken(address[],uint256) should be declared external:
- FreeUbi.batchTransferToken(address[],uint256) (#1134-1139)
batchTransferTokenEmit(address[],uint256) should be declared external:
- FreeUbi.batchTransferTokenEmit(address[],uint256) (#1141-1145)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.
Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Contract has 9% buy tax and 7% sell tax.
Taxes are low but contract ownership is not renounced. Token has a high risk of becoming a honeypot.
Token is deployed only at one blockchain
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 find token on CoinMarketCap
Additional information: link
Unable to find token/project description on the website or on BscScan, CoinMarketCap
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
Token is not listed at Mobula.Finance
Additional information: link
Unable to find code repository for the project
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Last post in Twitter was more than 30 days ago
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account