Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
ApeinRecordsBsc.addLiquidity(uint256,uint256) (#587-600) sends eth to arbitrary user
Dangerous calls:
- router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#592-599)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in ApeinRecordsBsc._transfer(address,address,uint256) (#483-530):
External calls:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#521)
- router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#592-599)
- (success) = recipient.call{value: amount}() (#120)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#611-617)
- address(marketingWallet).sendValue(marketingAmt) (#579)
- address(buybackWallet).sendValue(buybackAmt) (#583)
- swapAndLiquify(swapTokensAtAmount,taxes) (#522)
- router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#592-599)
- (success) = recipient.call{value: amount}() (#120)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#611-617)
- address(marketingWallet).sendValue(marketingAmt) (#579)
- address(buybackWallet).sendValue(buybackAmt) (#583)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#521)
- router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#592-599)
- (success) = recipient.call{value: amount}() (#120)
- swapAndLiquify(swapTokensAtAmount,taxes) (#522)
- router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#592-599)
- (success) = recipient.call{value: amount}() (#120)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee,isSell) (#529)
- _rOwned[address(this)] += rMarketing (#394)
- _rOwned[address(this)] += rLiquidity (#384)
- _rOwned[address(this)] += rBuyback (#404)
- _rOwned[sender] = _rOwned[sender] - s.rAmount (#545)
- _rOwned[recipient] = _rOwned[recipient] + s.rTransferAmount (#546)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#529)
- _rTotal -= rRfi (#373)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#529)
- _tOwned[sender] = _tOwned[sender] - tAmount (#539)
- _tOwned[address(this)] += tBuyback (#402)
- _tOwned[address(this)] += tMarketing (#392)
- _tOwned[address(this)] += tLiquidity (#382)
- _tOwned[recipient] = _tOwned[recipient] + s.tTransferAmount (#542)
Apply the check-effects-interactions pattern.
Additional information: link
ApeinRecordsBsc.rescueAnyERC20Tokens(address,address,uint256) (#691-693) ignores return value by IERC20(_tokenAddr).transfer(_to,_amount) (#692)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
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.
Contract ticker ($ApeinRecordsBsc) contains non-alphanumeric characters.
Not a direct threat, but may indicate unreliable intentions of developer. Non-alphanumeric chars (,.;!#*&") are extremely rare among low risk tokens.
Contract ticker ($ApeinRecordsBsc) has length of 16 chars.
Not a direct threat, but may indicate unreliable intentions of developer.
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.
ApeinRecordsBsc.swapAndLiquify(uint256,ApeinRecordsBsc.Taxes) (#559-585) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - temp.liquidity) (#569)
-ETHToAddLiquidityWith = unitBalance * temp.liquidity (#570)
ApeinRecordsBsc.swapAndLiquify(uint256,ApeinRecordsBsc.Taxes) (#559-585) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - temp.liquidity) (#569)
-marketingAmt = unitBalance * 2 * temp.marketing (#577)
ApeinRecordsBsc.swapAndLiquify(uint256,ApeinRecordsBsc.Taxes) (#559-585) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - temp.liquidity) (#569)
-buybackAmt = unitBalance * 2 * temp.buyback (#581)
Consider ordering multiplication before division.
Additional information: link
ApeinRecordsBsc.addLiquidity(uint256,uint256) (#587-600) ignores return value by router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#592-599)
Ensure that all the return values of the function calls are used.
Additional information: link
ApeinRecordsBsc.allowance(address,address).owner (#263) shadows:
- Ownable.owner() (#67-69) (function)
ApeinRecordsBsc._approve(address,address,uint256).owner (#476) shadows:
- Ownable.owner() (#67-69) (function)
Rename the local variables that shadow another component.
Additional information: link
ApeinRecordsBsc.updateCooldown(bool,uint256) (#642-645) should emit an event for:
- coolDownTime = time * 1 (#643)
ApeinRecordsBsc.updateSwapTokensAtAmount(uint256) (#647-649) should emit an event for:
- swapTokensAtAmount = amount * 10 ** _decimals (#648)
ApeinRecordsBsc.updateMaxTxLimit(uint256,uint256) (#670-673) should emit an event for:
- maxBuyLimit = maxBuy * 10 ** decimals() (#671)
- maxSellLimit = maxSell * 10 ** decimals() (#672)
ApeinRecordsBsc.updateMaxWalletlimit(uint256) (#675-677) should emit an event for:
- maxWalletLimit = amount * 10 ** decimals() (#676)
Emit an event for critical parameter changes.
Additional information: link
ApeinRecordsBsc.constructor(address)._pair (#219-220) lacks a zero-check on :
- pair = _pair (#223)
ApeinRecordsBsc.updateMarketingWallet(address).newWallet (#633) lacks a zero-check on :
- marketingWallet = newWallet (#634)
ApeinRecordsBsc.updateBuybackWallet(address).newWallet (#637) lacks a zero-check on :
- buybackWallet = newWallet (#638)
ApeinRecordsBsc.updateRouterAndPair(address,address).newPair (#679) lacks a zero-check on :
- pair = newPair (#681)
Check that the address is not zero.
Additional information: link
Reentrancy in ApeinRecordsBsc._transfer(address,address,uint256) (#483-530):
External calls:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#521)
- router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#592-599)
- (success) = recipient.call{value: amount}() (#120)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#611-617)
- address(marketingWallet).sendValue(marketingAmt) (#579)
- address(buybackWallet).sendValue(buybackAmt) (#583)
- swapAndLiquify(swapTokensAtAmount,taxes) (#522)
- router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#592-599)
- (success) = recipient.call{value: amount}() (#120)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#611-617)
- address(marketingWallet).sendValue(marketingAmt) (#579)
- address(buybackWallet).sendValue(buybackAmt) (#583)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#521)
- router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#592-599)
- (success) = recipient.call{value: amount}() (#120)
- swapAndLiquify(swapTokensAtAmount,taxes) (#522)
- router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#592-599)
- (success) = recipient.call{value: amount}() (#120)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee,isSell) (#529)
- totFeesPaid.liquidity += tLiquidity (#378)
- totFeesPaid.buyback += tBuyback (#398)
- totFeesPaid.marketing += tMarketing (#388)
- totFeesPaid.rfi += tRfi (#374)
Reentrancy in ApeinRecordsBsc.constructor(address) (#217-240):
External calls:
- _pair = IFactory(_router.factory()).createPair(address(this),_router.WETH()) (#219-220)
State variables written after the call(s):
- excludeFromReward(pair) (#225)
- _excluded.push(account) (#334)
- excludeFromReward(pair) (#225)
- _isExcluded[account] = true (#333)
- _isExcludedFromFee[address(this)] = true (#228)
- _isExcludedFromFee[owner()] = true (#229)
- _isExcludedFromFee[marketingWallet] = true (#230)
- _isExcludedFromFee[buybackWallet] = true (#231)
- _rOwned[owner()] = _rTotal (#227)
- excludeFromReward(pair) (#225)
- _tOwned[account] = tokenFromReflection(_rOwned[account]) (#331)
- allowedTransfer[address(this)] = true (#233)
- allowedTransfer[owner()] = true (#234)
- allowedTransfer[pair] = true (#235)
- allowedTransfer[marketingWallet] = true (#236)
- allowedTransfer[buybackWallet] = true (#237)
- pair = _pair (#223)
- router = _router (#222)
Reentrancy in ApeinRecordsBsc.swapAndLiquify(uint256,ApeinRecordsBsc.Taxes) (#559-585):
External calls:
- swapTokensForETH(toSwap) (#566)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#611-617)
- addLiquidity(tokensToAddLiquidityWith,ETHToAddLiquidityWith) (#574)
- router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#592-599)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,ETHToAddLiquidityWith) (#574)
- router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#592-599)
State variables written after the call(s):
- addLiquidity(tokensToAddLiquidityWith,ETHToAddLiquidityWith) (#574)
- _allowances[owner][spender] = amount (#479)
Reentrancy in ApeinRecordsBsc.transferFrom(address,address,uint256) (#272-280):
External calls:
- _transfer(sender,recipient,amount) (#273)
- router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#592-599)
- (success) = recipient.call{value: amount}() (#120)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#611-617)
- address(marketingWallet).sendValue(marketingAmt) (#579)
- address(buybackWallet).sendValue(buybackAmt) (#583)
External calls sending eth:
- _transfer(sender,recipient,amount) (#273)
- router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#592-599)
- (success) = recipient.call{value: amount}() (#120)
State variables written after the call(s):
- _approve(sender,_msgSender(),currentAllowance - amount) (#277)
- _allowances[owner][spender] = amount (#479)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in ApeinRecordsBsc._transfer(address,address,uint256) (#483-530):
External calls:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#521)
- router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#592-599)
- (success) = recipient.call{value: amount}() (#120)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#611-617)
- address(marketingWallet).sendValue(marketingAmt) (#579)
- address(buybackWallet).sendValue(buybackAmt) (#583)
- swapAndLiquify(swapTokensAtAmount,taxes) (#522)
- router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#592-599)
- (success) = recipient.call{value: amount}() (#120)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#611-617)
- address(marketingWallet).sendValue(marketingAmt) (#579)
- address(buybackWallet).sendValue(buybackAmt) (#583)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#521)
- router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#592-599)
- (success) = recipient.call{value: amount}() (#120)
- swapAndLiquify(swapTokensAtAmount,taxes) (#522)
- router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#592-599)
- (success) = recipient.call{value: amount}() (#120)
Event emitted after the call(s):
- Transfer(sender,address(this),s.tLiquidity + s.tMarketing + s.tBuyback) (#551)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#529)
- Transfer(sender,recipient,s.tTransferAmount) (#555)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#529)
Reentrancy in ApeinRecordsBsc.constructor(address) (#217-240):
External calls:
- _pair = IFactory(_router.factory()).createPair(address(this),_router.WETH()) (#219-220)
Event emitted after the call(s):
- Transfer(address(0),owner(),_tTotal) (#239)
Reentrancy in ApeinRecordsBsc.swapAndLiquify(uint256,ApeinRecordsBsc.Taxes) (#559-585):
External calls:
- swapTokensForETH(toSwap) (#566)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#611-617)
- addLiquidity(tokensToAddLiquidityWith,ETHToAddLiquidityWith) (#574)
- router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#592-599)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,ETHToAddLiquidityWith) (#574)
- router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#592-599)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#480)
- addLiquidity(tokensToAddLiquidityWith,ETHToAddLiquidityWith) (#574)
Reentrancy in ApeinRecordsBsc.transferFrom(address,address,uint256) (#272-280):
External calls:
- _transfer(sender,recipient,amount) (#273)
- router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#592-599)
- (success) = recipient.call{value: amount}() (#120)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#611-617)
- address(marketingWallet).sendValue(marketingAmt) (#579)
- address(buybackWallet).sendValue(buybackAmt) (#583)
External calls sending eth:
- _transfer(sender,recipient,amount) (#273)
- router.addLiquidityETH{value: ETHAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#592-599)
- (success) = recipient.call{value: amount}() (#120)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#480)
- _approve(sender,_msgSender(),currentAllowance - amount) (#277)
Apply the check-effects-interactions pattern.
Additional information: link
ApeinRecordsBsc._transfer(address,address,uint256) (#483-530) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(timePassed >= coolDownTime,Cooldown enabled) (#510)
Avoid relying on block.timestamp.
Additional information: link
ApeinRecordsBsc.setTradingStatus(bool) (#316-320) compares to a boolean constant:
-state == true && genesis_block == 0 (#319)
Remove the equality to the boolean constant.
Additional information: link
ApeinRecordsBsc.includeInReward(address) (#337-348) has costly operations inside a loop:
- _excluded.pop() (#344)
ApeinRecordsBsc._reflectRfi(uint256,uint256) (#372-375) has costly operations inside a loop:
- _rTotal -= rRfi (#373)
Use a local variable to hold the loop computation result.
Additional information: link
Context._msgData() (#52-55) is never used and should be removed
Remove unused functions.
Additional information: link
ApeinRecordsBsc._tTotal (#159) is set pre-construction with a non-constant function or state variable:
- initialsupply * 10 ** _decimals
ApeinRecordsBsc._rTotal (#160) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
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) (#117-122):
- (success) = recipient.call{value: amount}() (#120)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IRouter.WETH() (#98) is not in mixedCase
Struct ApeinRecordsBsc.valuesFromGetValues (#194-206) is not in CapWords
Parameter ApeinRecordsBsc.setTaxes(uint256,uint256,uint256,uint256)._rfi (#362) is not in mixedCase
Parameter ApeinRecordsBsc.setTaxes(uint256,uint256,uint256,uint256)._marketing (#362) is not in mixedCase
Parameter ApeinRecordsBsc.setTaxes(uint256,uint256,uint256,uint256)._liquidity (#362) is not in mixedCase
Parameter ApeinRecordsBsc.setTaxes(uint256,uint256,uint256,uint256)._buyback (#362) is not in mixedCase
Parameter ApeinRecordsBsc.setSellTaxes(uint256,uint256,uint256,uint256)._rfi (#367) is not in mixedCase
Parameter ApeinRecordsBsc.setSellTaxes(uint256,uint256,uint256,uint256)._marketing (#367) is not in mixedCase
Parameter ApeinRecordsBsc.setSellTaxes(uint256,uint256,uint256,uint256)._liquidity (#367) is not in mixedCase
Parameter ApeinRecordsBsc.setSellTaxes(uint256,uint256,uint256,uint256)._buyback (#367) is not in mixedCase
Parameter ApeinRecordsBsc.addLiquidity(uint256,uint256).ETHAmount (#587) is not in mixedCase
Parameter ApeinRecordsBsc.updateSwapEnabled(bool)._enabled (#651) is not in mixedCase
Parameter ApeinRecordsBsc.rescueAnyERC20Tokens(address,address,uint256)._tokenAddr (#691) is not in mixedCase
Parameter ApeinRecordsBsc.rescueAnyERC20Tokens(address,address,uint256)._to (#691) is not in mixedCase
Parameter ApeinRecordsBsc.rescueAnyERC20Tokens(address,address,uint256)._amount (#691) is not in mixedCase
Constant ApeinRecordsBsc._decimals (#155) is not in UPPER_CASE_WITH_UNDERSCORES
Variable ApeinRecordsBsc.genesis_block (#167) is not in mixedCase
Constant ApeinRecordsBsc._name (#172) is not in UPPER_CASE_WITH_UNDERSCORES
Constant ApeinRecordsBsc._symbol (#173) is not in UPPER_CASE_WITH_UNDERSCORES
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#53)" inContext (#47-56)
Remove redundant statements if they congest code but offer no value.
Additional information: link
ApeinRecordsBsc.initialsupply (#158) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#76-78)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#80-83)
name() should be declared external:
- ApeinRecordsBsc.name() (#243-245)
symbol() should be declared external:
- ApeinRecordsBsc.symbol() (#246-248)
totalSupply() should be declared external:
- ApeinRecordsBsc.totalSupply() (#254-256)
allowance(address,address) should be declared external:
- ApeinRecordsBsc.allowance(address,address) (#263-265)
approve(address,uint256) should be declared external:
- ApeinRecordsBsc.approve(address,uint256) (#267-270)
transferFrom(address,address,uint256) should be declared external:
- ApeinRecordsBsc.transferFrom(address,address,uint256) (#272-280)
increaseAllowance(address,uint256) should be declared external:
- ApeinRecordsBsc.increaseAllowance(address,uint256) (#282-285)
decreaseAllowance(address,uint256) should be declared external:
- ApeinRecordsBsc.decreaseAllowance(address,uint256) (#287-293)
transfer(address,uint256) should be declared external:
- ApeinRecordsBsc.transfer(address,uint256) (#295-299)
isExcludedFromReward(address) should be declared external:
- ApeinRecordsBsc.isExcludedFromReward(address) (#301-303)
reflectionFromToken(uint256,bool) should be declared external:
- ApeinRecordsBsc.reflectionFromToken(uint256,bool) (#305-314)
excludeFromFee(address) should be declared external:
- ApeinRecordsBsc.excludeFromFee(address) (#350-352)
includeInFee(address) should be declared external:
- ApeinRecordsBsc.includeInFee(address) (#354-356)
isExcludedFromFee(address) should be declared external:
- ApeinRecordsBsc.isExcludedFromFee(address) (#358-360)
setTaxes(uint256,uint256,uint256,uint256) should be declared external:
- ApeinRecordsBsc.setTaxes(uint256,uint256,uint256,uint256) (#362-365)
setSellTaxes(uint256,uint256,uint256,uint256) should be declared external:
- ApeinRecordsBsc.setSellTaxes(uint256,uint256,uint256,uint256) (#367-370)
rescueAnyERC20Tokens(address,address,uint256) should be declared external:
- ApeinRecordsBsc.rescueAnyERC20Tokens(address,address,uint256) (#691-693)
Use the external attribute for functions never called from the contract.
Additional information: link
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
Unable to find Telegram and Twitter accounts