McDollar Token Logo

McDollar Token

About McDollar

Listings

Not Found
Token 2 years

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 7 February 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...)

McDollar.swapBack() (#362-403) sends eth to arbitrary user
Dangerous calls:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#387)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#389)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in McDollar._transferFrom(address,address,uint256) (#286-315):
External calls:
- swapBack() (#304)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#373-379)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#387)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#389)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#393-400)
External calls sending eth:
- swapBack() (#304)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#387)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#389)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#393-400)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#308)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#311)
- amountReceived = takeFee(sender,recipient,amount) (#310)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#341)
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.

McDollar.DEAD (#186) should be constant
McDollar.WBNB (#185) should be constant
McDollar.ZERO (#187) should be constant
McDollar._totalSupply (#194) should be constant
McDollar.routerAddress (#188) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

McDollar.slitherConstructorVariables() (#182-499) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#186)
McDollar.slitherConstructorVariables() (#182-499) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#187)
McDollar.slitherConstructorVariables() (#182-499) uses literals with too many digits:
- _totalSupply = 10000000 * (10 ** _decimals) (#194)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

McDollar.slitherConstructorVariables() (#182-499) performs a multiplication on the result of a division:
-swapThreshold = _totalSupply / 1000 * 3 (#223)
Consider ordering multiplication before division.

Additional information: link

McDollar.swapBack() (#362-403) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#393-400)
Ensure that all the return values of the function calls are used.

Additional information: link

McDollar.setFees(uint256,uint256,uint256,uint256) (#432-439) should emit an event for:
- liquidityFee = _liquidityFee (#433)
- marketingFee = _marketingFee (#434)
- buybackFee = _buybackFee (#435)
- totalFee = _liquidityFee.add(_marketingFee).add(_buybackFee) (#436)
- feeDenominator = _feeDenominator (#437)
McDollar.setSellMultiplier(uint256) (#454-456) should emit an event for:
- _sellMultiplier = multiplier (#455)
McDollar.setTxLimit(uint256) (#462-465) should emit an event for:
- _maxTxAmount = amountBuy (#463)
Emit an event for critical parameter changes.

Additional information: link

Auth.transferOwnership(address).adr (#121) lacks a zero-check on :
- owner = adr (#122)
McDollar.setFeeReceiver(address,address)._marketingFeeReceiver (#457) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#458)
McDollar.setFeeReceiver(address,address)._buybackFeeReceiver (#457) lacks a zero-check on :
- buybackFeeReceiver = _buybackFeeReceiver (#459)
Check that the address is not zero.

Additional information: link

Reentrancy in McDollar._transferFrom(address,address,uint256) (#286-315):
External calls:
- swapBack() (#304)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#373-379)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#387)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#389)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#393-400)
External calls sending eth:
- swapBack() (#304)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#387)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#389)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#393-400)
State variables written after the call(s):
- launch() (#306)
- launchedAt = block.number (#423)
Reentrancy in McDollar.constructor() (#232-252):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#234)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = type()(uint256).max (#235)
- _balances[_owner] = _totalSupply (#250)
- isFeeExempt[msg.sender] = true (#238)
- isTimelockExempt[msg.sender] = true (#245)
- isTimelockExempt[DEAD] = true (#246)
- isTimelockExempt[address(this)] = true (#247)
- isTxLimitExempt[msg.sender] = true (#240)
- isTxLimitExempt[address(this)] = true (#241)
- isTxLimitExempt[routerAddress] = true (#242)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in McDollar._transferFrom(address,address,uint256) (#286-315):
External calls:
- swapBack() (#304)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#373-379)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#387)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#389)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#393-400)
External calls sending eth:
- swapBack() (#304)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#387)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#389)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#393-400)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#342)
- amountReceived = takeFee(sender,recipient,amount) (#310)
- Transfer(sender,recipient,amountReceived) (#313)
Reentrancy in McDollar.constructor() (#232-252):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#234)
Event emitted after the call(s):
- Transfer(address(0),_owner,_totalSupply) (#251)
Reentrancy in McDollar.swapBack() (#362-403):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#373-379)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#387)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#389)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#393-400)
External calls sending eth:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#387)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#389)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#393-400)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#401)
Apply the check-effects-interactions pattern.

Additional information: link

McDollar._transferFrom(address,address,uint256) (#286-315) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(cooldownTimer[recipient] < block.timestamp,Please wait for 1min between two operations) (#301)
Avoid relying on block.timestamp.

Additional information: link

McDollar.buyTokens(uint256,address) (#405-416) is never used and should be removed
Remove unused functions.

Additional information: link

McDollar._maxTxAmount (#195) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 1) / 100
McDollar._maxWalletSize (#196) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 2) / 100
McDollar.swapThreshold (#223) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 1000 * 3
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.8.11 (#3) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.11 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 McDollar.swapBack() (#362-403):
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#387)
- (BuyBackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#389)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Variable Auth._intAddr (#68) is not in mixedCase
Function IDEXRouter.WETH() (#136) is not in mixedCase
Parameter McDollar.tradingStatus(bool)._status (#348) is not in mixedCase
Parameter McDollar.setFees(uint256,uint256,uint256,uint256)._liquidityFee (#432) is not in mixedCase
Parameter McDollar.setFees(uint256,uint256,uint256,uint256)._marketingFee (#432) is not in mixedCase
Parameter McDollar.setFees(uint256,uint256,uint256,uint256)._buybackFee (#432) is not in mixedCase
Parameter McDollar.setFees(uint256,uint256,uint256,uint256)._feeDenominator (#432) is not in mixedCase
Parameter McDollar.cooldownEnabled(bool,uint8)._status (#441) is not in mixedCase
Parameter McDollar.cooldownEnabled(bool,uint8)._interval (#441) is not in mixedCase
Parameter McDollar.setFeeReceiver(address,address)._marketingFeeReceiver (#457) is not in mixedCase
Parameter McDollar.setFeeReceiver(address,address)._buybackFeeReceiver (#457) is not in mixedCase
Parameter McDollar.setSwapBackSettings(bool,uint256)._enabled (#466) is not in mixedCase
Parameter McDollar.setSwapBackSettings(bool,uint256)._amount (#466) is not in mixedCase
Parameter McDollar.blacklistAddress(address,bool)._address (#471) is not in mixedCase
Parameter McDollar.blacklistAddress(address,bool)._value (#471) is not in mixedCase
Parameter McDollar.transferForeignToken(address)._token (#479) is not in mixedCase
Variable McDollar.WBNB (#185) is not in mixedCase
Variable McDollar.DEAD (#186) is not in mixedCase
Variable McDollar.ZERO (#187) is not in mixedCase
Constant McDollar._name (#190) is not in UPPER_CASE_WITH_UNDERSCORES
Constant McDollar._symbol (#191) is not in UPPER_CASE_WITH_UNDERSCORES
Constant McDollar._decimals (#192) is not in UPPER_CASE_WITH_UNDERSCORES
Variable McDollar._totalSupply (#194) is not in mixedCase
Variable McDollar._maxTxAmount (#195) is not in mixedCase
Variable McDollar._maxWalletSize (#196) is not in mixedCase
Variable McDollar._balances (#198) is not in mixedCase
Variable McDollar._allowances (#199) is not in mixedCase
Variable McDollar._sellMultiplier (#211) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

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

Additional information: link

authorize(address) should be declared external:
- Auth.authorize(address) (#92-94)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#100-102)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#121-125)
tradingStatus(bool) should be declared external:
- McDollar.tradingStatus(bool) (#348-353)
cooldownEnabled(bool,uint8) should be declared external:
- McDollar.cooldownEnabled(bool,uint8) (#441-444)
blacklistAddress(address,bool) should be declared external:
- McDollar.blacklistAddress(address,bool) (#471-473)
transferForeignToken(address) should be declared external:
- McDollar.transferForeignToken(address) (#479-483)
isOverLiquified(uint256,uint256) should be declared external:
- McDollar.isOverLiquified(uint256,uint256) (#493-495)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


Token seems to be untradeable: there is no PancakeSwap trading pair and no trading volumes. Ignore for presale.


Number of Binance Smart Chain (BSC) token holders is low.


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 McDollar