LFW Token Logo

LFW Token

About LFW

Listings

Token 13 months
CoinGecko 13 months
CoinMarketCap 13 months
white paper

Legend of Fantasy War is a unique 3D turn-based role-playing online blockchain game. By blockchainizing in-game items, the game provides players ownership of in-game items by owning so-called Non-Fungible Token (NFT). With an engaging storyline, players can both entertain themselves and collect valuable items, even increase the value of items while playing games solo or with others. Thanks to the blockchain of items, owners of NFTs can sell, exchange, and auction transparently on the Legend of Fantasy War NFT marketplace.

Laser Scorebeta Last Audit: 2 August 2022

report
Token seems to be (relatively) fine. It still become a scam, but probability is moderate.

Anti-Scam

Links


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

LGEWhitelisted._applyLGEWhitelist(address,address,uint256) (contracts/whitelist/LGEWhitelisted.sol#174-220) uses a dangerous strict equality:
- _lgeTimestamp == 0 && sender != _lgePairAddress && recipient == _lgePairAddress && amount > 0 (contracts/whitelist/LGEWhitelisted.sol#183-186)
Don't use strict equality to determine if an account has enough Ether or tokens.

Additional information: link

ERC20PresetFixedSupply.constructor(string,string,uint256,address).name (@openzeppelin/contracts/token/ERC20/presets/ERC20PresetFixedSupply.sol#25) shadows:
- ERC20.name() (@openzeppelin/contracts/token/ERC20/ERC20.sol#61-63) (function)
- IERC20Metadata.name() (@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol#16) (function)
ERC20PresetFixedSupply.constructor(string,string,uint256,address).symbol (@openzeppelin/contracts/token/ERC20/presets/ERC20PresetFixedSupply.sol#26) shadows:
- ERC20.symbol() (@openzeppelin/contracts/token/ERC20/ERC20.sol#69-71) (function)
- IERC20Metadata.symbol() (@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol#21) (function)
Rename the local variables that shadow another component.

Additional information: link

LGEWhitelisted.createLGEWhitelist(address,uint256[],uint256[]).pairAddress (contracts/whitelist/LGEWhitelisted.sol#69) lacks a zero-check on :
- _lgePairAddress = pairAddress (contracts/whitelist/LGEWhitelisted.sol#75)
Check that the address is not zero.

Additional information: link

LGEWhitelisted.getLGEWhitelistRound() (contracts/whitelist/LGEWhitelisted.sol#133-167) uses timestamp for comparisons
Dangerous comparisons:
- _lgeTimestamp > 0 (contracts/whitelist/LGEWhitelisted.sol#145)
- block.timestamp <= wlCloseTimestampLast (contracts/whitelist/LGEWhitelisted.sol#154)
LGEWhitelisted._applyLGEWhitelist(address,address,uint256) (contracts/whitelist/LGEWhitelisted.sol#174-220) uses timestamp for comparisons
Dangerous comparisons:
- _lgeTimestamp == 0 && sender != _lgePairAddress && recipient == _lgePairAddress && amount > 0 (contracts/whitelist/LGEWhitelisted.sol#183-186)
- wlRoundNumber > 0 (contracts/whitelist/LGEWhitelisted.sol#194)
Avoid relying on block.timestamp.

Additional information: link

Different versions of Solidity is used:
- Version used: ['^0.8.0', '^0.8.4']
- ^0.8.0 (@openzeppelin/contracts/token/ERC20/ERC20.sol#3)
- ^0.8.0 (@openzeppelin/contracts/token/ERC20/IERC20.sol#3)
- ^0.8.0 (@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol#3)
- ^0.8.0 (@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol#3)
- ^0.8.0 (@openzeppelin/contracts/token/ERC20/presets/ERC20PresetFixedSupply.sol#2)
- ^0.8.0 (@openzeppelin/contracts/utils/Context.sol#3)
- ^0.8.0 (@openzeppelin/contracts/utils/math/SafeMath.sol#3)
- ^0.8.4 (contracts/LFWToken.sol#3)
- ^0.8.4 (contracts/whitelist/LGEWhitelisted.sol#5)
Use one Solidity version.

Additional information: link

Context._msgData() (@openzeppelin/contracts/utils/Context.sol#20-22) is never used and should be removed
SafeMath.div(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#134-136) is never used and should be removed
SafeMath.div(uint256,uint256,string) (@openzeppelin/contracts/utils/math/SafeMath.sol#190-199) is never used and should be removed
SafeMath.mod(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#150-152) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (@openzeppelin/contracts/utils/math/SafeMath.sol#216-225) is never used and should be removed
SafeMath.mul(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#120-122) is never used and should be removed
SafeMath.sub(uint256,uint256,string) (@openzeppelin/contracts/utils/math/SafeMath.sol#167-176) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#21-27) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#63-68) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#75-80) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#46-56) is never used and should be removed
SafeMath.trySub(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#34-39) is never used and should be removed
Remove unused functions.

Additional information: link

Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC20/ERC20.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC20/IERC20.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/token/ERC20/presets/ERC20PresetFixedSupply.sol#2) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/utils/Context.sol#3) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/utils/math/SafeMath.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

Variable LGEWhitelisted._lgeWhitelistRounds (contracts/whitelist/LGEWhitelisted.sol#17) is not in mixedCase
Variable LGEWhitelisted._lgeTimestamp (contracts/whitelist/LGEWhitelisted.sol#19) is not in mixedCase
Variable LGEWhitelisted._lgePairAddress (contracts/whitelist/LGEWhitelisted.sol#20) is not in mixedCase
Variable LGEWhitelisted._whitelister (contracts/whitelist/LGEWhitelisted.sol#22) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

LFWToken.constructor() (contracts/LFWToken.sol#9-16) uses literals with too many digits:
- ERC20PresetFixedSupply(LFW Token,LFW,200000000 * 10 ** decimals(),msg.sender) (contracts/LFWToken.sol#10-15)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

name() should be declared external:
- ERC20.name() (@openzeppelin/contracts/token/ERC20/ERC20.sol#61-63)
symbol() should be declared external:
- ERC20.symbol() (@openzeppelin/contracts/token/ERC20/ERC20.sol#69-71)
totalSupply() should be declared external:
- ERC20.totalSupply() (@openzeppelin/contracts/token/ERC20/ERC20.sol#93-95)
balanceOf(address) should be declared external:
- ERC20.balanceOf(address) (@openzeppelin/contracts/token/ERC20/ERC20.sol#100-102)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (@openzeppelin/contracts/token/ERC20/ERC20.sol#112-115)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (@openzeppelin/contracts/token/ERC20/ERC20.sol#131-134)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (@openzeppelin/contracts/token/ERC20/ERC20.sol#149-163)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (@openzeppelin/contracts/token/ERC20/ERC20.sol#177-180)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (@openzeppelin/contracts/token/ERC20/ERC20.sol#196-204)
burn(uint256) should be declared external:
- ERC20Burnable.burn(uint256) (@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol#19-21)
burnFrom(address,uint256) should be declared external:
- ERC20Burnable.burnFrom(address,uint256) (@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol#34-41)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


Token is deployed only at one blockchain

No disclosed threats


Unable to find token contract audit


Unable to find token on CoinHunt

Additional information: link


Unable to find audit link on the website


Unable to find whitepaper link on the website


Young tokens have high risks of price dump / death

Price for LFW

News for LFW