Basenji is a pure meme coin which is going to be hyped to the moon, but we know how important utility has become in this current time, and we have thought about the future of Basenji as well. Over the year, we’ll be listing it out on a lot of CEXs, and then there is going to be a crazy turn of events when Basenji will have it’s own CEX, which won’t require a KYC from users, and it will only work towards listing Meme coins, so memecoin season will never be dead after this!!
TaxReceiver.receive() (#177-187) sends eth to arbitrary user
Dangerous calls:
- (sent) = MarketingWallet.call{value: address(this).balance * MarketingTax / TAX_DENOMINATOR}() (#181)
- WETH.deposit{value: address(this).balance}() (#183)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
TaxReceiver.receive() (#177-187) ignores return value by WETH.transfer(address(pair),WETH.balanceOf(address(this))) (#184)
Basenji.RescueTokens(address) (#802-809) ignores return value by IBEP20(token).transfer(msg.sender,IBEP20(token).balanceOf(address(this))) (#805-808)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
TaxReceiver.receive().sent (#181) is written in both
(sent) = MarketingWallet.call{value: address(this).balance * MarketingTax / TAX_DENOMINATOR}() (#181)
sent = true (#182)
Fix or remove the writes.
Additional information: link
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.
Contract ownership is not renounced (belongs to a wallet)
Basenji.transferWithFee(address,address,uint256) (#402-437) performs a multiplication on the result of a division:
-TaxedAmount = (amount * tax) / TAX_DENOMINATOR (#424)
-ContractToken = (TaxedAmount * _contractTax) / TAX_DENOMINATOR (#426)
Basenji.setTaxes(uint256,uint256,uint256,uint256,uint256,uint256) (#640-666) performs a multiplication on the result of a division:
-maxTax = (TAX_DENOMINATOR / 100) * 11 (#648)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in Basenji.ListTokenOnMemeswap() (#353-364):
External calls:
- memeSwap.ListToken(address(this),address(pancakeRouter),0,0,address(taxReceiver),0,address(this),,false) (#362)
State variables written after the call(s):
- _owner = msg.sender (#363)
Reentrancy in Basenji.swapContractToken(uint256) (#600-608):
External calls:
- _swapContractToken(true) (#605)
- pancakeRouter.swapExactTokensForETH(tokens,0,path,address(taxReceiver),block.timestamp) (#569-575)
State variables written after the call(s):
- _swapTreshold = prevTreshold (#607)
Reentrancy in Basenji.transferWithFee(address,address,uint256) (#402-437):
External calls:
- _swapContractToken(false) (#422)
- pancakeRouter.swapExactTokensForETH(tokens,0,path,address(taxReceiver),block.timestamp) (#569-575)
State variables written after the call(s):
- removeTokens(sender,amount) (#430)
- ExcludedBalances[account] = newBalance (#497)
- addTokens(recipient,amount - TaxedAmount) (#432)
- ExcludedBalances[account] = newBalance (#473)
- addTokens(address(this),ContractToken) (#434)
- ExcludedBalances[account] = newBalance (#473)
Apply the check-effects-interactions pattern.
Additional information: link
Basenji._swapTokenForBNB(uint256) (#560-576) ignores return value by pancakeRouter.swapExactTokensForETH(tokens,0,path,address(taxReceiver),block.timestamp) (#569-575)
Ensure that all the return values of the function calls are used.
Additional information: link
Basenji.setTaxes(uint256,uint256,uint256,uint256,uint256,uint256).Transfer (#643) shadows:
- IBEP20Transfer(address,address,uint256) (#35) (event)
Rename the local variables that shadow another component.
Additional information: link
TaxReceiver.SetTaxes(uint256) (#160-163) should emit an event for:
- MarketingTax = MarketingTax_ (#162)
Basenji.swapContractToken(uint256) (#600-608) should emit an event for:
- _swapTreshold = treshold (#603)
- _swapTreshold = prevTreshold (#607)
Emit an event for critical parameter changes.
Additional information: link
TaxReceiver.SetMarketingWallet(address).wallet (#164) lacks a zero-check on :
- MarketingWallet = wallet (#166)
Check that the address is not zero.
Additional information: link
Reentrancy in Basenji.constructor() (#313-351):
External calls:
- dexPair = IPancakeFactory(pancakeRouter.factory()).createPair(tokenAddress,WETH) (#316-319)
State variables written after the call(s):
- addTokens(msg.sender,(InitialSupply * 999) / 1000) (#325)
- ExcludedBalances[account] = newBalance (#473)
- addTokens(address(0xdead),InitialSupply / 1000) (#329)
- ExcludedBalances[account] = newBalance (#473)
- _excludeFromReflection(tokenAddress,true) (#337)
- ExcludedBalances[account] = tokens (#724)
- ExcludedBalances[account] = 0 (#728)
- _excludeFromReflection(dexPair,true) (#339)
- ExcludedBalances[account] = tokens (#724)
- ExcludedBalances[account] = 0 (#728)
- ExcludedFromFees[tokenAddress] = true (#344)
- _excludeFromReflection(tokenAddress,true) (#337)
- ExcludedFromReflection[account] = exclude (#715)
- _excludeFromReflection(dexPair,true) (#339)
- ExcludedFromReflection[account] = exclude (#715)
- addTokens(msg.sender,(InitialSupply * 999) / 1000) (#325)
- Shares[account] = newShares (#481)
- addTokens(address(0xdead),InitialSupply / 1000) (#329)
- Shares[account] = newShares (#481)
- _excludeFromReflection(tokenAddress,true) (#337)
- Shares[account] = 0 (#722)
- Shares[account] = shares_scope_0 (#734)
- _excludeFromReflection(dexPair,true) (#339)
- Shares[account] = 0 (#722)
- Shares[account] = shares_scope_0 (#734)
- _isMarketMaker[dexPair] = true (#323)
- addTokens(msg.sender,(InitialSupply * 999) / 1000) (#325)
- _totalExcludedTokens += tokens (#475)
- addTokens(address(0xdead),InitialSupply / 1000) (#329)
- _totalExcludedTokens += tokens (#475)
- _excludeFromReflection(tokenAddress,true) (#337)
- _totalExcludedTokens += tokens (#726)
- _totalExcludedTokens -= tokens (#730)
- _excludeFromReflection(dexPair,true) (#339)
- _totalExcludedTokens += tokens (#726)
- _totalExcludedTokens -= tokens (#730)
- addTokens(msg.sender,(InitialSupply * 999) / 1000) (#325)
- _totalShares += (newShares - oldShares) (#483)
- addTokens(address(0xdead),InitialSupply / 1000) (#329)
- _totalShares += (newShares - oldShares) (#483)
- _excludeFromReflection(tokenAddress,true) (#337)
- _totalShares -= shares (#720)
- _totalShares += shares_scope_0 (#736)
- _excludeFromReflection(dexPair,true) (#339)
- _totalShares -= shares (#720)
- _totalShares += shares_scope_0 (#736)
- taxReceiver = new TaxReceiver(dexPair,WETH) (#346)
Reentrancy in Basenji.constructor() (#313-351):
External calls:
- dexPair = IPancakeFactory(pancakeRouter.factory()).createPair(tokenAddress,WETH) (#316-319)
- SetMarketingWallet(msg.sender) (#349)
- taxReceiver.SetMarketingWallet(newMarketingWallet) (#741)
- setTaxes(_buyTax,_sellTax,_transferTax,2000,2000,6000) (#350)
- taxReceiver.SetTaxes(Marketing) (#661)
State variables written after the call(s):
- setTaxes(_buyTax,_sellTax,_transferTax,2000,2000,6000) (#350)
- _contractTax = TAX_DENOMINATOR - _reflectionTax (#663)
Reentrancy in Basenji.setTaxes(uint256,uint256,uint256,uint256,uint256,uint256) (#640-666):
External calls:
- taxReceiver.SetTaxes(Marketing) (#661)
State variables written after the call(s):
- _contractTax = TAX_DENOMINATOR - _reflectionTax (#663)
Reentrancy in Basenji.transferFrom(address,address,uint256) (#882-896):
External calls:
- _transfer(sender,recipient,amount) (#887)
- pancakeRouter.swapExactTokensForETH(tokens,0,path,address(taxReceiver),block.timestamp) (#569-575)
State variables written after the call(s):
- _approve(sender,msg.sender,currentAllowance - amount) (#893)
- _allowances[owner_][spender] = amount (#867)
Reentrancy in Basenji.transferWithFee(address,address,uint256) (#402-437):
External calls:
- _swapContractToken(false) (#422)
- pancakeRouter.swapExactTokensForETH(tokens,0,path,address(taxReceiver),block.timestamp) (#569-575)
State variables written after the call(s):
- removeTokens(sender,amount) (#430)
- Shares[account] = newShares (#505)
- addTokens(recipient,amount - TaxedAmount) (#432)
- Shares[account] = newShares (#481)
- addTokens(address(this),ContractToken) (#434)
- Shares[account] = newShares (#481)
- reflectTokens(ReflectToken) (#436)
- TokensPerShare += (tokens * DividentMagnifier) / _totalShares (#516)
- removeTokens(sender,amount) (#430)
- _totalExcludedTokens -= (Balance - newBalance) (#499)
- addTokens(recipient,amount - TaxedAmount) (#432)
- _totalExcludedTokens += tokens (#475)
- addTokens(address(this),ContractToken) (#434)
- _totalExcludedTokens += tokens (#475)
- removeTokens(sender,amount) (#430)
- _totalShares -= (oldShares - newShares) (#507)
- addTokens(recipient,amount - TaxedAmount) (#432)
- _totalShares += (newShares - oldShares) (#483)
- addTokens(address(this),ContractToken) (#434)
- _totalShares += (newShares - oldShares) (#483)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Basenji.SetMarketingWallet(address) (#740-744):
External calls:
- taxReceiver.SetMarketingWallet(newMarketingWallet) (#741)
Event emitted after the call(s):
- OnSetMarketingWallet(newMarketingWallet) (#743)
Reentrancy in Basenji._transfer(address,address,uint256) (#371-391):
External calls:
- transferWithFee(sender,recipient,amount) (#388)
- pancakeRouter.swapExactTokensForETH(tokens,0,path,address(taxReceiver),block.timestamp) (#569-575)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#390)
Reentrancy in Basenji.constructor() (#313-351):
External calls:
- dexPair = IPancakeFactory(pancakeRouter.factory()).createPair(tokenAddress,WETH) (#316-319)
Event emitted after the call(s):
- Transfer(address(0),address(0xdead),InitialSupply / 1000) (#331)
- Transfer(address(0),msg.sender,(InitialSupply * 999) / 1000) (#333)
Reentrancy in Basenji.constructor() (#313-351):
External calls:
- dexPair = IPancakeFactory(pancakeRouter.factory()).createPair(tokenAddress,WETH) (#316-319)
- SetMarketingWallet(msg.sender) (#349)
- taxReceiver.SetMarketingWallet(newMarketingWallet) (#741)
Event emitted after the call(s):
- OnSetMarketingWallet(newMarketingWallet) (#743)
- SetMarketingWallet(msg.sender) (#349)
Reentrancy in Basenji.constructor() (#313-351):
External calls:
- dexPair = IPancakeFactory(pancakeRouter.factory()).createPair(tokenAddress,WETH) (#316-319)
- SetMarketingWallet(msg.sender) (#349)
- taxReceiver.SetMarketingWallet(newMarketingWallet) (#741)
- setTaxes(_buyTax,_sellTax,_transferTax,2000,2000,6000) (#350)
- taxReceiver.SetTaxes(Marketing) (#661)
Event emitted after the call(s):
- OnSetTaxes(Buy,Sell,Transfer,Reflection,Liquidity,Marketing) (#665)
- setTaxes(_buyTax,_sellTax,_transferTax,2000,2000,6000) (#350)
Reentrancy in Basenji.setTaxes(uint256,uint256,uint256,uint256,uint256,uint256) (#640-666):
External calls:
- taxReceiver.SetTaxes(Marketing) (#661)
Event emitted after the call(s):
- OnSetTaxes(Buy,Sell,Transfer,Reflection,Liquidity,Marketing) (#665)
Reentrancy in Basenji.transferFrom(address,address,uint256) (#882-896):
External calls:
- _transfer(sender,recipient,amount) (#887)
- pancakeRouter.swapExactTokensForETH(tokens,0,path,address(taxReceiver),block.timestamp) (#569-575)
Event emitted after the call(s):
- Approval(owner_,spender,amount) (#869)
- _approve(sender,msg.sender,currentAllowance - amount) (#893)
Apply the check-effects-interactions pattern.
Additional information: link
Basenji.transferWithFee(address,address,uint256) (#402-437) uses timestamp for comparisons
Dangerous comparisons:
- require(bool)(block.timestamp >= launchTimestamp) (#407)
Basenji.getBuyTax(address,uint256,uint256,address) (#439-449) uses timestamp for comparisons
Dangerous comparisons:
- require(bool)(block.timestamp >= launchTimestamp) (#441)
Basenji.getSellTax(address,uint256,uint256,address) (#450-458) uses timestamp for comparisons
Dangerous comparisons:
- require(bool)(block.timestamp >= launchTimestamp) (#452)
Basenji.setLaunchTimestamp(uint256) (#683-691) uses timestamp for comparisons
Dangerous comparisons:
- require(bool)(block.timestamp < launchTimestamp) (#684)
- require(bool)(Timestamp >= block.timestamp) (#686)
Basenji.SetUnlockTimestamp(uint256) (#788-796) uses timestamp for comparisons
Dangerous comparisons:
- require(bool)(newUnlockTime > _liquidityUnlockTime) (#791)
Avoid relying on block.timestamp.
Additional information: link
Basenji._contractTax (#219) is set pre-construction with a non-constant function or state variable:
- TAX_DENOMINATOR - _reflectionTax
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
solc-0.8.15 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 TaxReceiver.receive() (#177-187):
- (sent) = MarketingWallet.call{value: address(this).balance * MarketingTax / TAX_DENOMINATOR}() (#181)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Basenji (#189-924) should inherit from IReflectToken (#148-150)
Inherit from the missing interface or contract.
Additional information: link
Function IDEXRouter.WETH() (#77) is not in mixedCase
Variable Ownable._owner (#81) is not in mixedCase
Parameter ITaxHandler.getBuyTax(address,uint256,uint256,address).BaseTax (#145) is not in mixedCase
Parameter ITaxHandler.getSellTax(address,uint256,uint256,address).BaseTax (#146) is not in mixedCase
Function IReflectToken.ReflectTokens(uint256) (#149) is not in mixedCase
Function IMemeSwap.ListToken(address,address,uint256,uint256,address,uint256,address,string,bool) (#152) is not in mixedCase
Parameter IMemeSwap.ListToken(address,address,uint256,uint256,address,uint256,address,string,bool).TokenShare (#152) is not in mixedCase
Parameter IMemeSwap.ListToken(address,address,uint256,uint256,address,uint256,address,string,bool).TaxHandler (#152) is not in mixedCase
Function IMemeSwap.ListTokenSimple(address,address,uint256,uint256,address,string) (#153) is not in mixedCase
Function TaxReceiver.SetTaxes(uint256) (#160-163) is not in mixedCase
Parameter TaxReceiver.SetTaxes(uint256).MarketingTax_ (#160) is not in mixedCase
Function TaxReceiver.SetMarketingWallet(address) (#164-167) is not in mixedCase
Variable TaxReceiver.WETH (#159) is not in mixedCase
Variable TaxReceiver.MarketingTax (#168) is not in mixedCase
Variable TaxReceiver.MarketingWallet (#169) is not in mixedCase
Event BasenjionSetManualSwap(bool) (#282) is not in CapWords
Function Basenji.ListTokenOnMemeswap() (#353-364) is not in mixedCase
Parameter Basenji.getBuyTax(address,uint256,uint256,address).BaseTax (#439) is not in mixedCase
Parameter Basenji.getSellTax(address,uint256,uint256,address).BaseTax (#450) is not in mixedCase
Function Basenji.EcosystemFee(uint256) (#459-463) is not in mixedCase
Function Basenji.TokensFromShares(uint256) (#519-521) is not in mixedCase
Function Basenji.SharesFromTokens(uint256) (#523-525) is not in mixedCase
Function Basenji.ReflectTokens(uint256) (#591-597) is not in mixedCase
Parameter Basenji.setAMM(address,bool).AMM (#632) is not in mixedCase
Parameter Basenji.setTaxes(uint256,uint256,uint256,uint256,uint256,uint256).Buy (#641) is not in mixedCase
Parameter Basenji.setTaxes(uint256,uint256,uint256,uint256,uint256,uint256).Sell (#642) is not in mixedCase
Parameter Basenji.setTaxes(uint256,uint256,uint256,uint256,uint256,uint256).Transfer (#643) is not in mixedCase
Parameter Basenji.setTaxes(uint256,uint256,uint256,uint256,uint256,uint256).Reflection (#644) is not in mixedCase
Parameter Basenji.setTaxes(uint256,uint256,uint256,uint256,uint256,uint256).Liquidity (#645) is not in mixedCase
Parameter Basenji.setTaxes(uint256,uint256,uint256,uint256,uint256,uint256).Marketing (#646) is not in mixedCase
Parameter Basenji.setLaunchTimestamp(uint256).Timestamp (#683) is not in mixedCase
Function Basenji.SetMarketingWallet(address) (#740-744) is not in mixedCase
Function Basenji.LockLiquidityForSeconds(uint256) (#784-786) is not in mixedCase
Function Basenji.SetUnlockTimestamp(uint256) (#788-796) is not in mixedCase
Function Basenji.RescueTokens(address) (#802-809) is not in mixedCase
Variable Basenji.Shares (#194) is not in mixedCase
Variable Basenji.ExcludedBalances (#198) is not in mixedCase
Variable Basenji.ExcludedFromReflection (#200) is not in mixedCase
Variable Basenji.ExcludedFromFees (#202) is not in mixedCase
Variable Basenji._isMarketMaker (#208) is not in mixedCase
Variable Basenji._buyTax (#210) is not in mixedCase
Variable Basenji._sellTax (#212) is not in mixedCase
Variable Basenji._transferTax (#214) is not in mixedCase
Variable Basenji._reflectionTax (#216) is not in mixedCase
Variable Basenji._contractTax (#219) is not in mixedCase
Variable Basenji._swapTreshold (#223) is not in mixedCase
Variable Basenji._liquifyTreshold (#227) is not in mixedCase
Variable Basenji._manualSwap (#231) is not in mixedCase
Variable Basenji._liquidityUnlockTime (#235) is not in mixedCase
Constant Basenji.DividentMagnifier (#243) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Basenji.TokensPerShare (#245) is not in mixedCase
Constant Basenji._decimals (#247) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Basenji.InitialSupply (#249) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Basenji._totalShares (#253) is not in mixedCase
Variable Basenji._totalExcludedTokens (#257) is not in mixedCase
Constant Basenji.DEXrouter (#276-277) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Basenji.Memeswap (#278) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Basenji.MemeswapDiscount (#438) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Basenji._pancakeRouter (#269) is never used in Basenji (#189-924)
Remove unused state variables.
Additional information: link
Basenji.MemeswapDiscount (#438) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#119-122)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#128-134)
isOverLiquified() should be declared external:
- Basenji.isOverLiquified() (#579-583)
setExcludedFromFee(address,bool) should be declared external:
- Basenji.setExcludedFromFee(address,bool) (#668-677)
setLaunchInSeconds(uint256) should be declared external:
- Basenji.setLaunchInSeconds(uint256) (#679-681)
getInfo() should be declared external:
- Basenji.getInfo() (#753-776)
LockLiquidityForSeconds(uint256) should be declared external:
- Basenji.LockLiquidityForSeconds(uint256) (#784-786)
RescueTokens(address) should be declared external:
- Basenji.RescueTokens(address) (#802-809)
Use the external attribute for functions never called from the contract.
Additional information: link
Unable to verify that token and website are owned by the same team (no listings + unable to find contract on website)
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find token contract audit
Unable to find KYC or doxxing proof
Unable to find code repository for the project
Unable to verify token contract address on the website
Unable to find audit link on the website
Unable to find token on CoinGecko
Additional information: link
Unable to find token on CoinMarketCap
Additional information: link
Token is not listed at Mobula.Finance
Additional information: link
Unable to find token on CoinHunt
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
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account
Twitter account has few posts