BTCFactory Token Logo

BTCFactory Token

About BTCFactory

Listings

Not Found
Token 7 months

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 14 January 2022

report
Token seems to be anonymous. As long as we are unable to find website score is limited.


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

BTCFactory.swapBack() (#587-632) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#615)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in BTCFactory._transferFrom(address,address,uint256) (#494-540):
External calls:
- swapBack() (#519)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#598-604)
- distributor.deposit{value: amountBNBReflection}() (#614)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#615)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#621-628)
External calls sending eth:
- swapBack() (#519)
- distributor.deposit{value: amountBNBReflection}() (#614)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#615)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#621-628)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#522)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#525)
- amountReceived = takeFee(sender,amount) (#524)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#560)
Apply the check-effects-interactions pattern.

Additional information: link

DividendDistributor.distributeDividend(address) (#323-334) ignores return value by BTCB.transfer(shareholder,amount) (#329)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.

Additional information: link


Too many vulnerabilities (Unchecked transfer, Reentrancy vulnerability, etc.). High risk of a scam. DYOR & manual audit are advised.

BTCFactory.swapBack().tmpSuccess (#615) is written in both
(tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#615)
tmpSuccess = false (#618)
Fix or remove the writes.

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.


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.

Reentrancy in DividendDistributor.distributeDividend(address) (#323-334):
External calls:
- BTCB.transfer(shareholder,amount) (#329)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#331)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#332)
Reentrancy in DividendDistributor.process(uint256) (#292-316):
External calls:
- distributeDividend(shareholders[currentIndex]) (#308)
- BTCB.transfer(shareholder,amount) (#329)
State variables written after the call(s):
- currentIndex ++ (#313)
Reentrancy in DividendDistributor.setShare(address,uint256) (#256-270):
External calls:
- distributeDividend(shareholder) (#258)
- BTCB.transfer(shareholder,amount) (#329)
State variables written after the call(s):
- shares[shareholder].amount = amount (#268)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#269)
Apply the check-effects-interactions pattern.

Additional information: link

BTCFactory.swapBack() (#587-632) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#621-628)
Ensure that all the return values of the function calls are used.

Additional information: link

DividendDistributor.setDistributionCriteria(uint256,uint256) (#251-254) should emit an event for:
- minPeriod = _minPeriod (#252)
- minDistribution = _minDistribution (#253)
BTCFactory.setTxLimit(uint256) (#635-637) should emit an event for:
- _maxTxAmount = amount (#636)
BTCFactory.setFees(uint256,uint256,uint256,uint256) (#661-668) should emit an event for:
- liquidityFee = _liquidityFee (#662)
- reflectionFee = _reflectionFee (#663)
- marketingFee = _marketingFee (#664)
- totalFee = _liquidityFee.add(_reflectionFee).add(_marketingFee) (#665)
- feeDenominator = _feeDenominator (#666)
BTCFactory.setSwapBackSettings(bool,uint256) (#675-678) should emit an event for:
- swapThreshold = _amount (#677)
BTCFactory.setTargetLiquidity(uint256,uint256) (#680-683) should emit an event for:
- targetLiquidity = _target (#681)
- targetLiquidityDenominator = _denominator (#682)
Emit an event for critical parameter changes.

Additional information: link

Auth.transferOwnership(address).adr (#132) lacks a zero-check on :
- owner = adr (#133)
BTCFactory.setFeeReceivers(address,address)._autoLiquidityReceiver (#670) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#671)
BTCFactory.setFeeReceivers(address,address)._marketingFeeReceiver (#670) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#672)
Check that the address is not zero.

Additional information: link

DividendDistributor.distributeDividend(address) (#323-334) has external calls inside a loop: BTCB.transfer(shareholder,amount) (#329)
Favor pull over push strategy for external calls.

Additional information: link

Reentrancy in BTCFactory.constructor() (#425-455):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#427)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#428)
- _balances[msg.sender] = _totalSupply (#453)
- autoLiquidityReceiver = pair (#450)
- distributor = new DividendDistributor(address(router)) (#430)
- isDividendExempt[pair] = true (#445)
- isDividendExempt[address(this)] = true (#446)
- isDividendExempt[DEAD] = true (#447)
- isFeeExempt[msg.sender] = true (#432)
- isTimelockExempt[msg.sender] = true (#436)
- isTimelockExempt[DEAD] = true (#437)
- isTimelockExempt[address(this)] = true (#438)
- isTxLimitExempt[msg.sender] = true (#433)
- marketingFeeReceiver = MARK (#451)
Reentrancy in DividendDistributor.deposit() (#272-290):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#279-284)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#289)
- totalDividends = totalDividends.add(amount) (#288)
Reentrancy in DividendDistributor.distributeDividend(address) (#323-334):
External calls:
- BTCB.transfer(shareholder,amount) (#329)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#330)
Reentrancy in DividendDistributor.setShare(address,uint256) (#256-270):
External calls:
- distributeDividend(shareholder) (#258)
- BTCB.transfer(shareholder,amount) (#329)
State variables written after the call(s):
- addShareholder(shareholder) (#262)
- shareholderIndexes[shareholder] = shareholders.length (#356)
- removeShareholder(shareholder) (#264)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#362)
- addShareholder(shareholder) (#262)
- shareholders.push(shareholder) (#357)
- removeShareholder(shareholder) (#264)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#361)
- shareholders.pop() (#363)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#267)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in BTCFactory._transferFrom(address,address,uint256) (#494-540):
External calls:
- swapBack() (#519)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#598-604)
- distributor.deposit{value: amountBNBReflection}() (#614)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#615)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#621-628)
- distributor.setShare(sender,_balances[sender]) (#529)
- distributor.setShare(recipient,_balances[recipient]) (#533)
- distributor.process(distributorGas) (#536)
External calls sending eth:
- swapBack() (#519)
- distributor.deposit{value: amountBNBReflection}() (#614)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#615)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#621-628)
Event emitted after the call(s):
- Transfer(sender,recipient,amountReceived) (#538)
Reentrancy in BTCFactory._transferFrom(address,address,uint256) (#494-540):
External calls:
- swapBack() (#519)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#598-604)
- distributor.deposit{value: amountBNBReflection}() (#614)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#615)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#621-628)
External calls sending eth:
- swapBack() (#519)
- distributor.deposit{value: amountBNBReflection}() (#614)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#615)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#621-628)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#561)
- amountReceived = takeFee(sender,amount) (#524)
Reentrancy in BTCFactory.constructor() (#425-455):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#427)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#454)
Reentrancy in BTCFactory.swapBack() (#587-632):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#598-604)
- distributor.deposit{value: amountBNBReflection}() (#614)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#615)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#621-628)
External calls sending eth:
- distributor.deposit{value: amountBNBReflection}() (#614)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#615)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#621-628)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#630)
Apply the check-effects-interactions pattern.

Additional information: link

DividendDistributor.shouldDistribute(address) (#318-321) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#319-320)
BTCFactory._transferFrom(address,address,uint256) (#494-540) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(cooldownTimer[recipient] < block.timestamp,Please wait for cooldown between buys) (#510)
Avoid relying on block.timestamp.

Additional information: link

DividendDistributor.process(uint256) (#292-316) has costly operations inside a loop:
- currentIndex = 0 (#304)
DividendDistributor.distributeDividend(address) (#323-334) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#328)
DividendDistributor.process(uint256) (#292-316) has costly operations inside a loop:
- currentIndex ++ (#313)
Use a local variable to hold the loop computation result.

Additional information: link

DividendDistributor.claimDividend() (#336-338) is never used and should be removed
Remove unused functions.

Additional information: link

BTCFactory._maxTxAmount (#382) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 2) / 100
BTCFactory._maxWalletToken (#384) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 3) / 100
BTCFactory.swapThreshold (#421) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 10 / 10000
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

Pragma version^0.7.4 (#15) allows old versions
solc-0.7.4 is not recommended for deployment
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 BTCFactory.swapBack() (#587-632):
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#615)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Function IDEXRouter.WETH() (#147) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minPeriod (#251) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minDistribution (#251) is not in mixedCase
Variable DividendDistributor._token (#203) is not in mixedCase
Variable DividendDistributor.BTCB (#211) is not in mixedCase
Variable DividendDistributor.WBNB (#212) is not in mixedCase
Parameter BTCFactory.cooldownEnabled(bool,uint8)._status (#580) is not in mixedCase
Parameter BTCFactory.cooldownEnabled(bool,uint8)._interval (#580) is not in mixedCase
Parameter BTCFactory.setFees(uint256,uint256,uint256,uint256)._liquidityFee (#661) is not in mixedCase
Parameter BTCFactory.setFees(uint256,uint256,uint256,uint256)._reflectionFee (#661) is not in mixedCase
Parameter BTCFactory.setFees(uint256,uint256,uint256,uint256)._marketingFee (#661) is not in mixedCase
Parameter BTCFactory.setFees(uint256,uint256,uint256,uint256)._feeDenominator (#661) is not in mixedCase
Parameter BTCFactory.setFeeReceivers(address,address)._autoLiquidityReceiver (#670) is not in mixedCase
Parameter BTCFactory.setFeeReceivers(address,address)._marketingFeeReceiver (#670) is not in mixedCase
Parameter BTCFactory.setSwapBackSettings(bool,uint256)._enabled (#675) is not in mixedCase
Parameter BTCFactory.setSwapBackSettings(bool,uint256)._amount (#675) is not in mixedCase
Parameter BTCFactory.setTargetLiquidity(uint256,uint256)._target (#680) is not in mixedCase
Parameter BTCFactory.setTargetLiquidity(uint256,uint256)._denominator (#680) is not in mixedCase
Parameter BTCFactory.setDistributionCriteria(uint256,uint256)._minPeriod (#685) is not in mixedCase
Parameter BTCFactory.setDistributionCriteria(uint256,uint256)._minDistribution (#685) is not in mixedCase
Variable BTCFactory.BTCB (#370) is not in mixedCase
Variable BTCFactory.WBNB (#371) is not in mixedCase
Variable BTCFactory.DEAD (#372) is not in mixedCase
Variable BTCFactory.ZERO (#373) is not in mixedCase
Variable BTCFactory.MARK (#374) is not in mixedCase
Constant BTCFactory._name (#376) is not in UPPER_CASE_WITH_UNDERSCORES
Constant BTCFactory._symbol (#377) is not in UPPER_CASE_WITH_UNDERSCORES
Constant BTCFactory._decimals (#378) is not in UPPER_CASE_WITH_UNDERSCORES
Variable BTCFactory._totalSupply (#380) is not in mixedCase
Variable BTCFactory._maxTxAmount (#382) is not in mixedCase
Variable BTCFactory._maxWalletToken (#384) is not in mixedCase
Variable BTCFactory._balances (#386) is not in mixedCase
Variable BTCFactory._allowances (#387) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#152) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#153)
Prevent variables from having similar names.

Additional information: link

BTCFactory.slitherConstructorVariables() (#367-709) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#372)
BTCFactory.slitherConstructorVariables() (#367-709) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#373)
BTCFactory.slitherConstructorVariables() (#367-709) uses literals with too many digits:
- distributorGas = 500000 (#413)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

BTCFactory.BTCB (#370) is never used in BTCFactory (#367-709)
Remove unused state variables.

Additional information: link

BTCFactory.BTCB (#370) should be constant
BTCFactory.DEAD (#372) should be constant
BTCFactory.MARK (#374) should be constant
BTCFactory.WBNB (#371) should be constant
BTCFactory.ZERO (#373) should be constant
BTCFactory._totalSupply (#380) should be constant
BTCFactory.launchedAt (#409) should be constant
DividendDistributor.WBNB (#212) should be constant
DividendDistributor.dividendsPerShareAccuracyFactor (#225) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

authorize(address) should be declared external:
- Auth.authorize(address) (#104-106)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#111-113)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#132-136)
cooldownEnabled(bool,uint8) should be declared external:
- BTCFactory.cooldownEnabled(bool,uint8) (#580-583)
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.


Unable to find Telegram and Twitter accounts


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

Price for BTCFactory