United Farmers GRAIN Token Logo

UFGRAIN [United Farmers GRAIN] Token

About UFGRAIN

Listings

Not Found
Token 7 months

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 5 January 2022

report
Token seems to be anonymous. As long as we are unable to find website score is limited.


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

UFGrainToken.addLiquidity(uint256,uint256) (UFGrainToken.sol#270-283) sends eth to arbitrary user
Dangerous calls:
- PCSRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (UFGrainToken.sol#275-282)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in UFGrainToken._transfer(address,address,uint256) (UFGrainToken.sol#144-185):
External calls:
- swapAndLiquify() (UFGrainToken.sol#160)
- PCSRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (UFGrainToken.sol#275-282)
- PCSRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (UFGrainToken.sol#228-234)
External calls sending eth:
- swapAndLiquify() (UFGrainToken.sol#160)
- PCSRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (UFGrainToken.sol#275-282)
State variables written after the call(s):
- super._transfer(sender,recipient,amount) (UFGrainToken.sol#166)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (BEP20.sol#228)
- _balances[recipient] = _balances[recipient].add(amount) (BEP20.sol#229)
- super._transfer(sender,address(this),liquidityAmount) (UFGrainToken.sol#181)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (BEP20.sol#228)
- _balances[recipient] = _balances[recipient].add(amount) (BEP20.sol#229)
- super._transfer(sender,devAddress,devAmount) (UFGrainToken.sol#182)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (BEP20.sol#228)
- _balances[recipient] = _balances[recipient].add(amount) (BEP20.sol#229)
- super._transfer(sender,recipient,sendAmount) (UFGrainToken.sol#183)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (BEP20.sol#228)
- _balances[recipient] = _balances[recipient].add(amount) (BEP20.sol#229)
Apply the check-effects-interactions pattern.

Additional information: link

UFGrainToken._transfer(address,address,uint256) (UFGrainToken.sol#144-185) uses a dangerous strict equality:
- ethRouterBalance == 0 && tradingOpen (UFGrainToken.sol#159)
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.


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.

UFGrainToken._transfer(address,address,uint256) (UFGrainToken.sol#144-185) performs a multiplication on the result of a division:
-taxAmount = amount.mul(transferTaxRate).div(10000) (UFGrainToken.sol#172)
-liquidityAmount = taxAmount.mul(liquifyRate).div(100) (UFGrainToken.sol#173)
Consider ordering multiplication before division.

Additional information: link

UFGrainToken.addLiquidity(uint256,uint256) (UFGrainToken.sol#270-283) ignores return value by PCSRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (UFGrainToken.sol#275-282)
Ensure that all the return values of the function calls are used.

Additional information: link

BEP20.constructor(string,string).name (BEP20.sol#58) shadows:
- BEP20.name() (BEP20.sol#74-76) (function)
- IBEP20.name() (IBEP20.sol#24) (function)
BEP20.constructor(string,string).symbol (BEP20.sol#58) shadows:
- BEP20.symbol() (BEP20.sol#82-84) (function)
- IBEP20.symbol() (IBEP20.sol#19) (function)
BEP20.allowance(address,address).owner (BEP20.sol#123) shadows:
- Ownable.owner() (Ownable.sol#35-37) (function)
BEP20._approve(address,address,uint256).owner (BEP20.sol#282) shadows:
- Ownable.owner() (Ownable.sol#35-37) (function)
Rename the local variables that shadow another component.

Additional information: link

UFGrainToken.transferLpToken(address).newLpToken (UFGrainToken.sol#369) lacks a zero-check on :
- lpToken = newLpToken (UFGrainToken.sol#373)
Check that the address is not zero.

Additional information: link

Reentrancy in UFGrainToken.swapAndLiquify() (UFGrainToken.sol#188-216):
External calls:
- swapTokensForEth(half) (UFGrainToken.sol#206)
- PCSRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (UFGrainToken.sol#228-234)
- addLiquidity(otherHalf,newBalance) (UFGrainToken.sol#212)
- PCSRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (UFGrainToken.sol#275-282)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (UFGrainToken.sol#212)
- PCSRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (UFGrainToken.sol#275-282)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (UFGrainToken.sol#212)
- _allowances[owner][spender] = amount (BEP20.sol#286)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in UFGrainToken._transfer(address,address,uint256) (UFGrainToken.sol#144-185):
External calls:
- swapAndLiquify() (UFGrainToken.sol#160)
- PCSRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (UFGrainToken.sol#275-282)
- PCSRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (UFGrainToken.sol#228-234)
External calls sending eth:
- swapAndLiquify() (UFGrainToken.sol#160)
- PCSRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (UFGrainToken.sol#275-282)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (BEP20.sol#230)
- super._transfer(sender,devAddress,devAmount) (UFGrainToken.sol#182)
- Transfer(sender,recipient,amount) (BEP20.sol#230)
- super._transfer(sender,recipient,sendAmount) (UFGrainToken.sol#183)
- Transfer(sender,recipient,amount) (BEP20.sol#230)
- super._transfer(sender,address(this),liquidityAmount) (UFGrainToken.sol#181)
- Transfer(sender,recipient,amount) (BEP20.sol#230)
- super._transfer(sender,recipient,amount) (UFGrainToken.sol#166)
Reentrancy in UFGrainToken.swapAndLiquify() (UFGrainToken.sol#188-216):
External calls:
- swapTokensForEth(half) (UFGrainToken.sol#206)
- PCSRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (UFGrainToken.sol#228-234)
- addLiquidity(otherHalf,newBalance) (UFGrainToken.sol#212)
- PCSRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (UFGrainToken.sol#275-282)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (UFGrainToken.sol#212)
- PCSRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,operator(),block.timestamp) (UFGrainToken.sol#275-282)
Event emitted after the call(s):
- Approval(owner,spender,amount) (BEP20.sol#287)
- addLiquidity(otherHalf,newBalance) (UFGrainToken.sol#212)
- SwapAndLiquify(half,newBalance,otherHalf) (UFGrainToken.sol#214)
Apply the check-effects-interactions pattern.

Additional information: link

UFGrainToken._transfer(address,address,uint256) (UFGrainToken.sol#144-185) compares to a boolean constant:
-swapAndLiquifyEnabled == true && _inSwapAndLiquify == false && address(PCSRouter) != address(0) && lpToken != address(0) && sender != lpToken && sender != owner() (UFGrainToken.sol#150-155)
UFGrainToken._transfer(address,address,uint256) (UFGrainToken.sol#144-185) compares to a boolean constant:
-require(bool,string)(tradingOpen == true || recipient == lpToken && ethRouterBalance_scope_0 > 0,Trading not yet open.) (UFGrainToken.sol#169)
UFGrainToken.antiWhale(address,address,uint256) (UFGrainToken.sol#109-120) compares to a boolean constant:
-_excludedFromAntiWhale[recipient] == false (UFGrainToken.sol#113)
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.4.0 (BEP20.sol#3)
- >=0.6.0<0.8.0 (Context.sol#3)
- >=0.6.4 (IBEP20.sol#3)
- >=0.6.2 (IUniswapV2Router01.sol#3)
- >=0.6.2 (IUniswapV2Router02.sol#3)
- >=0.6.0<0.8.0 (Ownable.sol#3)
- >=0.6.0<0.8.0 (SafeMath.sol#3)
- 0.6.12 (UFGrainToken.sol#3)
Use one Solidity version.

Additional information: link

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

Additional information: link

Pragma version>=0.4.0 (BEP20.sol#3) allows old versions
Pragma version>=0.6.0<0.8.0 (Context.sol#3) is too complex
Pragma version>=0.6.4 (IBEP20.sol#3) allows old versions
Pragma version>=0.6.2 (IUniswapV2Router01.sol#3) allows old versions
Pragma version>=0.6.2 (IUniswapV2Router02.sol#3) allows old versions
Pragma version>=0.6.0<0.8.0 (Ownable.sol#3) is too complex
Pragma version>=0.6.0<0.8.0 (SafeMath.sol#3) is too complex
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 IUniswapV2Router01.WETH() (IUniswapV2Router01.sol#7) is not in mixedCase
Parameter UFGrainToken.mint(address,uint256)._to (UFGrainToken.sol#138) is not in mixedCase
Parameter UFGrainToken.mint(address,uint256)._amount (UFGrainToken.sol#138) is not in mixedCase
Parameter UFGrainToken.isExcludedFromAntiWhale(address)._account (UFGrainToken.sol#295) is not in mixedCase
Parameter UFGrainToken.updateSwapAndLiquifyEnabled(bool)._enabled (UFGrainToken.sol#313) is not in mixedCase
Parameter UFGrainToken.updateDevAddress(address)._devAddress (UFGrainToken.sol#322) is not in mixedCase
Parameter UFGrainToken.setExcludedFromAntiWhale(address)._account (UFGrainToken.sol#342) is not in mixedCase
Parameter UFGrainToken.setExcludeFromFee(address,bool)._account (UFGrainToken.sol#398) is not in mixedCase
Parameter UFGrainToken.setExcludeFromFee(address,bool)._trueOrFalse (UFGrainToken.sol#398) is not in mixedCase
Variable UFGrainToken.PCSRouter (UFGrainToken.sol#53) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (Context.sol#21)" inContext (Context.sol#15-25)
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 (IUniswapV2Router01.sol#12) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (IUniswapV2Router01.sol#13)
Prevent variables from having similar names.

Additional information: link

UFGrainToken.slitherConstructorVariables() (UFGrainToken.sol#9-405) uses literals with too many digits:
- initialCap = 300000 * 10 ** 18 (UFGrainToken.sol#11)
UFGrainToken.slitherConstructorVariables() (UFGrainToken.sol#9-405) uses literals with too many digits:
- cap = 10000000 * 10 ** 18 (UFGrainToken.sol#13)
UFGrainToken.slitherConstructorConstantVariables() (UFGrainToken.sol#9-405) uses literals with too many digits:
- BURN_ADDRESS = 0x000000000000000000000000000000000000dEaD (UFGrainToken.sol#65)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

UFGrainToken.initialCap (UFGrainToken.sol#11) is never used in UFGrainToken (UFGrainToken.sol#9-405)
Remove unused state variables.

Additional information: link

BEP20._setupDecimals (BEP20.sol#47) should be constant
UFGrainToken._maxHoldingEnable (UFGrainToken.sol#59) should be constant
UFGrainToken.cap (UFGrainToken.sol#13) should be constant
UFGrainToken.initialCap (UFGrainToken.sol#11) should be constant
UFGrainToken.liquifyRate (UFGrainToken.sol#38) should be constant
UFGrainToken.maxHoldingRate (UFGrainToken.sol#32) should be constant
UFGrainToken.minAmountToLiquify (UFGrainToken.sol#44) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

name() should be declared external:
- BEP20.name() (BEP20.sol#74-76)
symbol() should be declared external:
- BEP20.symbol() (BEP20.sol#82-84)
decimals() should be declared external:
- BEP20.decimals() (BEP20.sol#89-91)
transfer(address,uint256) should be declared external:
- BEP20.transfer(address,uint256) (BEP20.sol#115-118)
allowance(address,address) should be declared external:
- BEP20.allowance(address,address) (BEP20.sol#123-125)
approve(address,uint256) should be declared external:
- BEP20.approve(address,uint256) (BEP20.sol#134-137)
transferFrom(address,address,uint256) should be declared external:
- BEP20.transferFrom(address,address,uint256) (BEP20.sol#151-159)
increaseAllowance(address,uint256) should be declared external:
- BEP20.increaseAllowance(address,uint256) (BEP20.sol#173-176)
decreaseAllowance(address,uint256) should be declared external:
- BEP20.decreaseAllowance(address,uint256) (BEP20.sol#192-195)
mint(uint256) should be declared external:
- BEP20.mint(uint256) (BEP20.sol#205-208)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (Ownable.sol#54-57)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (Ownable.sol#63-67)
mint(address,uint256) should be declared external:
- UFGrainToken.mint(address,uint256) (UFGrainToken.sol#138-141)
isExcludedFromAntiWhale(address) should be declared external:
- UFGrainToken.isExcludedFromAntiWhale(address) (UFGrainToken.sol#295-297)
transferPCSRouter(address) should be declared external:
- UFGrainToken.transferPCSRouter(address) (UFGrainToken.sol#303-307)
updateSwapAndLiquifyEnabled(bool) should be declared external:
- UFGrainToken.updateSwapAndLiquifyEnabled(bool) (UFGrainToken.sol#313-316)
updateDevAddress(address) should be declared external:
- UFGrainToken.updateDevAddress(address) (UFGrainToken.sol#322-326)
setExcludedFromAntiWhale(address) should be declared external:
- UFGrainToken.setExcludedFromAntiWhale(address) (UFGrainToken.sol#342-344)
transferLpToken(address) should be declared external:
- UFGrainToken.transferLpToken(address) (UFGrainToken.sol#369-374)
transferOperator(address) should be declared external:
- UFGrainToken.transferOperator(address) (UFGrainToken.sol#380-384)
openTrading(bool) should be declared external:
- UFGrainToken.openTrading(bool) (UFGrainToken.sol#389-392)
setExcludeFromFee(address,bool) should be declared external:
- UFGrainToken.setExcludeFromFee(address,bool) (UFGrainToken.sol#398-400)
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.


Unable to find Telegram and Twitter accounts


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


Young tokens have high risks of price dump / death


Token has no active CoinGecko listing / rank


Token has no active CoinMarketCap listing / rank

Price for UFGRAIN