Grain Token Logo

GRAIN Token

About GRAIN

Listings

Token 24 months

GRAIN is the 2nd token of United Farmers Finance UFF. GRAIN is there to back up UFF. GRAIN is part of our Circulating Pools, where you can stake UFF to earn GRAIN.

United Farmers is an entire ecosystem with yield farming and automated market-making (AMM) for the BSC network. We introduce Yield Farm, Staking Pools, Decentralized Exchange (DEX) and Info Service. The solid and secure foundation with our own UFF token as our center service. United Farmers is built by a dedicated professional team. We will be committed to the growth and success of the ecosystem.

Social

Laser Scorebeta Last Audit: 26 December 2021

report
Token is either risky or in presale. For presale 30+ is a fine score.

Anti-Scam

Links


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

GrainToken.swapEthForTokens(uint256) (contracts/GrainToken.sol#246-259) sends eth to arbitrary user
Dangerous calls:
- PCSRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: tokenAmount}(0,path,address(this),block.timestamp) (contracts/GrainToken.sol#253-258)
GrainToken.addLiquidity(address,uint256,uint256) (contracts/GrainToken.sol#262-275) sends eth to arbitrary user
Dangerous calls:
- PCSRouter.addLiquidityETH{value: ethAmount}(tokenAddress,tokenAmount,0,0,operator(),block.timestamp) (contracts/GrainToken.sol#267-274)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in GrainToken._transfer(address,address,uint256) (contracts/GrainToken.sol#137-186):
External calls:
- swapAndLiquify() (contracts/GrainToken.sol#153)
- IBEP20(tokenAddress).approve(address(PCSRouter),tokenAmount) (contracts/GrainToken.sol#264)
- PCSRouter.addLiquidityETH{value: ethAmount}(tokenAddress,tokenAmount,0,0,operator(),block.timestamp) (contracts/GrainToken.sol#267-274)
- PCSRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: tokenAmount}(0,path,address(this),block.timestamp) (contracts/GrainToken.sol#253-258)
- PCSRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/GrainToken.sol#236-242)
External calls sending eth:
- swapAndLiquify() (contracts/GrainToken.sol#153)
- PCSRouter.addLiquidityETH{value: ethAmount}(tokenAddress,tokenAmount,0,0,operator(),block.timestamp) (contracts/GrainToken.sol#267-274)
- PCSRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: tokenAmount}(0,path,address(this),block.timestamp) (contracts/GrainToken.sol#253-258)
State variables written after the call(s):
- super._transfer(sender,recipient,amount) (contracts/GrainToken.sol#159)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (contracts/libs/BEP20.sol#228)
- _balances[recipient] = _balances[recipient].add(amount) (contracts/libs/BEP20.sol#229)
- super._transfer(sender,address(this),taxAmount) (contracts/GrainToken.sol#183)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (contracts/libs/BEP20.sol#228)
- _balances[recipient] = _balances[recipient].add(amount) (contracts/libs/BEP20.sol#229)
- super._transfer(sender,recipient,sendAmount) (contracts/GrainToken.sol#184)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (contracts/libs/BEP20.sol#228)
- _balances[recipient] = _balances[recipient].add(amount) (contracts/libs/BEP20.sol#229)
Apply the check-effects-interactions pattern.

Additional information: link

GrainToken._transfer(address,address,uint256) (contracts/GrainToken.sol#137-186) uses a dangerous strict equality:
- ethRouterBalance == 0 && tradingOpen (contracts/GrainToken.sol#152)
Don't use strict equality to determine if an account has enough Ether or tokens.

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.

GrainToken.addLiquidity(address,uint256,uint256) (contracts/GrainToken.sol#262-275) ignores return value by IBEP20(tokenAddress).approve(address(PCSRouter),tokenAmount) (contracts/GrainToken.sol#264)
GrainToken.addLiquidity(address,uint256,uint256) (contracts/GrainToken.sol#262-275) ignores return value by PCSRouter.addLiquidityETH{value: ethAmount}(tokenAddress,tokenAmount,0,0,operator(),block.timestamp) (contracts/GrainToken.sol#267-274)
Ensure that all the return values of the function calls are used.

Additional information: link

BEP20.constructor(string,string).name (contracts/libs/BEP20.sol#58) shadows:
- BEP20.name() (contracts/libs/BEP20.sol#74-76) (function)
- IBEP20.name() (contracts/libs/IBEP20.sol#22) (function)
BEP20.constructor(string,string).symbol (contracts/libs/BEP20.sol#58) shadows:
- BEP20.symbol() (contracts/libs/BEP20.sol#82-84) (function)
- IBEP20.symbol() (contracts/libs/IBEP20.sol#17) (function)
BEP20.allowance(address,address).owner (contracts/libs/BEP20.sol#123) shadows:
- Ownable.owner() (@openzeppelin/contracts/access/Ownable.sol#35-37) (function)
BEP20._approve(address,address,uint256).owner (contracts/libs/BEP20.sol#282) shadows:
- Ownable.owner() (@openzeppelin/contracts/access/Ownable.sol#35-37) (function)
Rename the local variables that shadow another component.

Additional information: link

GrainToken.constructor(address,address)._uffToken (contracts/GrainToken.sol#119) lacks a zero-check on :
- uffToken = _uffToken (contracts/GrainToken.sol#127)
GrainToken.transferLpToken(address).newLpToken (contracts/GrainToken.sol#351) lacks a zero-check on :
- lpToken = newLpToken (contracts/GrainToken.sol#355)
Check that the address is not zero.

Additional information: link

Reentrancy in GrainToken._transfer(address,address,uint256) (contracts/GrainToken.sol#137-186):
External calls:
- swapAndLiquify() (contracts/GrainToken.sol#153)
- IBEP20(tokenAddress).approve(address(PCSRouter),tokenAmount) (contracts/GrainToken.sol#264)
- PCSRouter.addLiquidityETH{value: ethAmount}(tokenAddress,tokenAmount,0,0,operator(),block.timestamp) (contracts/GrainToken.sol#267-274)
- PCSRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: tokenAmount}(0,path,address(this),block.timestamp) (contracts/GrainToken.sol#253-258)
- PCSRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/GrainToken.sol#236-242)
External calls sending eth:
- swapAndLiquify() (contracts/GrainToken.sol#153)
- PCSRouter.addLiquidityETH{value: ethAmount}(tokenAddress,tokenAmount,0,0,operator(),block.timestamp) (contracts/GrainToken.sol#267-274)
- PCSRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: tokenAmount}(0,path,address(this),block.timestamp) (contracts/GrainToken.sol#253-258)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (contracts/libs/BEP20.sol#230)
- super._transfer(sender,recipient,amount) (contracts/GrainToken.sol#159)
- Transfer(sender,recipient,amount) (contracts/libs/BEP20.sol#230)
- super._transfer(sender,recipient,sendAmount) (contracts/GrainToken.sol#184)
- Transfer(sender,recipient,amount) (contracts/libs/BEP20.sol#230)
- super._transfer(sender,address(this),taxAmount) (contracts/GrainToken.sol#183)
Reentrancy in GrainToken.swapAndLiquify() (contracts/GrainToken.sol#189-224):
External calls:
- swapTokensForEth(halfPlusQuarter) (contracts/GrainToken.sol#208)
- PCSRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/GrainToken.sol#236-242)
- swapEthForTokens(newBalanceAfterGrainSell.div(4)) (contracts/GrainToken.sol#212)
- PCSRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: tokenAmount}(0,path,address(this),block.timestamp) (contracts/GrainToken.sol#253-258)
- addLiquidity(address(this),liquifyAmount.div(4),newBalance) (contracts/GrainToken.sol#219)
- IBEP20(tokenAddress).approve(address(PCSRouter),tokenAmount) (contracts/GrainToken.sol#264)
- PCSRouter.addLiquidityETH{value: ethAmount}(tokenAddress,tokenAmount,0,0,operator(),block.timestamp) (contracts/GrainToken.sol#267-274)
- addLiquidity(uffToken,uffBalance,newBalance) (contracts/GrainToken.sol#220)
- IBEP20(tokenAddress).approve(address(PCSRouter),tokenAmount) (contracts/GrainToken.sol#264)
- PCSRouter.addLiquidityETH{value: ethAmount}(tokenAddress,tokenAmount,0,0,operator(),block.timestamp) (contracts/GrainToken.sol#267-274)
External calls sending eth:
- swapEthForTokens(newBalanceAfterGrainSell.div(4)) (contracts/GrainToken.sol#212)
- PCSRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: tokenAmount}(0,path,address(this),block.timestamp) (contracts/GrainToken.sol#253-258)
- addLiquidity(address(this),liquifyAmount.div(4),newBalance) (contracts/GrainToken.sol#219)
- PCSRouter.addLiquidityETH{value: ethAmount}(tokenAddress,tokenAmount,0,0,operator(),block.timestamp) (contracts/GrainToken.sol#267-274)
- addLiquidity(uffToken,uffBalance,newBalance) (contracts/GrainToken.sol#220)
- PCSRouter.addLiquidityETH{value: ethAmount}(tokenAddress,tokenAmount,0,0,operator(),block.timestamp) (contracts/GrainToken.sol#267-274)
Event emitted after the call(s):
- SwapAndLiquify(half,newBalance,otherHalf) (contracts/GrainToken.sol#222)
Apply the check-effects-interactions pattern.

Additional information: link

GrainToken._transfer(address,address,uint256) (contracts/GrainToken.sol#137-186) compares to a boolean constant:
-swapAndLiquifyEnabled == true && _inSwapAndLiquify == false && address(PCSRouter) != address(0) && lpToken != address(0) && sender != lpToken && sender != owner() (contracts/GrainToken.sol#143-148)
GrainToken._transfer(address,address,uint256) (contracts/GrainToken.sol#137-186) compares to a boolean constant:
-require(bool,string)(tradingOpen == true || recipient == lpToken && ethRouterBalance_scope_0 > 0,Trading not yet open.) (contracts/GrainToken.sol#162)
GrainToken.openTrading() (contracts/GrainToken.sol#371-375) compares to a boolean constant:
-require(bool,string)(tradingOpen != true,GRAIN: Trading not yet open.) (contracts/GrainToken.sol#373)
GrainToken.antiWhale(address,address,uint256) (contracts/GrainToken.sol#103-114) compares to a boolean constant:
-_excludedFromAntiWhale[recipient] == false (contracts/GrainToken.sol#107)
Remove the equality to the boolean constant.

Additional information: link

Different versions of Solidity is used:
- Version used: ['0.6.12', '>=0.4.0', '>=0.6.0<0.8.0', '>=0.6.2', '>=0.6.4']
- >=0.6.0<0.8.0 (@openzeppelin/contracts/access/Ownable.sol#3)
- >=0.6.0<0.8.0 (@openzeppelin/contracts/math/SafeMath.sol#3)
- >=0.6.0<0.8.0 (@openzeppelin/contracts/utils/Context.sol#3)
- 0.6.12 (contracts/GrainToken.sol#1)
- >=0.4.0 (contracts/libs/BEP20.sol#3)
- >=0.6.4 (contracts/libs/IBEP20.sol#1)
- >=0.6.2 (contracts/libs/IUniswapV2Router01.sol#1)
- >=0.6.2 (contracts/libs/IUniswapV2Router02.sol#1)
Use one Solidity version.

Additional information: link

BEP20._burn(address,uint256) (contracts/libs/BEP20.sol#261-267) is never used and should be removed
BEP20._burnFrom(address,uint256) (contracts/libs/BEP20.sol#296-299) is never used and should be removed
Context._msgData() (@openzeppelin/contracts/utils/Context.sol#20-23) is never used and should be removed
SafeMath.div(uint256,uint256,string) (@openzeppelin/contracts/math/SafeMath.sol#190-193) is never used and should be removed
SafeMath.mod(uint256,uint256) (@openzeppelin/contracts/math/SafeMath.sol#152-155) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (@openzeppelin/contracts/math/SafeMath.sol#210-213) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (@openzeppelin/contracts/math/SafeMath.sol#24-28) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (@openzeppelin/contracts/math/SafeMath.sol#60-63) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (@openzeppelin/contracts/math/SafeMath.sol#70-73) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (@openzeppelin/contracts/math/SafeMath.sol#45-53) is never used and should be removed
SafeMath.trySub(uint256,uint256) (@openzeppelin/contracts/math/SafeMath.sol#35-38) is never used and should be removed
Remove unused functions.

Additional information: link

Pragma version>=0.6.0<0.8.0 (@openzeppelin/contracts/access/Ownable.sol#3) is too complex
Pragma version>=0.6.0<0.8.0 (@openzeppelin/contracts/math/SafeMath.sol#3) is too complex
Pragma version>=0.6.0<0.8.0 (@openzeppelin/contracts/utils/Context.sol#3) is too complex
Pragma version>=0.4.0 (contracts/libs/BEP20.sol#3) allows old versions
Pragma version>=0.6.4 (contracts/libs/IBEP20.sol#1) allows old versions
Pragma version>=0.6.2 (contracts/libs/IUniswapV2Router01.sol#1) allows old versions
Pragma version>=0.6.2 (contracts/libs/IUniswapV2Router02.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

Parameter GrainToken.mint(address,uint256)._to (contracts/GrainToken.sol#131) is not in mixedCase
Parameter GrainToken.mint(address,uint256)._amount (contracts/GrainToken.sol#131) is not in mixedCase
Parameter GrainToken.isExcludedFromAntiWhale(address)._account (contracts/GrainToken.sol#287) is not in mixedCase
Parameter GrainToken.updateSwapAndLiquifyEnabled(bool)._enabled (contracts/GrainToken.sol#305) is not in mixedCase
Parameter GrainToken.setExcludedFromAntiWhale(address)._account (contracts/GrainToken.sol#324) is not in mixedCase
Parameter GrainToken.setExcludeFromFee(address)._account (contracts/GrainToken.sol#381) is not in mixedCase
Variable GrainToken.PCSRouter (contracts/GrainToken.sol#45) is not in mixedCase
Function IUniswapV2Router01.WETH() (contracts/libs/IUniswapV2Router01.sol#5) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (@openzeppelin/contracts/utils/Context.sol#21)" inContext (@openzeppelin/contracts/utils/Context.sol#15-24)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (contracts/libs/IUniswapV2Router01.sol#10) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (contracts/libs/IUniswapV2Router01.sol#11)
Prevent variables from having similar names.

Additional information: link

GrainToken.slitherConstructorVariables() (contracts/GrainToken.sol#7-388) uses literals with too many digits:
- cap = 32000000 * 10 ** 18 (contracts/GrainToken.sol#9)
GrainToken.slitherConstructorConstantVariables() (contracts/GrainToken.sol#7-388) uses literals with too many digits:
- BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD (contracts/GrainToken.sol#60)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

GrainToken._cooldownEnabled (contracts/GrainToken.sol#51) is never used in GrainToken (contracts/GrainToken.sol#7-388)
GrainToken.cooldown (contracts/GrainToken.sol#57) is never used in GrainToken (contracts/GrainToken.sol#7-388)
Remove unused state variables.

Additional information: link

BEP20._setupDecimals (contracts/libs/BEP20.sol#47) should be constant
GrainToken._cooldownEnabled (contracts/GrainToken.sol#51) should be constant
GrainToken._maxHoldingEnable (contracts/GrainToken.sol#54) should be constant
GrainToken.cap (contracts/GrainToken.sol#9) should be constant
GrainToken.maxHoldingRate (contracts/GrainToken.sol#28) should be constant
GrainToken.minAmountToLiquify (contracts/GrainToken.sol#34) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (@openzeppelin/contracts/access/Ownable.sol#54-57)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (@openzeppelin/contracts/access/Ownable.sol#63-67)
mint(address,uint256) should be declared external:
- GrainToken.mint(address,uint256) (contracts/GrainToken.sol#131-134)
isExcludedFromAntiWhale(address) should be declared external:
- GrainToken.isExcludedFromAntiWhale(address) (contracts/GrainToken.sol#287-289)
updateSwapAndLiquifyEnabled(bool) should be declared external:
- GrainToken.updateSwapAndLiquifyEnabled(bool) (contracts/GrainToken.sol#305-308)
setExcludedFromAntiWhale(address) should be declared external:
- GrainToken.setExcludedFromAntiWhale(address) (contracts/GrainToken.sol#324-326)
transferLpToken(address) should be declared external:
- GrainToken.transferLpToken(address) (contracts/GrainToken.sol#351-356)
transferOperator(address) should be declared external:
- GrainToken.transferOperator(address) (contracts/GrainToken.sol#362-366)
openTrading() should be declared external:
- GrainToken.openTrading() (contracts/GrainToken.sol#371-375)
setExcludeFromFee(address) should be declared external:
- GrainToken.setExcludeFromFee(address) (contracts/GrainToken.sol#381-383)
name() should be declared external:
- BEP20.name() (contracts/libs/BEP20.sol#74-76)
symbol() should be declared external:
- BEP20.symbol() (contracts/libs/BEP20.sol#82-84)
decimals() should be declared external:
- BEP20.decimals() (contracts/libs/BEP20.sol#89-91)
transfer(address,uint256) should be declared external:
- BEP20.transfer(address,uint256) (contracts/libs/BEP20.sol#115-118)
allowance(address,address) should be declared external:
- BEP20.allowance(address,address) (contracts/libs/BEP20.sol#123-125)
approve(address,uint256) should be declared external:
- BEP20.approve(address,uint256) (contracts/libs/BEP20.sol#134-137)
transferFrom(address,address,uint256) should be declared external:
- BEP20.transferFrom(address,address,uint256) (contracts/libs/BEP20.sol#151-159)
increaseAllowance(address,uint256) should be declared external:
- BEP20.increaseAllowance(address,uint256) (contracts/libs/BEP20.sol#173-176)
decreaseAllowance(address,uint256) should be declared external:
- BEP20.decreaseAllowance(address,uint256) (contracts/libs/BEP20.sol#192-195)
mint(uint256) should be declared external:
- BEP20.mint(uint256) (contracts/libs/BEP20.sol#205-208)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


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


Number of Binance Smart Chain (BSC) token holders is low.


Token is deployed only at one blockchain


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.


Twitter account has relatively few followers


Last post in Twitter was more than 30 days ago


Unable to find Youtube account


BscScan page for the token does not contain additional info: website, socials, description, etc.

Additional information: link


Unable to find token on CoinMarketCap

Additional information: link


Unable to find token/project description on the website or on BscScan, CoinMarketCap


Unable to find token contract audit


Unable to verify token contract address on the website


Unable to find audit link on the website


Unable to find whitepaper link on the website


Unable to find Twitter link on the website


Unable to find token on CoinHunt

Additional information: link


Young tokens have high risks of scam / price dump / death


Token has no active CoinMarketCap listing / rank


Young tokens have high risks of price dump / death


Young tokens have high risks of price dump / death


Young tokens have high risks of price dump / death


Token has relatively low CoinGecko rank

Price for GRAIN