Bullion Token Logo

Bullion Token

About Bullion

Listings

Not Found
Token 3 months

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 17 February 2022

report
Code:


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

Bullion.addLiquidity(uint256,uint256) (#733-746) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#738-745)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in Bullion._transfer(address,address,uint256) (#642-680):
External calls:
- swapAndLiquify(contractTokenBalance) (#664)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#738-745)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#722-728)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#664)
- recipient.transfer(amount) (#606)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#738-745)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#667)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#675)
- finalAmount = takeFee(sender,recipient,amount) (#669-670)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#760)
Apply the check-effects-interactions pattern.

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.

Bullion.addLiquidity(uint256,uint256) (#733-746) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#738-745)
Ensure that all the return values of the function calls are used.

Additional information: link

Bullion.allowance(address,address).owner (#497) shadows:
- Ownable.owner() (#147-149) (function)
Bullion._approve(address,address,uint256).owner (#520) shadows:
- Ownable.owner() (#147-149) (function)
Rename the local variables that shadow another component.

Additional information: link

Bullion.setBuyTaxes(uint256,uint256,uint256) (#540-546) should emit an event for:
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#545)
Bullion.setSelTaxes(uint256,uint256,uint256) (#548-554) should emit an event for:
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#553)
Bullion.setDistributionSettings(uint256,uint256,uint256) (#556-562) should emit an event for:
- _liquidityShare = newLiquidityShare (#557)
- _teamShare = newTeamShare (#559)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#561)
Bullion.setMaxTxAmount(uint256) (#564-566) should emit an event for:
- _maxTxAmount = maxTxAmount (#565)
Bullion.setWalletLimit(uint256) (#576-578) should emit an event for:
- _walletMax = newLimit (#577)
Bullion.setNumTokensBeforeSwap(uint256) (#580-582) should emit an event for:
- minimumTokensBeforeSwap = newLimit (#581)
Emit an event for critical parameter changes.

Additional information: link

Bullion.setMarketingWalletAddress(address).newAddress (#584) lacks a zero-check on :
- marketingWalletAddress = address(newAddress) (#585)
Bullion.setTeamWalletAddress(address).newAddress (#588) lacks a zero-check on :
- teamWalletAddress = address(newAddress) (#589)
Check that the address is not zero.

Additional information: link

waiveOwnership() should be declared external:
- Ownable.waiveOwnership() (#156-159)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#161-165)
getTime() should be declared external:
- Ownable.getTime() (#167-169)
name() should be declared external:
- Bullion.name() (#477-479)
symbol() should be declared external:
- Bullion.symbol() (#481-483)
decimals() should be declared external:
- Bullion.decimals() (#485-487)
totalSupply() should be declared external:
- Bullion.totalSupply() (#489-491)
allowance(address,address) should be declared external:
- Bullion.allowance(address,address) (#497-499)
increaseAllowance(address,uint256) should be declared external:
- Bullion.increaseAllowance(address,uint256) (#501-504)
decreaseAllowance(address,uint256) should be declared external:
- Bullion.decreaseAllowance(address,uint256) (#506-509)
minimumTokensBeforeSwapAmount() should be declared external:
- Bullion.minimumTokensBeforeSwapAmount() (#511-513)
approve(address,uint256) should be declared external:
- Bullion.approve(address,uint256) (#515-518)
setMarketPairStatus(address,bool) should be declared external:
- Bullion.setMarketPairStatus(address,bool) (#528-530)
setIsExcludedFromFee(address,bool) should be declared external:
- Bullion.setIsExcludedFromFee(address,bool) (#536-538)
setSwapAndLiquifyEnabled(bool) should be declared external:
- Bullion.setSwapAndLiquifyEnabled(bool) (#592-595)
setSwapAndLiquifyByLimitOnly(bool) should be declared external:
- Bullion.setSwapAndLiquifyByLimitOnly(bool) (#597-599)
getCirculatingSupply() should be declared external:
- Bullion.getCirculatingSupply() (#601-603)
changeRouterVersion(address) should be declared external:
- Bullion.changeRouterVersion(address) (#609-626)
transfer(address,uint256) should be declared external:
- Bullion.transfer(address,uint256) (#631-634)
transferFrom(address,address,uint256) should be declared external:
- Bullion.transferFrom(address,address,uint256) (#636-640)
Use the external attribute for functions never called from the contract.

Additional information: link

Reentrancy in Bullion.changeRouterVersion(address) (#609-626):
External calls:
- newPairAddress = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#617-618)
State variables written after the call(s):
- isMarketPair[address(uniswapPair)] = true (#625)
- isWalletLimitExempt[address(uniswapPair)] = true (#624)
- uniswapPair = newPairAddress (#621)
- uniswapV2Router = _uniswapV2Router (#622)
Reentrancy in Bullion.constructor() (#446-475):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#451-452)
State variables written after the call(s):
- _allowances[address(this)][address(uniswapV2Router)] = _totalSupply (#455)
- _balances[_msgSender()] = _totalSupply (#473)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#462)
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#460)
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#461)
- isExcludedFromFee[owner()] = true (#457)
- isExcludedFromFee[address(this)] = true (#458)
- isMarketPair[address(uniswapPair)] = true (#471)
- isTxLimitExempt[owner()] = true (#468)
- isTxLimitExempt[address(this)] = true (#469)
- isWalletLimitExempt[owner()] = true (#464)
- isWalletLimitExempt[address(uniswapPair)] = true (#465)
- isWalletLimitExempt[address(this)] = true (#466)
- uniswapV2Router = _uniswapV2Router (#454)
Reentrancy in Bullion.swapAndLiquify(uint256) (#689-711):
External calls:
- swapTokensForEth(tokensForSwap) (#694)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#722-728)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#710)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#738-745)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#704)
- recipient.transfer(amount) (#606)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#707)
- recipient.transfer(amount) (#606)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#710)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#738-745)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#710)
- _allowances[owner][spender] = amount (#524)
Reentrancy in Bullion.transferFrom(address,address,uint256) (#636-640):
External calls:
- _transfer(sender,recipient,amount) (#637)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#738-745)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#722-728)
External calls sending eth:
- _transfer(sender,recipient,amount) (#637)
- recipient.transfer(amount) (#606)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#738-745)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#638)
- _allowances[owner][spender] = amount (#524)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in Bullion._transfer(address,address,uint256) (#642-680):
External calls:
- swapAndLiquify(contractTokenBalance) (#664)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#738-745)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#722-728)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#664)
- recipient.transfer(amount) (#606)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#738-745)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#761)
- finalAmount = takeFee(sender,recipient,amount) (#669-670)
- Transfer(sender,recipient,finalAmount) (#677)
Reentrancy in Bullion.constructor() (#446-475):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#451-452)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_totalSupply) (#474)
Reentrancy in Bullion.swapAndLiquify(uint256) (#689-711):
External calls:
- swapTokensForEth(tokensForSwap) (#694)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#722-728)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#710)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#738-745)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#704)
- recipient.transfer(amount) (#606)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#707)
- recipient.transfer(amount) (#606)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#710)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#738-745)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#525)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#710)
Reentrancy in Bullion.swapTokensForEth(uint256) (#713-731):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#722-728)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#730)
Reentrancy in Bullion.transferFrom(address,address,uint256) (#636-640):
External calls:
- _transfer(sender,recipient,amount) (#637)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#738-745)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#722-728)
External calls sending eth:
- _transfer(sender,recipient,amount) (#637)
- recipient.transfer(amount) (#606)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#738-745)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#525)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#638)
Apply the check-effects-interactions pattern.

Additional information: link

Address.isContract(address) (#82-87) uses assembly
- INLINE ASM (#85)
Address._functionCallWithValue(address,bytes,uint256,string) (#114-131) uses assembly
- INLINE ASM (#123-126)
Do not use evm assembly.

Additional information: link

Address._functionCallWithValue(address,bytes,uint256,string) (#114-131) is never used and should be removed
Address.functionCall(address,bytes) (#97-99) is never used and should be removed
Address.functionCall(address,bytes,string) (#101-103) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#105-107) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#109-112) is never used and should be removed
Address.isContract(address) (#82-87) is never used and should be removed
Address.sendValue(address,uint256) (#89-95) is never used and should be removed
Context._msgData() (#9-12) is never used and should be removed
SafeMath.mod(uint256,uint256) (#70-72) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#74-77) is never used and should be removed
Remove unused functions.

Additional information: link

Bullion._totalSupply (#410) is set pre-construction with a non-constant function or state variable:
- 1000 * 10 ** _decimals
Bullion._maxTxAmount (#411) is set pre-construction with a non-constant function or state variable:
- 1000 * 10 ** _decimals
Bullion._walletMax (#412) is set pre-construction with a non-constant function or state variable:
- 5 * 10 ** _decimals
Bullion.minimumTokensBeforeSwap (#413) is set pre-construction with a non-constant function or state variable:
- 1 * 10 ** _decimals
Remove any initialization of state variables via non-constant state variables or function calls. If variables must be set upon contract deployment, locate initialization in the constructor instead.

Additional information: link

Low level call in Address.sendValue(address,uint256) (#89-95):
- (success) = recipient.call{value: amount}() (#93)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#114-131):
- (success,returndata) = target.call{value: weiValue}(data) (#117)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#204) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#205) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#221) is not in mixedCase
Function IUniswapV2Router01.WETH() (#240) is not in mixedCase
Parameter Bullion.setSwapAndLiquifyEnabled(bool)._enabled (#592) is not in mixedCase
Variable Bullion._balances (#386) is not in mixedCase
Variable Bullion._buyLiquidityFee (#394) is not in mixedCase
Variable Bullion._buyMarketingFee (#395) is not in mixedCase
Variable Bullion._buyTeamFee (#396) is not in mixedCase
Variable Bullion._sellLiquidityFee (#398) is not in mixedCase
Variable Bullion._sellMarketingFee (#399) is not in mixedCase
Variable Bullion._sellTeamFee (#400) is not in mixedCase
Variable Bullion._liquidityShare (#402) is not in mixedCase
Variable Bullion._marketingShare (#403) is not in mixedCase
Variable Bullion._teamShare (#404) is not in mixedCase
Variable Bullion._totalTaxIfBuying (#406) is not in mixedCase
Variable Bullion._totalTaxIfSelling (#407) is not in mixedCase
Variable Bullion._totalDistributionShares (#408) is not in mixedCase
Variable Bullion._maxTxAmount (#411) is not in mixedCase
Variable Bullion._walletMax (#412) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#10)" inContext (#3-13)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Reentrancy in Bullion._transfer(address,address,uint256) (#642-680):
External calls:
- swapAndLiquify(contractTokenBalance) (#664)
- recipient.transfer(amount) (#606)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#664)
- recipient.transfer(amount) (#606)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#738-745)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#667)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#675)
- finalAmount = takeFee(sender,recipient,amount) (#669-670)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#760)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#761)
- finalAmount = takeFee(sender,recipient,amount) (#669-670)
- Transfer(sender,recipient,finalAmount) (#677)
Reentrancy in Bullion.swapAndLiquify(uint256) (#689-711):
External calls:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#704)
- recipient.transfer(amount) (#606)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#707)
- recipient.transfer(amount) (#606)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#704)
- recipient.transfer(amount) (#606)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#707)
- recipient.transfer(amount) (#606)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#710)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#738-745)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#710)
- _allowances[owner][spender] = amount (#524)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#525)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#710)
Reentrancy in Bullion.transferFrom(address,address,uint256) (#636-640):
External calls:
- _transfer(sender,recipient,amount) (#637)
- recipient.transfer(amount) (#606)
External calls sending eth:
- _transfer(sender,recipient,amount) (#637)
- recipient.transfer(amount) (#606)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#738-745)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#638)
- _allowances[owner][spender] = amount (#524)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#525)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#638)
Apply the check-effects-interactions pattern.

Additional information: link

Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#245) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#246)
Prevent variables from having similar names.

Additional information: link

Ownable.waiveOwnership() (#156-159) uses literals with too many digits:
- OwnershipTransferred(_owner,address(0x000000000000000000000000000000000000dEaD)) (#157)
Ownable.waiveOwnership() (#156-159) uses literals with too many digits:
- _owner = address(0x000000000000000000000000000000000000dEaD) (#158)
Bullion.slitherConstructorVariables() (#373-768) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#384)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

Ownable.asdasd (#136) is never used in Bullion (#373-768)
Ownable._lockTime (#137) is never used in Bullion (#373-768)
Remove unused state variables.

Additional information: link

Bullion._decimals (#380) should be constant
Bullion._name (#378) should be constant
Bullion._symbol (#379) should be constant
Ownable._lockTime (#137) should be constant
Ownable.asdasd (#136) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

Holders:


Attempt to swap token was unsuccessful. For some reason it is untradeable. If token is not in presale stage and is not traded outside PancakeSwap, then it's a scam

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.


Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive.


Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.


Token is deployed only at one blockchain


Token has only one trading pair


Unable to find Telegram and Twitter accounts

Search:


Unable to find website, listings and other project-related information


Young tokens have high risks of scam / price dump / death


Token has no active CoinGecko listing / rank


Token has no active CoinMarketCap listing / rank

Anti-Scam Checks

Price for Bullion