KNIGHT is an inflationary token in the Knights of the Round Table ecosystem with a max supply of 10,000,000 and utility for exchanging other tokens, purchasing NFTs and lottery tickets.
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
KnightToken._writeCheckpoint(address,uint32,uint256,uint256) (contracts/KnightToken.sol#229-247) uses a dangerous strict equality:
- nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber (contracts/KnightToken.sol#239)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
Low level call in Address.sendValue(address,uint256) (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#55-61):
- (success) = recipient.call{value: amount}() (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#59)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#134-160):
- (success,returndata) = target.call{value: weiValue}(data) (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#143)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Parameter KnightToken.mint(address,uint256)._to (contracts/KnightToken.sol#14) is not in mixedCase
Parameter KnightToken.mint(address,uint256)._amount (contracts/KnightToken.sol#14) is not in mixedCase
Variable KnightToken._delegates (contracts/KnightToken.sol#37) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
BEP20.constructor(string,string).name (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#58) shadows:
- BEP20.name() (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#74-76) (function)
- IBEP20.name() (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/IBEP20.sol#24) (function)
BEP20.constructor(string,string).symbol (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#58) shadows:
- BEP20.symbol() (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#88-90) (function)
- IBEP20.symbol() (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/IBEP20.sol#19) (function)
BEP20.allowance(address,address).owner (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#122) shadows:
- Ownable.owner() (@pancakeswap/pancake-swap-lib/contracts/access/Ownable.sol#36-38) (function)
BEP20._approve(address,address,uint256).owner (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#294) shadows:
- Ownable.owner() (@pancakeswap/pancake-swap-lib/contracts/access/Ownable.sol#36-38) (function)
Rename the local variables that shadow another component.
Additional information: link
KnightToken.constructor(address)._treasury (contracts/KnightToken.sol#22) lacks a zero-check on :
- treasury = _treasury (contracts/KnightToken.sol#24)
Check that the address is not zero.
Additional information: link
KnightToken.delegateBySig(address,uint256,uint256,uint8,bytes32,bytes32) (contracts/KnightToken.sol#95-136) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(now <= expiry,KNIGHT::delegateBySig: signature expired) (contracts/KnightToken.sol#134)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#26-37) uses assembly
- INLINE ASM (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#33-35)
Address._functionCallWithValue(address,bytes,uint256,string) (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#134-160) uses assembly
- INLINE ASM (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#152-155)
KnightToken.getChainId() (contracts/KnightToken.sol#254-258) uses assembly
- INLINE ASM (contracts/KnightToken.sol#256)
Do not use evm assembly.
Additional information: link
Different versions of Solidity is used:
- Version used: ['0.6.12', '>=0.4.0', '^0.6.2']
- >=0.4.0 (@pancakeswap/pancake-swap-lib/contracts/GSN/Context.sol#3)
- >=0.4.0 (@pancakeswap/pancake-swap-lib/contracts/access/Ownable.sol#3)
- >=0.4.0 (@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol#3)
- >=0.4.0 (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#3)
- >=0.4.0 (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/IBEP20.sol#3)
- ^0.6.2 (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#3)
- 0.6.12 (contracts/KnightToken.sol#1)
Use one Solidity version.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#134-160) is never used and should be removed
Address.functionCall(address,bytes) (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#81-83) is never used and should be removed
Address.functionCall(address,bytes,string) (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#91-97) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#110-116) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#124-132) is never used and should be removed
Address.isContract(address) (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#26-37) is never used and should be removed
Address.sendValue(address,uint256) (@pancakeswap/pancake-swap-lib/contracts/utils/Address.sol#55-61) is never used and should be removed
BEP20._burn(address,uint256) (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#272-278) is never used and should be removed
BEP20._burnFrom(address,uint256) (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#311-318) is never used and should be removed
Context._msgData() (@pancakeswap/pancake-swap-lib/contracts/GSN/Context.sol#24-27) is never used and should be removed
SafeMath.div(uint256,uint256) (@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol#107-109) is never used and should be removed
SafeMath.div(uint256,uint256,string) (@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol#123-133) is never used and should be removed
SafeMath.min(uint256,uint256) (@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol#172-174) is never used and should be removed
SafeMath.mod(uint256,uint256) (@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol#147-149) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol#163-170) is never used and should be removed
SafeMath.mul(uint256,uint256) (@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol#81-93) is never used and should be removed
SafeMath.sqrt(uint256) (@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol#177-188) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version>=0.4.0 (@pancakeswap/pancake-swap-lib/contracts/GSN/Context.sol#3) allows old versions
Pragma version>=0.4.0 (@pancakeswap/pancake-swap-lib/contracts/access/Ownable.sol#3) allows old versions
Pragma version>=0.4.0 (@pancakeswap/pancake-swap-lib/contracts/math/SafeMath.sol#3) allows old versions
Pragma version>=0.4.0 (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#3) allows old versions
Pragma version>=0.4.0 (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/IBEP20.sol#3) allows old versions
Pragma version^0.6.2 (@pancakeswap/pancake-swap-lib/contracts/utils/Address.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
Redundant expression "this (@pancakeswap/pancake-swap-lib/contracts/GSN/Context.sol#25)" inContext (@pancakeswap/pancake-swap-lib/contracts/GSN/Context.sol#15-28)
Remove redundant statements if they congest code but offer no value.
Additional information: link
KnightToken.slitherConstructorVariables() (contracts/KnightToken.sol#9-260) uses literals with too many digits:
- maxSupply = 10000000 * 10 ** 18 (contracts/KnightToken.sol#11)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
KnightToken.maxSupply (contracts/KnightToken.sol#11) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (@pancakeswap/pancake-swap-lib/contracts/access/Ownable.sol#55-58)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (@pancakeswap/pancake-swap-lib/contracts/access/Ownable.sol#64-66)
decimals() should be declared external:
- BEP20.decimals() (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#81-83)
symbol() should be declared external:
- BEP20.symbol() (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#88-90)
totalSupply() should be declared external:
- BEP20.totalSupply() (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#95-97)
transfer(address,uint256) should be declared external:
- BEP20.transfer(address,uint256) (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#114-117)
allowance(address,address) should be declared external:
- BEP20.allowance(address,address) (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#122-124)
approve(address,uint256) should be declared external:
- BEP20.approve(address,uint256) (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#133-136)
transferFrom(address,address,uint256) should be declared external:
- BEP20.transferFrom(address,address,uint256) (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#150-162)
increaseAllowance(address,uint256) should be declared external:
- BEP20.increaseAllowance(address,uint256) (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#176-179)
decreaseAllowance(address,uint256) should be declared external:
- BEP20.decreaseAllowance(address,uint256) (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#195-202)
mint(uint256) should be declared external:
- BEP20.mint(uint256) (@pancakeswap/pancake-swap-lib/contracts/token/BEP20/BEP20.sol#212-215)
mint(address,uint256) should be declared external:
- KnightToken.mint(address,uint256) (contracts/KnightToken.sol#14-17)
Use the external attribute for functions never called from the contract.
Additional information: link
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.
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.
Number of Binance Smart Chain (BSC) token holders is low.
Token is deployed only at one blockchain
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Token has a considerable age, but average PancakeSwap 30d trading volume is low
Unable to find Youtube account
Unable to find Discord account