BlackHoleDAO is a decentralized asset management protocol based on DAO governance. On the basis of DeFi3.0, a completely new standardized model called "BlackHole DAO Protocol (BHDP)" is constructed. The BHDP burn mechanism resolves the imbalance between high inflation and deflation in the market by referring to the traditional stock market splitting and merging principle. The DAOs credit-based loan service is launched.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in ERC20Token._transferFrom(address,address,uint256) (#479-494):
External calls:
- amountReceived = takeFee(sender,recipient,amount) (#486-488)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(_balances[address(this)],0,path,feeAddress,block.timestamp) (#551-557)
State variables written after the call(s):
- _balances[recipient] = _balances[recipient].add(amountReceived) (#490)
Apply the check-effects-interactions pattern.
Additional information: link
ERC20Token.setPairListed(address[],bool[]).i (#463) is a local variable never initialized
ERC20Token.setFeeExemptListed(address[],bool[]).i (#444) is a local variable never initialized
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
VaultOwned.setVault(address) (#324-328) should emit an event for:
- _vault = vault_ (#325)
Emit an event for critical parameter changes.
Additional information: link
ERC20Token.setFeeRate(uint256,uint256) (#453-456) should emit an event for:
- sellFee = _sellFee (#454)
- buyFee = _buyFee (#455)
Emit an event for critical parameter changes.
Additional information: link
VaultOwned.setVault(address).vault_ (#324) lacks a zero-check on :
- _vault = vault_ (#325)
ERC20Token.setFeeAddress(address)._feeAddress (#449) lacks a zero-check on :
- feeAddress = _feeAddress (#450)
ERC20Token.setSupportAddress(address)._supportAddress (#458) lacks a zero-check on :
- supportAddress = _supportAddress (#459)
Check that the address is not zero.
Additional information: link
Reentrancy in ERC20Token.constructor() (#430-441):
External calls:
- pair = IDEXFactory(router.factory()).createPair(BUSD,address(this)) (#433-436)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#438)
- _isFeeExempt[msg.sender] = true (#439)
- _isFeeExempt[address(this)] = true (#440)
- pairListed[pair] = true (#437)
Reentrancy in ERC20Token.transferFrom(address,address,uint256) (#473-477):
External calls:
- _transferFrom(sender,recipient,amount) (#474)
- ISupport(supportAddress).updateStakingTeam(from,uint256(gons)) (#498)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(_balances[address(this)],0,path,feeAddress,block.timestamp) (#551-557)
State variables written after the call(s):
- _approve(sender,msg.sender,_allowances[sender][msg.sender].sub(amount,ERC20: transfer amount exceeds allowance)) (#475)
- _allowances[owner][spender] = amount (#272)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in ERC20Token._transferFrom(address,address,uint256) (#479-494):
External calls:
- updateSupportAmount(sender,_balances[sender]) (#491)
- ISupport(supportAddress).updateStakingTeam(from,uint256(gons)) (#498)
- updateSupportAmount(recipient,_balances[recipient]) (#492)
- ISupport(supportAddress).updateStakingTeam(from,uint256(gons)) (#498)
- amountReceived = takeFee(sender,recipient,amount) (#486-488)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(_balances[address(this)],0,path,feeAddress,block.timestamp) (#551-557)
Event emitted after the call(s):
- Transfer(sender,recipient,amountReceived) (#493)
Reentrancy in ERC20Token.transferFrom(address,address,uint256) (#473-477):
External calls:
- _transferFrom(sender,recipient,amount) (#474)
- ISupport(supportAddress).updateStakingTeam(from,uint256(gons)) (#498)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(_balances[address(this)],0,path,feeAddress,block.timestamp) (#551-557)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#273)
- _approve(sender,msg.sender,_allowances[sender][msg.sender].sub(amount,ERC20: transfer amount exceeds allowance)) (#475)
Apply the check-effects-interactions pattern.
Additional information: link
ERC20._transfer(address,address,uint256) (#239-248) is never used and should be removed
SafeMath.average(uint256,uint256) (#153-156) is never used and should be removed
SafeMath.bondingCurve(uint256,uint256) (#162-164) is never used and should be removed
SafeMath.mod(uint256,uint256) (#119-121) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#123-126) is never used and should be removed
SafeMath.percentageAmount(uint256,uint8) (#141-143) is never used and should be removed
SafeMath.percentageOfTotal(uint256,uint256) (#149-151) is never used and should be removed
SafeMath.quadraticPricing(uint256,uint256) (#158-160) is never used and should be removed
SafeMath.sqrrt(uint256) (#128-139) is never used and should be removed
SafeMath.substractPercentage(uint256,uint8) (#145-147) is never used and should be removed
Remove unused functions.
Additional information: link
Variable ERC20._balances (#175) is not in mixedCase
Variable ERC20._allowances (#178) is not in mixedCase
Variable ERC20._totalSupply (#181) is not in mixedCase
Variable ERC20._name (#184) is not in mixedCase
Variable ERC20._symbol (#187) is not in mixedCase
Variable ERC20._decimals (#190) is not in mixedCase
Variable Ownable._owner (#290) is not in mixedCase
Variable VaultOwned._vault (#322) is not in mixedCase
Function IDEXRouter.WETH() (#343) is not in mixedCase
Parameter ERC20Token.setFeeExemptListed(address[],bool[])._feeExemptListed (#443) is not in mixedCase
Parameter ERC20Token.setFeeExemptListed(address[],bool[])._isListed (#443) is not in mixedCase
Parameter ERC20Token.setFeeAddress(address)._feeAddress (#449) is not in mixedCase
Parameter ERC20Token.setFeeRate(uint256,uint256)._sellFee (#453) is not in mixedCase
Parameter ERC20Token.setFeeRate(uint256,uint256)._buyFee (#453) is not in mixedCase
Parameter ERC20Token.setSupportAddress(address)._supportAddress (#458) is not in mixedCase
Parameter ERC20Token.setPairListed(address[],bool[])._pairListed (#462) is not in mixedCase
Parameter ERC20Token.setPairListed(address[],bool[])._isListed (#462) is not in mixedCase
Function ERC20Token._burnFrom(address,uint256) (#514-523) is not in mixedCase
Variable ERC20Token.BUSD (#420) is not in mixedCase
Variable ERC20Token._isFeeExempt (#426) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#348) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#349)
Prevent variables from having similar names.
Additional information: link
ERC20.ERC20TOKEN_ERC1820_INTERFACE_ID (#172) is never used in ERC20Token (#412-560)
Remove unused state variables.
Additional information: link
ERC20Token.feeDenominator (#418) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
name() should be declared external:
- ERC20.name() (#198-200)
symbol() should be declared external:
- ERC20.symbol() (#202-204)
decimals() should be declared external:
- ERC20.decimals() (#206-208)
totalSupply() should be declared external:
- ERC20.totalSupply() (#210-212)
balanceOf(address) should be declared external:
- ERC20.balanceOf(address) (#214-216)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#222-225)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#229-232)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#234-237)
owner() should be declared external:
- Ownable.owner() (#299-301)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#308-311)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#313-317)
vault() should be declared external:
- VaultOwned.vault() (#330-332)
transfer(address,uint256) should be declared external:
- ERC20Token.transfer(address,uint256) (#468-471)
transferFrom(address,address,uint256) should be declared external:
- ERC20Token.transferFrom(address,address,uint256) (#473-477)
burn(uint256) should be declared external:
- ERC20Token.burn(uint256) (#506-508)
burnFrom(address,uint256) should be declared external:
- ERC20Token.burnFrom(address,uint256) (#510-512)
Use the external attribute for functions never called from the contract.
Additional information: link
Not a direct threat, but may indicate unreliable intentions of developer. Widespread names (e.g. Elon, King, Moon, Doge) are common among meme-tokens and scams. The allow to gain free hype and attract unexperienced investors.
Not a direct threat, but may indicate unreliable intentions of developer. Both name and ticker of current token are widespread, i.e. common across multiple tokens. This is slightly suspicious
Unable to find token contract audit
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
Alexa traffic rank is relatively low
Additional information: link
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has relatively low CoinMarketCap rank
Unable to find Youtube account