Hamster Token is a decentralized meme token of the community created on the BSC Network.
Hamster.addLiquidity(uint256,uint256) (Hamster.sol#415-430) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Hamster.sol#421-428)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in Hamster._transfer(address,address,uint256) (Hamster.sol#288-355):
External calls:
- swapAndSendToFee(marketingTokens) (Hamster.sol#315)
- IERC20(BTC).transfer(_marketingWalletAddress,newBalance) (Hamster.sol#361)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Hamster.sol#406-412)
- swapAndLiquify(swapTokens) (Hamster.sol#318)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Hamster.sol#421-428)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Hamster.sol#387-393)
- swapAndSendDividends(sellTokens) (Hamster.sol#321)
- success = IERC20(BTC).transfer(address(dividendTracker),dividends) (Hamster.sol#435)
- dividendTracker.distributeBTCDividends(dividends) (Hamster.sol#438)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Hamster.sol#406-412)
External calls sending eth:
- swapAndLiquify(swapTokens) (Hamster.sol#318)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Hamster.sol#421-428)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (Hamster.sol#337)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (ERC20.sol#221)
- _balances[recipient] = _balances[recipient].add(amount) (ERC20.sol#222)
- super._transfer(from,to,amount) (Hamster.sol#340)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (ERC20.sol#221)
- _balances[recipient] = _balances[recipient].add(amount) (ERC20.sol#222)
- swapping = false (Hamster.sol#323)
Apply the check-effects-interactions pattern.
Additional information: link
Hamster.swapAndSendToFee(uint256) (Hamster.sol#357-362) ignores return value by IERC20(BTC).transfer(_marketingWalletAddress,newBalance) (Hamster.sol#361)
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.
Contract ownership is not renounced (belongs to a wallet)
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.
Redundant expression "this (Context.sol#21)" inContext (Context.sol#15-24)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Hamster.swapTokensAtAmount (Hamster.sol#45) should be constant
Hamster.deadWallet (Hamster.sol#39) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
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.
Hamster.totalFees (Hamster.sol#52) is set pre-construction with a non-constant function or state variable:
- BTCRewardsFee.add(liquidityFee).add(marketingFee)
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
Hamster._transfer(address,address,uint256).lastProcessedIndex (Hamster.sol#348) is a local variable never initialized
Hamster._transfer(address,address,uint256).claims (Hamster.sol#348) is a local variable never initialized
Hamster._transfer(address,address,uint256).iterations (Hamster.sol#348) is a local variable never initialized
Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability.
Additional information: link
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (IterableMapping.sol#13-15)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (ERC20.sol#151-159)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (IterableMapping.sol#24-26)
getAccountAtIndex(uint256) should be declared external:
- HAMDividendTracker.getAccountAtIndex(uint256) (Hamster.sol#538-555)
updateUniswapV2Router(address) should be declared external:
- Hamster.updateUniswapV2Router(address) (Hamster.sol#148-155)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (Ownable.sol#43-46)
isExcludedFromFees(address) should be declared external:
- Hamster.isExcludedFromFees(address) (Hamster.sol#228-230)
decimals() should be declared external:
- ERC20.decimals() (ERC20.sol#88-90)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (DividendPayingToken.sol#98-100)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (IterableMapping.sol#17-22)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (ERC20.sol#192-195)
symbol() should be declared external:
- ERC20.symbol() (ERC20.sol#71-73)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (ERC20.sol#114-117)
distributeBTCDividends(uint256) should be declared external:
- DividendPayingToken.distributeBTCDividends(uint256) (DividendPayingToken.sol#55-66)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (ERC20.sol#173-176)
updateDividendTracker(address) should be declared external:
- Hamster.updateDividendTracker(address) (Hamster.sol#131-146)
withdrawableDividendOf(address) should be declared external:
- Hamster.withdrawableDividendOf(address) (Hamster.sol#232-234)
process(uint256) should be declared external:
- HAMDividendTracker.process(uint256) (Hamster.sol#582-627)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (IterableMapping.sol#30-32)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (Ownable.sol#52-56)
updateGasForProcessing(uint256) should be declared external:
- Hamster.updateGasForProcessing(uint256) (Hamster.sol#209-214)
name() should be declared external:
- ERC20.name() (ERC20.sol#63-65)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- Hamster.excludeMultipleAccountsFromFees(address[],bool) (Hamster.sol#164-170)
withdrawDividend() should be declared external:
- DividendPayingToken.withdrawDividend() (DividendPayingToken.sol#70-72)
- HAMDividendTracker.withdrawDividend() (Hamster.sol#473-475)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- Hamster.setAutomatedMarketMakerPair(address,bool) (Hamster.sol#188-191)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (ERC20.sol#133-136)
dividendTokenBalanceOf(address) should be declared external:
- Hamster.dividendTokenBalanceOf(address) (Hamster.sol#236-238)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (DividendPayingToken.sol#112-114)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (ERC20.sol#122-124)
Use the external attribute for functions never called from the contract.
Additional information: link
DividendPayingToken._withdrawDividendOfUser(address) (DividendPayingToken.sol#76-92) has external calls inside a loop: success = IERC20(BTC).transfer(user,_withdrawableDividend) (DividendPayingToken.sol#81)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in Hamster.updateDividendTracker(address) (Hamster.sol#131-146):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (Hamster.sol#138)
- newDividendTracker.excludeFromDividends(address(this)) (Hamster.sol#139)
- newDividendTracker.excludeFromDividends(owner()) (Hamster.sol#140)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (Hamster.sol#141)
State variables written after the call(s):
- dividendTracker = newDividendTracker (Hamster.sol#145)
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (DividendPayingToken.sol#76-92):
External calls:
- success = IERC20(BTC).transfer(user,_withdrawableDividend) (DividendPayingToken.sol#81)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (DividendPayingToken.sol#84)
Apply the check-effects-interactions pattern.
Additional information: link
Hamster._transfer(address,address,uint256) (Hamster.sol#288-355) ignores return value by dividendTracker.process(gas) (Hamster.sol#348-353)
Hamster.claim() (Hamster.sol#275-277) ignores return value by dividendTracker.processAccount(msg.sender,false) (Hamster.sol#276)
Hamster.addLiquidity(uint256,uint256) (Hamster.sol#415-430) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Hamster.sol#421-428)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.constructor(string,string)._name (DividendPayingToken.sol#50) shadows:
- ERC20._name (ERC20.sol#43) (state variable)
DividendPayingToken.accumulativeDividendOf(address)._owner (DividendPayingToken.sol#122) shadows:
- Ownable._owner (Ownable.sol#8) (state variable)
DividendPayingToken.withdrawableDividendOf(address)._owner (DividendPayingToken.sol#105) shadows:
- Ownable._owner (Ownable.sol#8) (state variable)
DividendPayingToken.constructor(string,string)._symbol (DividendPayingToken.sol#50) shadows:
- ERC20._symbol (ERC20.sol#44) (state variable)
DividendPayingToken.dividendOf(address)._owner (DividendPayingToken.sol#98) shadows:
- Ownable._owner (Ownable.sol#8) (state variable)
DividendPayingToken.withdrawnDividendOf(address)._owner (DividendPayingToken.sol#112) shadows:
- Ownable._owner (Ownable.sol#8) (state variable)
Rename the local variables that shadow another component.
Additional information: link
Hamster.setMarketingFee(uint256) (Hamster.sol#184-186) should emit an event for:
- marketingFee = value (Hamster.sol#185)
Hamster.setBTCRewardsFee(uint256) (Hamster.sol#176-178) should emit an event for:
- BTCRewardsFee = value (Hamster.sol#177)
Hamster.setLiquiditFee(uint256) (Hamster.sol#180-182) should emit an event for:
- liquidityFee = value (Hamster.sol#181)
Emit an event for critical parameter changes.
Additional information: link
Hamster.updateUniswapV2Router(address)._uniswapV2Pair (Hamster.sol#152-153) lacks a zero-check on :
- uniswapV2Pair = _uniswapV2Pair (Hamster.sol#154)
Hamster.setMarketingWallet(address).wallet (Hamster.sol#172) lacks a zero-check on :
- _marketingWalletAddress = wallet (Hamster.sol#173)
Check that the address is not zero.
Additional information: link
Variable 'Hamster._transfer(address,address,uint256).claims (Hamster.sol#348)' in Hamster._transfer(address,address,uint256) (Hamster.sol#288-355) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (Hamster.sol#349)
Variable 'Hamster._transfer(address,address,uint256).lastProcessedIndex (Hamster.sol#348)' in Hamster._transfer(address,address,uint256) (Hamster.sol#288-355) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (Hamster.sol#349)
Variable 'Hamster._transfer(address,address,uint256).iterations (Hamster.sol#348)' in Hamster._transfer(address,address,uint256) (Hamster.sol#288-355) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (Hamster.sol#349)
Move all variable declarations prior to any usage of the variable, and ensure that reaching a variable declaration does not depend on some conditional if it is used unconditionally.
Additional information: link
Reentrancy in Hamster._transfer(address,address,uint256) (Hamster.sol#288-355):
External calls:
- swapAndSendToFee(marketingTokens) (Hamster.sol#315)
- IERC20(BTC).transfer(_marketingWalletAddress,newBalance) (Hamster.sol#361)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Hamster.sol#406-412)
- swapAndLiquify(swapTokens) (Hamster.sol#318)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Hamster.sol#421-428)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Hamster.sol#387-393)
External calls sending eth:
- swapAndLiquify(swapTokens) (Hamster.sol#318)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Hamster.sol#421-428)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (Hamster.sol#318)
- _allowances[owner][spender] = amount (ERC20.sol#287)
Reentrancy in Hamster._transfer(address,address,uint256) (Hamster.sol#288-355):
External calls:
- swapAndSendToFee(marketingTokens) (Hamster.sol#315)
- IERC20(BTC).transfer(_marketingWalletAddress,newBalance) (Hamster.sol#361)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Hamster.sol#406-412)
- swapAndLiquify(swapTokens) (Hamster.sol#318)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Hamster.sol#421-428)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Hamster.sol#387-393)
- swapAndSendDividends(sellTokens) (Hamster.sol#321)
- success = IERC20(BTC).transfer(address(dividendTracker),dividends) (Hamster.sol#435)
- dividendTracker.distributeBTCDividends(dividends) (Hamster.sol#438)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Hamster.sol#406-412)
External calls sending eth:
- swapAndLiquify(swapTokens) (Hamster.sol#318)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Hamster.sol#421-428)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (Hamster.sol#321)
- _allowances[owner][spender] = amount (ERC20.sol#287)
Reentrancy in Hamster.swapAndLiquify(uint256) (Hamster.sol#364-376):
External calls:
- swapTokensForEth(half) (Hamster.sol#370)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Hamster.sol#387-393)
- addLiquidity(otherHalf,newBalance) (Hamster.sol#373)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Hamster.sol#421-428)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (Hamster.sol#373)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Hamster.sol#421-428)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (Hamster.sol#373)
- _allowances[owner][spender] = amount (ERC20.sol#287)
Reentrancy in HAMDividendTracker.processAccount(address,bool) (Hamster.sol#629-639):
External calls:
- amount = _withdrawDividendOfUser(account) (Hamster.sol#630)
- success = IERC20(BTC).transfer(user,_withdrawableDividend) (DividendPayingToken.sol#81)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (Hamster.sol#633)
Reentrancy in Hamster.updateUniswapV2Router(address) (Hamster.sol#148-155):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (Hamster.sol#152-153)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (Hamster.sol#154)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Hamster._setAutomatedMarketMakerPair(address,bool) (Hamster.sol#197-206):
External calls:
- dividendTracker.excludeFromDividends(pair) (Hamster.sol#202)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (Hamster.sol#205)
Reentrancy in Hamster.swapAndLiquify(uint256) (Hamster.sol#364-376):
External calls:
- swapTokensForEth(half) (Hamster.sol#370)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Hamster.sol#387-393)
- addLiquidity(otherHalf,newBalance) (Hamster.sol#373)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Hamster.sol#421-428)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (Hamster.sol#373)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Hamster.sol#421-428)
Event emitted after the call(s):
- Approval(owner,spender,amount) (ERC20.sol#288)
- addLiquidity(otherHalf,newBalance) (Hamster.sol#373)
- SwapAndLiquify(half,newBalance,otherHalf) (Hamster.sol#375)
Reentrancy in Hamster._transfer(address,address,uint256) (Hamster.sol#288-355):
External calls:
- swapAndSendToFee(marketingTokens) (Hamster.sol#315)
- IERC20(BTC).transfer(_marketingWalletAddress,newBalance) (Hamster.sol#361)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Hamster.sol#406-412)
- swapAndLiquify(swapTokens) (Hamster.sol#318)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Hamster.sol#421-428)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Hamster.sol#387-393)
- swapAndSendDividends(sellTokens) (Hamster.sol#321)
- success = IERC20(BTC).transfer(address(dividendTracker),dividends) (Hamster.sol#435)
- dividendTracker.distributeBTCDividends(dividends) (Hamster.sol#438)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Hamster.sol#406-412)
- dividendTracker.setBalance(address(from),balanceOf(from)) (Hamster.sol#342)
- dividendTracker.setBalance(address(to),balanceOf(to)) (Hamster.sol#343)
- dividendTracker.process(gas) (Hamster.sol#348-353)
External calls sending eth:
- swapAndLiquify(swapTokens) (Hamster.sol#318)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Hamster.sol#421-428)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (Hamster.sol#349)
Reentrancy in Hamster.updateDividendTracker(address) (Hamster.sol#131-146):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (Hamster.sol#138)
- newDividendTracker.excludeFromDividends(address(this)) (Hamster.sol#139)
- newDividendTracker.excludeFromDividends(owner()) (Hamster.sol#140)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (Hamster.sol#141)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (Hamster.sol#143)
Reentrancy in HAMDividendTracker.processAccount(address,bool) (Hamster.sol#629-639):
External calls:
- amount = _withdrawDividendOfUser(account) (Hamster.sol#630)
- success = IERC20(BTC).transfer(user,_withdrawableDividend) (DividendPayingToken.sol#81)
Event emitted after the call(s):
- Claim(account,amount,automatic) (Hamster.sol#634)
Reentrancy in Hamster.processDividendTracker(uint256) (Hamster.sol#270-273):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (Hamster.sol#271)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (Hamster.sol#272)
Reentrancy in Hamster._transfer(address,address,uint256) (Hamster.sol#288-355):
External calls:
- swapAndSendToFee(marketingTokens) (Hamster.sol#315)
- IERC20(BTC).transfer(_marketingWalletAddress,newBalance) (Hamster.sol#361)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Hamster.sol#406-412)
- swapAndLiquify(swapTokens) (Hamster.sol#318)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Hamster.sol#421-428)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Hamster.sol#387-393)
- swapAndSendDividends(sellTokens) (Hamster.sol#321)
- success = IERC20(BTC).transfer(address(dividendTracker),dividends) (Hamster.sol#435)
- dividendTracker.distributeBTCDividends(dividends) (Hamster.sol#438)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Hamster.sol#406-412)
External calls sending eth:
- swapAndLiquify(swapTokens) (Hamster.sol#318)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Hamster.sol#421-428)
Event emitted after the call(s):
- Approval(owner,spender,amount) (ERC20.sol#288)
- swapAndSendDividends(sellTokens) (Hamster.sol#321)
- SendDividends(tokens,dividends) (Hamster.sol#439)
- swapAndSendDividends(sellTokens) (Hamster.sol#321)
- Transfer(sender,recipient,amount) (ERC20.sol#223)
- super._transfer(from,address(this),fees) (Hamster.sol#337)
- Transfer(sender,recipient,amount) (ERC20.sol#223)
- super._transfer(from,to,amount) (Hamster.sol#340)
Reentrancy in Hamster.swapAndSendDividends(uint256) (Hamster.sol#432-441):
External calls:
- swapTokensForBTC(tokens) (Hamster.sol#433)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Hamster.sol#406-412)
- success = IERC20(BTC).transfer(address(dividendTracker),dividends) (Hamster.sol#435)
- dividendTracker.distributeBTCDividends(dividends) (Hamster.sol#438)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (Hamster.sol#439)
Reentrancy in Hamster._transfer(address,address,uint256) (Hamster.sol#288-355):
External calls:
- swapAndSendToFee(marketingTokens) (Hamster.sol#315)
- IERC20(BTC).transfer(_marketingWalletAddress,newBalance) (Hamster.sol#361)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Hamster.sol#406-412)
- swapAndLiquify(swapTokens) (Hamster.sol#318)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Hamster.sol#421-428)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (Hamster.sol#387-393)
External calls sending eth:
- swapAndLiquify(swapTokens) (Hamster.sol#318)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (Hamster.sol#421-428)
Event emitted after the call(s):
- Approval(owner,spender,amount) (ERC20.sol#288)
- swapAndLiquify(swapTokens) (Hamster.sol#318)
- SwapAndLiquify(half,newBalance,otherHalf) (Hamster.sol#375)
- swapAndLiquify(swapTokens) (Hamster.sol#318)
Apply the check-effects-interactions pattern.
Additional information: link
HAMDividendTracker.getAccount(address) (Hamster.sol#502-536) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (Hamster.sol#535)
HAMDividendTracker.canAutoClaim(uint256) (Hamster.sol#557-563) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (Hamster.sol#558)
- block.timestamp.sub(lastClaimTime) >= claimWait (Hamster.sol#562)
Avoid relying on block.timestamp.
Additional information: link
SafeMathInt.div(int256,int256) (SafeMathInt.sol#53-59) is never used and should be removed
SafeMathInt.abs(int256) (SafeMathInt.sol#82-85) is never used and should be removed
SafeMathInt.mul(int256,int256) (SafeMathInt.sol#41-48) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (SafeMath.sol#142-145) is never used and should be removed
Context._msgData() (Context.sol#20-23) is never used and should be removed
SafeMath.mod(uint256,uint256) (SafeMath.sol#126-128) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (DividendPayingToken.sol#132-138) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.6.2 (IUniswapV2Factory.sol#3) allows old versions
Pragma version^0.6.2 (DividendPayingToken.sol#3) allows old versions
Pragma version^0.6.2 (IERC20Metadata.sol#3) allows old versions
Pragma version^0.6.2 (IUniswapV2Pair.sol#3) allows old versions
Pragma version^0.6.2 (SafeMathUint.sol#3) allows old versions
Pragma version^0.6.2 (SafeMathInt.sol#28) allows old versions
Pragma version^0.6.2 (IERC20.sol#3) allows old versions
Pragma version^0.6.2 (ERC20.sol#3) allows old versions
Pragma version^0.6.2 (Hamster.sol#18) allows old versions
Pragma version^0.6.2 (Context.sol#3) allows old versions
Pragma version^0.6.2 (SafeMath.sol#3) allows old versions
Pragma version^0.6.2 (IUniswapV2Router.sol#3) allows old versions
Pragma version^0.6.2 (DividendPayingTokenInterface.sol#3) allows old versions
Pragma version^0.6.2 (IterableMapping.sol#2) allows old versions
Pragma version^0.6.2 (DividendPayingTokenOptionalInterface.sol#3) allows old versions
Pragma version^0.6.2 (Ownable.sol#1) allows old versions
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
Function IUniswapV2Pair.PERMIT_TYPEHASH() (IUniswapV2Pair.sol#21) is not in mixedCase
Variable Hamster._marketingWalletAddress (Hamster.sol#41) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (IUniswapV2Pair.sol#38) is not in mixedCase
Constant DividendPayingToken.magnitude (DividendPayingToken.sol#30) is not in UPPER_CASE_WITH_UNDERSCORES
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (IUniswapV2Pair.sol#20) is not in mixedCase
Variable Hamster._isBlacklisted (Hamster.sol#47) is not in mixedCase
Parameter DividendPayingToken.dividendOf(address)._owner (DividendPayingToken.sol#98) is not in mixedCase
Variable DividendPayingToken.BTC (DividendPayingToken.sol#24) is not in mixedCase
Parameter HAMDividendTracker.getAccount(address)._account (Hamster.sol#502) is not in mixedCase
Variable Hamster.BTCRewardsFee (Hamster.sol#49) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (DividendPayingToken.sol#112) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (DividendPayingToken.sol#105) is not in mixedCase
Function IUniswapV2Router01.WETH() (IUniswapV2Router.sol#7) is not in mixedCase
Variable Hamster.BTC (Hamster.sol#43) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (DividendPayingToken.sol#122) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (DividendPayingToken.sol#77) is too similar to HAMDividendTracker.getAccount(address).withdrawableDividends (Hamster.sol#507)
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (IUniswapV2Router.sol#12) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (IUniswapV2Router.sol#13)
Prevent variables from having similar names.
Additional information: link
Hamster.slitherConstructorVariables() (Hamster.sol#29-442) uses literals with too many digits:
- swapTokensAtAmount = 1000000000 * (10 ** 7) (Hamster.sol#45)
HAMDividendTracker.constructor() (Hamster.sol#464-467) uses literals with too many digits:
- minimumTokenBalanceForDividends = 75000000000 * (10 ** 7) (Hamster.sol#466)
Hamster.slitherConstructorVariables() (Hamster.sol#29-442) uses literals with too many digits:
- gasForProcessing = 300000 (Hamster.sol#55)
Hamster.constructor() (Hamster.sol#98-125) uses literals with too many digits:
- _mint(owner(),10000000000000000 * (10 ** 7)) (Hamster.sol#124)
Hamster.slitherConstructorVariables() (Hamster.sol#29-442) uses literals with too many digits:
- deadWallet = 0x000000000000000000000000000000000000dEaD (Hamster.sol#39)
HAMDividendTracker.getAccountAtIndex(uint256) (Hamster.sol#538-555) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (Hamster.sol#549)
Hamster.updateGasForProcessing(uint256) (Hamster.sol#209-214) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,HAM: gasForProcessing must be between 200,000 and 500,000) (Hamster.sol#210)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (SafeMathInt.sol#36) is never used in SafeMathInt (SafeMathInt.sol#34-92)
Remove unused state variables.
Additional information: link
Contract has 12% buy tax and 12% sell tax.
Taxes are suspiciously high (over 10%) and contract ownership is not renounced. Token has a high risk of becoming a honeypot.
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
Token is deployed only at one blockchain
Token is not listed at Mobula.Finance
Additional information: link
Token has relatively low CoinGecko rank
Twitter account link seems to be invalid
Unable to find Discord account