The Koji Earth project aims to provide KOJI token-holders with original comic book NFTs created by the Amco-studio. Also, the project is developing an online store with official KOJI Merchandise. Automatically, the KOJI’s smart contract deducts 3% from every transaction and spreads it as follow: 1% goes to charity, 1% goes to holders, 0.5% goes to the burning wallet, and the rest 0.5% goes to the growth fund.
KojiEarth.swapBack() (contracts/KojiEarth_.sol#943-1037) sends eth to arbitrary user
Dangerous calls:
- (successTeam3) = address(nftRewardWallet).call{gas: walletGas,value: amountBNBnft}() (contracts/KojiEarth_.sol#1004)
- (successTeam1) = address(charityWallet).call{gas: walletGas,value: amountBNBcharity}() (contracts/KojiEarth_.sol#1022)
- (successTeam2) = address(adminWallet).call{gas: walletGas,value: amountBNBadmin}() (contracts/KojiEarth_.sol#1027)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in DividendDistributor.sweep(uint256) (contracts/KojiEarth_.sol#468-499):
External calls:
- impoundDividend(shareholders[currentIndex]) (contracts/KojiEarth_.sol#487)
- (successShareholder) = address(_token).call{gas: distribWalletGas,value: netamount}() (contracts/KojiEarth_.sol#536)
State variables written after the call(s):
- currentIndex ++ (contracts/KojiEarth_.sol#493)
Apply the check-effects-interactions pattern.
Additional information: link
KojiEarth.transferBEP20Tokens(address,address,uint256) (contracts/KojiEarth_.sol#1157-1160) ignores return value by IBEP20(_tokenAddr).transfer(_to,_amount) (contracts/KojiEarth_.sol#1159)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
KojiEarth.setFee(uint256) (contracts/KojiEarth_.sol#1097-1102) contains a tautology or contradiction:
- require(bool,string)(_totalFee >= 0 && _totalFee <= 100,Total Fee must be between 0 and 100 (100 = ten percent)) (contracts/KojiEarth_.sol#1099)
Fix the incorrect comparison by changing the value type or the comparison.
Additional information: link
DividendDistributor.setShare(address,uint256) (contracts/KojiEarth_.sol#320-361) uses a dangerous strict equality:
- amount == 0 && shares[shareholder].amount > 0 (contracts/KojiEarth_.sol#330)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
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.
KojiEarth.setEnablePartners(bool)._status (contracts/KojiEarth_.sol#1373) shadows:
- ReentrancyGuard._status (contracts/KojiEarth_.sol#158) (state variable)
Rename the local variables that shadow another component.
Additional information: link
KojiEarth.takeFee(address,address,uint256) (contracts/KojiEarth_.sol#891-934) performs a multiplication on the result of a division:
-discountFee = regularFee.mul(partnerFeeLimiter).div(100) (contracts/KojiEarth_.sol#917)
-feeAmount = amount.mul(discountFee).div(feeDenominator) (contracts/KojiEarth_.sol#922)
Consider ordering multiplication before division.
Additional information: link
KojiEarth.setPartnerFeeLimiter(uint256) (contracts/KojiEarth_.sol#1378-1381) should emit an event for:
- partnerFeeLimiter = _limiter (contracts/KojiEarth_.sol#1380)
Emit an event for critical parameter changes.
Additional information: link
KojiEarth.rescueBNB()._owner (contracts/KojiEarth_.sol#1147) lacks a zero-check on :
- _owner.transfer(address(this).balance) (contracts/KojiEarth_.sol#1148)
Check that the address is not zero.
Additional information: link
KojiEarth.takeFee(address,address,uint256) (contracts/KojiEarth_.sol#891-934) has external calls inside a loop: IBEP20(address(tokenpartners.token_addr)).balanceOf(address(recipient)) >= tokenpartners.minHoldAmount (contracts/KojiEarth_.sol#907)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in KojiEarth.swapBack() (contracts/KojiEarth_.sol#943-1037):
External calls:
- IBEP20(address(this)).transfer(address(DEAD),burnAmount) (contracts/KojiEarth_.sol#948)
- IBEP20(address(this)).transfer(address(stakePoolWallet),stakePoolAmount) (contracts/KojiEarth_.sol#956)
- IWETH(WETH).transfer(pair,balance) (contracts/KojiEarth_.sol#976)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (contracts/KojiEarth_.sol#982-988)
- (successTeam3) = address(nftRewardWallet).call{gas: walletGas,value: amountBNBnft}() (contracts/KojiEarth_.sol#1004)
- distributor.deposit{value: amountBNBReflection}() (contracts/KojiEarth_.sol#1017)
- (successTeam1) = address(charityWallet).call{gas: walletGas,value: amountBNBcharity}() (contracts/KojiEarth_.sol#1022)
- (successTeam2) = address(adminWallet).call{gas: walletGas,value: amountBNBadmin}() (contracts/KojiEarth_.sol#1027)
External calls sending eth:
- (successTeam3) = address(nftRewardWallet).call{gas: walletGas,value: amountBNBnft}() (contracts/KojiEarth_.sol#1004)
- distributor.deposit{value: amountBNBReflection}() (contracts/KojiEarth_.sol#1017)
- (successTeam1) = address(charityWallet).call{gas: walletGas,value: amountBNBcharity}() (contracts/KojiEarth_.sol#1022)
- (successTeam2) = address(adminWallet).call{gas: walletGas,value: amountBNBadmin}() (contracts/KojiEarth_.sol#1027)
State variables written after the call(s):
- totalAdmin = totalAdmin.add(amountBNBadmin) (contracts/KojiEarth_.sol#1030)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in KojiEarth.constructor() (contracts/KojiEarth_.sol#762-795):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WETH,address(this)) (contracts/KojiEarth_.sol#770)
Event emitted after the call(s):
- Transfer(address(0),_presaler,_totalSupply) (contracts/KojiEarth_.sol#793)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.changeMinHoldAmount(uint256,uint256) (contracts/KojiEarth_.sol#593-630) uses timestamp for comparisons
Dangerous comparisons:
- shares[shareholders[currentIndex]].amount == 0 && shareholderExpired[shareholders[currentIndex]] == 9999999999 (contracts/KojiEarth_.sol#610)
Avoid relying on block.timestamp.
Additional information: link
KojiEarth.isContract(address) (contracts/KojiEarth_.sol#1279-1287) uses assembly
- INLINE ASM (contracts/KojiEarth_.sol#1283-1285)
Do not use evm assembly.
Additional information: link
DividendDistributor.changeMinHoldAmount(uint256,uint256) (contracts/KojiEarth_.sol#593-630) has costly operations inside a loop:
- currentIndex ++ (contracts/KojiEarth_.sol#626)
Use a local variable to hold the loop computation result.
Additional information: link
KojiEarth._maxWalletToken (contracts/KojiEarth_.sol#693) is set pre-construction with a non-constant function or state variable:
- _totalSupply
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.9 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 KojiEarth.swapBack() (contracts/KojiEarth_.sol#943-1037):
- (successTeam3) = address(nftRewardWallet).call{gas: walletGas,value: amountBNBnft}() (contracts/KojiEarth_.sol#1004)
- (successTeam1) = address(charityWallet).call{gas: walletGas,value: amountBNBcharity}() (contracts/KojiEarth_.sol#1022)
- (successTeam2) = address(adminWallet).call{gas: walletGas,value: amountBNBadmin}() (contracts/KojiEarth_.sol#1027)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable KojiEarth.WETHaddedToPool (contracts/KojiEarth_.sol#723) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable KojiEarth.swapBack().successTeam2 (contracts/KojiEarth_.sol#1027) is too similar to KojiEarth.swapBack().successTeam3 (contracts/KojiEarth_.sol#1004)
Prevent variables from having similar names.
Additional information: link
KojiEarth.slitherConstructorVariables() (contracts/KojiEarth_.sol#677-1399) uses literals with too many digits:
- swapThreshold = 100000000000000 (contracts/KojiEarth_.sol#758)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
KojiEarth.depositGas (contracts/KojiEarth_.sol#756) is never used in KojiEarth (contracts/KojiEarth_.sol#677-1399)
Remove unused state variables.
Additional information: link
KojiEarth.feeDenominator (contracts/KojiEarth_.sol#722) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
transferBEP20Tokens(address,address,uint256) should be declared external:
- KojiEarth.transferBEP20Tokens(address,address,uint256) (contracts/KojiEarth_.sol#1157-1160)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract name (koji.earth) 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.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
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.
Young tokens have high risks of 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 CoinMarketCap listing / rank
Twitter account link seems to be invalid
Unable to find Discord account