GREMLINS Token Logo

GREM [GREMLINS] Token

ALERT: dead

About GREM

Listings

Token 10 months
CoinMarketCap 10 months
white paper

Gremlins Finance is a meme-based reflection token rewarding Bitcoin.
We have 7-8% rewards depending on buy or sell.
SAS and farming pools.
Partnered with Croxswap.
The token will implement NFT's, NFT Comic, Burn or Win Game.

Social

Laser Scorebeta Last Audit: 6 August 2022

report
Token seems to be unmaintained (no trading, inactive website, inactive socials, etc.).

Anti-Scam

Links


Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)

GREMToken.addLiquidity(uint256,uint256) (GremlinsToken.sol#440-455) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (GremlinsToken.sol#446-453)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in GREMToken._transfer(address,address,uint256) (GremlinsToken.sol#294-365):
External calls:
- swapAndSendToFee(marketingTokens) (GremlinsToken.sol#321)
- IERC20(BTC).transfer(_marketingWalletAddress,newBalance) (GremlinsToken.sol#373)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (GremlinsToken.sol#431-437)
- swapAndLiquify(swapTokens) (GremlinsToken.sol#324)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (GremlinsToken.sol#446-453)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (GremlinsToken.sol#411-417)
- swapAndSendDividends(sellTokens) (GremlinsToken.sol#327)
- success = IERC20(BTC).transfer(address(dividendTracker),dividends) (GremlinsToken.sol#460)
- dividendTracker.distributeBTCDividends(dividends) (GremlinsToken.sol#463)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (GremlinsToken.sol#431-437)
External calls sending eth:
- swapAndLiquify(swapTokens) (GremlinsToken.sol#324)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (GremlinsToken.sol#446-453)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (GremlinsToken.sol#347)
- _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) (GremlinsToken.sol#350)
- _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 (GremlinsToken.sol#329)
Apply the check-effects-interactions pattern.

Additional information: link

GREMToken.swapAndSendToFee(uint256) (GremlinsToken.sol#367-374) ignores return value by IERC20(BTC).transfer(_marketingWalletAddress,newBalance) (GremlinsToken.sol#373)
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 ownership is not renounced (belongs to a wallet)

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

Context._msgData() (Context.sol#20-23) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (DividendPayingToken.sol#132-138) is never used and should be removed
SafeMath.mod(uint256,uint256) (SafeMath.sol#126-128) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (SafeMath.sol#142-145) is never used and should be removed
SafeMathInt.abs(int256) (SafeMathInt.sol#82-85) is never used and should be removed
SafeMathInt.div(int256,int256) (SafeMathInt.sol#53-59) is never used and should be removed
SafeMathInt.mul(int256,int256) (SafeMathInt.sol#41-48) is never used and should be removed
Remove unused functions.

Additional information: link

Pragma version^0.6.2 (Context.sol#3) allows old versions
Pragma version^0.6.2 (DividendPayingToken.sol#3) allows old versions
Pragma version^0.6.2 (DividendPayingTokenInterface.sol#3) allows old versions
Pragma version^0.6.2 (DividendPayingTokenOptionalInterface.sol#3) allows old versions
Pragma version^0.6.2 (ERC20.sol#3) allows old versions
Pragma version^0.6.2 (GremlinsToken.sol#7) allows old versions
Pragma version^0.6.2 (IERC20.sol#3) allows old versions
Pragma version^0.6.2 (IERC20Metadata.sol#3) allows old versions
Pragma version^0.6.2 (IUniswapV2Factory.sol#3) allows old versions
Pragma version^0.6.2 (IUniswapV2Pair.sol#3) allows old versions
Pragma version^0.6.2 (IUniswapV2Router.sol#3) allows old versions
Pragma version^0.6.2 (IterableMapping.sol#2) allows old versions
Pragma version^0.6.2 (Ownable.sol#3) allows old versions
Pragma version^0.6.2 (SafeMath.sol#3) allows old versions
Pragma version^0.6.2 (SafeMathInt.sol#28) allows old versions
Pragma version^0.6.2 (SafeMathUint.sol#3) 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

Reentrancy in GREMToken._transfer(address,address,uint256) (GremlinsToken.sol#294-365):
External calls:
- swapAndSendToFee(marketingTokens) (GremlinsToken.sol#321)
- IERC20(BTC).transfer(_marketingWalletAddress,newBalance) (GremlinsToken.sol#373)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (GremlinsToken.sol#431-437)
- swapAndLiquify(swapTokens) (GremlinsToken.sol#324)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (GremlinsToken.sol#446-453)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (GremlinsToken.sol#411-417)
External calls sending eth:
- swapAndLiquify(swapTokens) (GremlinsToken.sol#324)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (GremlinsToken.sol#446-453)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (GremlinsToken.sol#324)
- _allowances[owner][spender] = amount (ERC20.sol#287)
Reentrancy in GREMToken._transfer(address,address,uint256) (GremlinsToken.sol#294-365):
External calls:
- swapAndSendToFee(marketingTokens) (GremlinsToken.sol#321)
- IERC20(BTC).transfer(_marketingWalletAddress,newBalance) (GremlinsToken.sol#373)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (GremlinsToken.sol#431-437)
- swapAndLiquify(swapTokens) (GremlinsToken.sol#324)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (GremlinsToken.sol#446-453)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (GremlinsToken.sol#411-417)
- swapAndSendDividends(sellTokens) (GremlinsToken.sol#327)
- success = IERC20(BTC).transfer(address(dividendTracker),dividends) (GremlinsToken.sol#460)
- dividendTracker.distributeBTCDividends(dividends) (GremlinsToken.sol#463)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (GremlinsToken.sol#431-437)
External calls sending eth:
- swapAndLiquify(swapTokens) (GremlinsToken.sol#324)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (GremlinsToken.sol#446-453)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (GremlinsToken.sol#327)
- _allowances[owner][spender] = amount (ERC20.sol#287)
Reentrancy in GREMToken.constructor() (GremlinsToken.sol#92-124):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (GremlinsToken.sol#100-101)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (GremlinsToken.sol#104)
- uniswapV2Router = _uniswapV2Router (GremlinsToken.sol#103)
Reentrancy in GREMToken.constructor() (GremlinsToken.sol#92-124):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (GremlinsToken.sol#100-101)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (GremlinsToken.sol#106)
- dividendTracker.excludeFromDividends(pair) (GremlinsToken.sol#208)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (GremlinsToken.sol#109)
- dividendTracker.excludeFromDividends(address(this)) (GremlinsToken.sol#110)
- dividendTracker.excludeFromDividends(deadWallet) (GremlinsToken.sol#111)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (GremlinsToken.sol#112)
State variables written after the call(s):
- _mint(owner(),1000000000 * (10 ** 18)) (GremlinsToken.sol#123)
- _balances[account] = _balances[account].add(amount) (ERC20.sol#241)
- excludeFromFees(owner(),true) (GremlinsToken.sol#115)
- _isExcludedFromFees[account] = excluded (GremlinsToken.sol#158)
- excludeFromFees(_marketingWalletAddress,true) (GremlinsToken.sol#116)
- _isExcludedFromFees[account] = excluded (GremlinsToken.sol#158)
- excludeFromFees(address(this),true) (GremlinsToken.sol#117)
- _isExcludedFromFees[account] = excluded (GremlinsToken.sol#158)
- _mint(owner(),1000000000 * (10 ** 18)) (GremlinsToken.sol#123)
- _totalSupply = _totalSupply.add(amount) (ERC20.sol#240)
Reentrancy in GREMDividendTracker.processAccount(address,bool) (GremlinsToken.sol#663-673):
External calls:
- amount = _withdrawDividendOfUser(account) (GremlinsToken.sol#664)
- success = IERC20(CAKE).transfer(user,_withdrawableDividend) (DividendPayingToken.sol#81)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (GremlinsToken.sol#667)
Reentrancy in GREMToken.swapAndLiquify(uint256) (GremlinsToken.sol#376-397):
External calls:
- swapTokensForEth(half) (GremlinsToken.sol#388)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (GremlinsToken.sol#411-417)
- addLiquidity(otherHalf,newBalance) (GremlinsToken.sol#394)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (GremlinsToken.sol#446-453)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (GremlinsToken.sol#394)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (GremlinsToken.sol#446-453)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (GremlinsToken.sol#394)
- _allowances[owner][spender] = amount (ERC20.sol#287)
Reentrancy in GREMToken.updateUniswapV2Router(address) (GremlinsToken.sol#147-154):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (GremlinsToken.sol#151-152)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (GremlinsToken.sol#153)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (DividendPayingToken.sol#76-92):
External calls:
- success = IERC20(CAKE).transfer(user,_withdrawableDividend) (DividendPayingToken.sol#81)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (DividendPayingToken.sol#84)
Reentrancy in GREMToken.updateDividendTracker(address) (GremlinsToken.sol#130-145):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (GremlinsToken.sol#137)
- newDividendTracker.excludeFromDividends(address(this)) (GremlinsToken.sol#138)
- newDividendTracker.excludeFromDividends(owner()) (GremlinsToken.sol#139)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (GremlinsToken.sol#140)
State variables written after the call(s):
- dividendTracker = newDividendTracker (GremlinsToken.sol#144)
Apply the check-effects-interactions pattern.

Additional information: link

GREMToken._transfer(address,address,uint256).iterations (GremlinsToken.sol#358) is a local variable never initialized
GREMToken._transfer(address,address,uint256).claims (GremlinsToken.sol#358) is a local variable never initialized
GREMToken._transfer(address,address,uint256).lastProcessedIndex (GremlinsToken.sol#358) 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

GREMToken.claim() (GremlinsToken.sol#281-283) ignores return value by dividendTracker.processAccount(msg.sender,false) (GremlinsToken.sol#282)
GREMToken._transfer(address,address,uint256) (GremlinsToken.sol#294-365) ignores return value by dividendTracker.process(gas) (GremlinsToken.sol#358-363)
GREMToken.addLiquidity(uint256,uint256) (GremlinsToken.sol#440-455) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (GremlinsToken.sol#446-453)
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.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#9) (state variable)
DividendPayingToken.withdrawableDividendOf(address)._owner (DividendPayingToken.sol#105) shadows:
- Ownable._owner (Ownable.sol#9) (state variable)
DividendPayingToken.withdrawnDividendOf(address)._owner (DividendPayingToken.sol#112) shadows:
- Ownable._owner (Ownable.sol#9) (state variable)
DividendPayingToken.accumulativeDividendOf(address)._owner (DividendPayingToken.sol#122) shadows:
- Ownable._owner (Ownable.sol#9) (state variable)
Rename the local variables that shadow another component.

Additional information: link

GREMToken.setBTCRewardsFee(uint256) (GremlinsToken.sol#175-178) should emit an event for:
- BTCRewardsFee = value (GremlinsToken.sol#176)
- totalFees = BTCRewardsFee.add(liquidityFee).add(marketingFee) (GremlinsToken.sol#177)
GREMToken.setLiquiditFee(uint256) (GremlinsToken.sol#180-183) should emit an event for:
- liquidityFee = value (GremlinsToken.sol#181)
- totalFees = BTCRewardsFee.add(liquidityFee).add(marketingFee) (GremlinsToken.sol#182)
GREMToken.setMarketingFee(uint256) (GremlinsToken.sol#185-189) should emit an event for:
- marketingFee = value (GremlinsToken.sol#186)
- totalFees = BTCRewardsFee.add(liquidityFee).add(marketingFee) (GremlinsToken.sol#187)
Emit an event for critical parameter changes.

Additional information: link

GREMToken.updateUniswapV2Router(address)._uniswapV2Pair (GremlinsToken.sol#151-152) lacks a zero-check on :
- uniswapV2Pair = _uniswapV2Pair (GremlinsToken.sol#153)
GREMToken.setMarketingWallet(address).wallet (GremlinsToken.sol#171) lacks a zero-check on :
- _marketingWalletAddress = wallet (GremlinsToken.sol#172)
Check that the address is not zero.

Additional information: link

DividendPayingToken._withdrawDividendOfUser(address) (DividendPayingToken.sol#76-92) has external calls inside a loop: success = IERC20(CAKE).transfer(user,_withdrawableDividend) (DividendPayingToken.sol#81)
Favor pull over push strategy for external calls.

Additional information: link

Variable 'GREMToken._transfer(address,address,uint256).lastProcessedIndex (GremlinsToken.sol#358)' in GREMToken._transfer(address,address,uint256) (GremlinsToken.sol#294-365) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (GremlinsToken.sol#359)
Variable 'GREMToken._transfer(address,address,uint256).claims (GremlinsToken.sol#358)' in GREMToken._transfer(address,address,uint256) (GremlinsToken.sol#294-365) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (GremlinsToken.sol#359)
Variable 'GREMToken._transfer(address,address,uint256).iterations (GremlinsToken.sol#358)' in GREMToken._transfer(address,address,uint256) (GremlinsToken.sol#294-365) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (GremlinsToken.sol#359)
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 GREMToken._setAutomatedMarketMakerPair(address,bool) (GremlinsToken.sol#203-212):
External calls:
- dividendTracker.excludeFromDividends(pair) (GremlinsToken.sol#208)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (GremlinsToken.sol#211)
Reentrancy in GREMToken._transfer(address,address,uint256) (GremlinsToken.sol#294-365):
External calls:
- swapAndSendToFee(marketingTokens) (GremlinsToken.sol#321)
- IERC20(BTC).transfer(_marketingWalletAddress,newBalance) (GremlinsToken.sol#373)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (GremlinsToken.sol#431-437)
- swapAndLiquify(swapTokens) (GremlinsToken.sol#324)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (GremlinsToken.sol#446-453)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (GremlinsToken.sol#411-417)
External calls sending eth:
- swapAndLiquify(swapTokens) (GremlinsToken.sol#324)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (GremlinsToken.sol#446-453)
Event emitted after the call(s):
- Approval(owner,spender,amount) (ERC20.sol#288)
- swapAndLiquify(swapTokens) (GremlinsToken.sol#324)
- SwapAndLiquify(half,newBalance,otherHalf) (GremlinsToken.sol#396)
- swapAndLiquify(swapTokens) (GremlinsToken.sol#324)
Reentrancy in GREMToken._transfer(address,address,uint256) (GremlinsToken.sol#294-365):
External calls:
- swapAndSendToFee(marketingTokens) (GremlinsToken.sol#321)
- IERC20(BTC).transfer(_marketingWalletAddress,newBalance) (GremlinsToken.sol#373)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (GremlinsToken.sol#431-437)
- swapAndLiquify(swapTokens) (GremlinsToken.sol#324)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (GremlinsToken.sol#446-453)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (GremlinsToken.sol#411-417)
- swapAndSendDividends(sellTokens) (GremlinsToken.sol#327)
- success = IERC20(BTC).transfer(address(dividendTracker),dividends) (GremlinsToken.sol#460)
- dividendTracker.distributeBTCDividends(dividends) (GremlinsToken.sol#463)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (GremlinsToken.sol#431-437)
External calls sending eth:
- swapAndLiquify(swapTokens) (GremlinsToken.sol#324)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (GremlinsToken.sol#446-453)
Event emitted after the call(s):
- Approval(owner,spender,amount) (ERC20.sol#288)
- swapAndSendDividends(sellTokens) (GremlinsToken.sol#327)
- SendDividends(tokens,dividends) (GremlinsToken.sol#464)
- swapAndSendDividends(sellTokens) (GremlinsToken.sol#327)
- Transfer(sender,recipient,amount) (ERC20.sol#223)
- super._transfer(from,to,amount) (GremlinsToken.sol#350)
- Transfer(sender,recipient,amount) (ERC20.sol#223)
- super._transfer(from,address(this),fees) (GremlinsToken.sol#347)
Reentrancy in GREMToken._transfer(address,address,uint256) (GremlinsToken.sol#294-365):
External calls:
- swapAndSendToFee(marketingTokens) (GremlinsToken.sol#321)
- IERC20(BTC).transfer(_marketingWalletAddress,newBalance) (GremlinsToken.sol#373)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (GremlinsToken.sol#431-437)
- swapAndLiquify(swapTokens) (GremlinsToken.sol#324)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (GremlinsToken.sol#446-453)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (GremlinsToken.sol#411-417)
- swapAndSendDividends(sellTokens) (GremlinsToken.sol#327)
- success = IERC20(BTC).transfer(address(dividendTracker),dividends) (GremlinsToken.sol#460)
- dividendTracker.distributeBTCDividends(dividends) (GremlinsToken.sol#463)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (GremlinsToken.sol#431-437)
- dividendTracker.setBalance(address(from),balanceOf(from)) (GremlinsToken.sol#352)
- dividendTracker.setBalance(address(to),balanceOf(to)) (GremlinsToken.sol#353)
- dividendTracker.process(gas) (GremlinsToken.sol#358-363)
External calls sending eth:
- swapAndLiquify(swapTokens) (GremlinsToken.sol#324)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (GremlinsToken.sol#446-453)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (GremlinsToken.sol#359)
Reentrancy in GREMToken.constructor() (GremlinsToken.sol#92-124):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (GremlinsToken.sol#100-101)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (GremlinsToken.sol#106)
- dividendTracker.excludeFromDividends(pair) (GremlinsToken.sol#208)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (GremlinsToken.sol#211)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (GremlinsToken.sol#106)
Reentrancy in GREMToken.constructor() (GremlinsToken.sol#92-124):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (GremlinsToken.sol#100-101)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (GremlinsToken.sol#106)
- dividendTracker.excludeFromDividends(pair) (GremlinsToken.sol#208)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (GremlinsToken.sol#109)
- dividendTracker.excludeFromDividends(address(this)) (GremlinsToken.sol#110)
- dividendTracker.excludeFromDividends(deadWallet) (GremlinsToken.sol#111)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (GremlinsToken.sol#112)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (GremlinsToken.sol#160)
- excludeFromFees(address(this),true) (GremlinsToken.sol#117)
- ExcludeFromFees(account,excluded) (GremlinsToken.sol#160)
- excludeFromFees(owner(),true) (GremlinsToken.sol#115)
- ExcludeFromFees(account,excluded) (GremlinsToken.sol#160)
- excludeFromFees(_marketingWalletAddress,true) (GremlinsToken.sol#116)
- Transfer(address(0),account,amount) (ERC20.sol#242)
- _mint(owner(),1000000000 * (10 ** 18)) (GremlinsToken.sol#123)
Reentrancy in GREMDividendTracker.processAccount(address,bool) (GremlinsToken.sol#663-673):
External calls:
- amount = _withdrawDividendOfUser(account) (GremlinsToken.sol#664)
- success = IERC20(CAKE).transfer(user,_withdrawableDividend) (DividendPayingToken.sol#81)
Event emitted after the call(s):
- Claim(account,amount,automatic) (GremlinsToken.sol#668)
Reentrancy in GREMToken.processDividendTracker(uint256) (GremlinsToken.sol#276-279):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (GremlinsToken.sol#277)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (GremlinsToken.sol#278)
Reentrancy in GREMToken.swapAndLiquify(uint256) (GremlinsToken.sol#376-397):
External calls:
- swapTokensForEth(half) (GremlinsToken.sol#388)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (GremlinsToken.sol#411-417)
- addLiquidity(otherHalf,newBalance) (GremlinsToken.sol#394)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (GremlinsToken.sol#446-453)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (GremlinsToken.sol#394)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (GremlinsToken.sol#446-453)
Event emitted after the call(s):
- Approval(owner,spender,amount) (ERC20.sol#288)
- addLiquidity(otherHalf,newBalance) (GremlinsToken.sol#394)
- SwapAndLiquify(half,newBalance,otherHalf) (GremlinsToken.sol#396)
Reentrancy in GREMToken.swapAndSendDividends(uint256) (GremlinsToken.sol#457-466):
External calls:
- swapTokensForBTC(tokens) (GremlinsToken.sol#458)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (GremlinsToken.sol#431-437)
- success = IERC20(BTC).transfer(address(dividendTracker),dividends) (GremlinsToken.sol#460)
- dividendTracker.distributeBTCDividends(dividends) (GremlinsToken.sol#463)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (GremlinsToken.sol#464)
Reentrancy in GREMToken.updateDividendTracker(address) (GremlinsToken.sol#130-145):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (GremlinsToken.sol#137)
- newDividendTracker.excludeFromDividends(address(this)) (GremlinsToken.sol#138)
- newDividendTracker.excludeFromDividends(owner()) (GremlinsToken.sol#139)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (GremlinsToken.sol#140)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (GremlinsToken.sol#142)
Apply the check-effects-interactions pattern.

Additional information: link

GREMDividendTracker.getAccount(address) (GremlinsToken.sol#527-570) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (GremlinsToken.sol#567-569)
GREMDividendTracker.canAutoClaim(uint256) (GremlinsToken.sol#591-597) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (GremlinsToken.sol#592)
- block.timestamp.sub(lastClaimTime) >= claimWait (GremlinsToken.sol#596)
Avoid relying on block.timestamp.

Additional information: link

GREMToken.totalFees (GremlinsToken.sol#43) 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

Parameter DividendPayingToken.dividendOf(address)._owner (DividendPayingToken.sol#98) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (DividendPayingToken.sol#105) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (DividendPayingToken.sol#112) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (DividendPayingToken.sol#122) is not in mixedCase
Variable DividendPayingToken.CAKE (DividendPayingToken.sol#24) is not in mixedCase
Constant DividendPayingToken.magnitude (DividendPayingToken.sol#30) is not in UPPER_CASE_WITH_UNDERSCORES
Variable GREMToken.BTC (GremlinsToken.sol#32) is not in mixedCase
Variable GREMToken._isBlacklisted (GremlinsToken.sol#37) is not in mixedCase
Variable GREMToken.BTCRewardsFee (GremlinsToken.sol#39) is not in mixedCase
Variable GREMToken._marketingWalletAddress (GremlinsToken.sol#45) is not in mixedCase
Parameter GREMDividendTracker.getAccount(address)._account (GremlinsToken.sol#527) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (IUniswapV2Pair.sol#20) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (IUniswapV2Pair.sol#21) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (IUniswapV2Pair.sol#38) is not in mixedCase
Function IUniswapV2Router01.WETH() (IUniswapV2Router.sol#7) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (DividendPayingToken.sol#77) is too similar to GREMDividendTracker.getAccount(address).withdrawableDividends (GremlinsToken.sol#532)
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

GREMToken.constructor() (GremlinsToken.sol#92-124) uses literals with too many digits:
- _mint(owner(),1000000000 * (10 ** 18)) (GremlinsToken.sol#123)
GREMToken.updateGasForProcessing(uint256) (GremlinsToken.sol#215-220) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,GREM: gasForProcessing must be between 200,000 and 500,000) (GremlinsToken.sol#216)
GREMToken.slitherConstructorVariables() (GremlinsToken.sol#18-467) uses literals with too many digits:
- deadWallet = 0x000000000000000000000000000000000000dEaD (GremlinsToken.sol#28)
GREMToken.slitherConstructorVariables() (GremlinsToken.sol#18-467) uses literals with too many digits:
- swapTokensAtAmount = 500000 * (10 ** 18) (GremlinsToken.sol#35)
GREMToken.slitherConstructorVariables() (GremlinsToken.sol#18-467) uses literals with too many digits:
- gasForProcessing = 300000 (GremlinsToken.sol#49)
GREMDividendTracker.constructor() (GremlinsToken.sol#489-492) uses literals with too many digits:
- minimumTokenBalanceForDividends = 200000 * (10 ** 18) (GremlinsToken.sol#491)
GREMDividendTracker.getAccountAtIndex(uint256) (GremlinsToken.sol#572-589) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (GremlinsToken.sol#583)
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

GREMToken.deadWallet (GremlinsToken.sol#28) should be constant
GREMToken.swapTokensAtAmount (GremlinsToken.sol#35) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

distributeBTCDividends(uint256) should be declared external:
- DividendPayingToken.distributeBTCDividends(uint256) (DividendPayingToken.sol#55-66)
withdrawDividend() should be declared external:
- DividendPayingToken.withdrawDividend() (DividendPayingToken.sol#70-72)
- GREMDividendTracker.withdrawDividend() (GremlinsToken.sol#498-500)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (DividendPayingToken.sol#98-100)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (DividendPayingToken.sol#112-114)
name() should be declared external:
- ERC20.name() (ERC20.sol#63-65)
symbol() should be declared external:
- ERC20.symbol() (ERC20.sol#71-73)
decimals() should be declared external:
- ERC20.decimals() (ERC20.sol#88-90)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (ERC20.sol#114-117)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (ERC20.sol#122-124)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (ERC20.sol#133-136)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (ERC20.sol#151-159)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (ERC20.sol#173-176)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (ERC20.sol#192-195)
updateDividendTracker(address) should be declared external:
- GREMToken.updateDividendTracker(address) (GremlinsToken.sol#130-145)
updateUniswapV2Router(address) should be declared external:
- GREMToken.updateUniswapV2Router(address) (GremlinsToken.sol#147-154)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- GREMToken.excludeMultipleAccountsFromFees(address[],bool) (GremlinsToken.sol#163-169)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- GREMToken.setAutomatedMarketMakerPair(address,bool) (GremlinsToken.sol#192-196)
updateGasForProcessing(uint256) should be declared external:
- GREMToken.updateGasForProcessing(uint256) (GremlinsToken.sol#215-220)
isExcludedFromFees(address) should be declared external:
- GREMToken.isExcludedFromFees(address) (GremlinsToken.sol#234-236)
withdrawableDividendOf(address) should be declared external:
- GREMToken.withdrawableDividendOf(address) (GremlinsToken.sol#238-240)
dividendTokenBalanceOf(address) should be declared external:
- GREMToken.dividendTokenBalanceOf(address) (GremlinsToken.sol#242-244)
getAccountAtIndex(uint256) should be declared external:
- GREMDividendTracker.getAccountAtIndex(uint256) (GremlinsToken.sol#572-589)
process(uint256) should be declared external:
- GREMDividendTracker.process(uint256) (GremlinsToken.sol#616-661)
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (IterableMapping.sol#13-15)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (IterableMapping.sol#17-22)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (IterableMapping.sol#24-26)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (IterableMapping.sol#30-32)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (Ownable.sol#44-47)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (Ownable.sol#53-57)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.


Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.

Contract has 14% buy tax and 15% 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 PancakeSwap volume is less than $100. Token is either dead or inactive.


Swap operations require suspiciously high gas. Contract logic is complex and may disguise some form of scam.


Token is deployed only at one blockchain


Twitter account link seems to be invalid


Unable to find Blog account (Reddit or Medium)


Unable to find Youtube account


Unable to find website, listings and other project-related information


Token has a considerable age, but we're still unable to find its website


Token is marked as risky (blacklisted creator, fake name, dead project, etc.)

Additional information: link


Token has no active CoinGecko listing / rank


Token has a considerable age, but average PancakeSwap 30d trading volume is low


Token has no active CoinMarketCap listing / rank


Young tokens have high risks of price dump / death

Price for GREM