StableX.finance is a defi product suite, featuring an AMM and additional products within its ecosystem.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
StaxToken._writeCheckpoint(address,uint32,uint256,uint256) (#987-1005) uses a dangerous strict equality:
- nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber (#997)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
ERC20.constructor(string,string).name (#461) shadows:
- ERC20.name() (#470-472) (function)
ERC20.constructor(string,string).symbol (#461) shadows:
- ERC20.symbol() (#478-480) (function)
Rename the local variables that shadow another component.
Additional information: link
StaxToken.delegateBySig(address,uint256,uint256,uint8,bytes32,bytes32) (#853-894) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(now <= expiry,SUSHI::delegateBySig: signature expired) (#892)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#289-298) uses assembly
- INLINE ASM (#296)
Address._functionCallWithValue(address,bytes,uint256,string) (#382-403) uses assembly
- INLINE ASM (#395-398)
StaxToken.getChainId() (#1012-1016) uses assembly
- INLINE ASM (#1014)
Do not use evm assembly.
Additional information: link
Different versions of Solidity is used:
- Version used: ['0.6.12', '^0.6.0', '^0.6.2']
- ^0.6.0 (#3)
- ^0.6.0 (#28)
- ^0.6.0 (#106)
- ^0.6.2 (#266)
- ^0.6.0 (#408)
- ^0.6.0 (#715)
- 0.6.12 (#783)
Use one Solidity version.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#382-403) is never used and should be removed
Address.functionCall(address,bytes) (#342-344) is never used and should be removed
Address.functionCall(address,bytes,string) (#352-354) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#367-369) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#377-380) is never used and should be removed
Address.isContract(address) (#289-298) is never used and should be removed
Address.sendValue(address,uint256) (#316-322) is never used and should be removed
Context._msgData() (#20-23) is never used and should be removed
ERC20._burn(address,uint256) (#654-662) is never used and should be removed
ERC20._setupDecimals(uint8) (#692-694) is never used and should be removed
SafeMath.div(uint256,uint256) (#206-208) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#222-228) is never used and should be removed
SafeMath.mod(uint256,uint256) (#242-244) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#258-261) is never used and should be removed
SafeMath.mul(uint256,uint256) (#180-192) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.6.0 (#3) allows old versions
Pragma version^0.6.0 (#28) allows old versions
Pragma version^0.6.0 (#106) allows old versions
Pragma version^0.6.2 (#266) allows old versions
Pragma version^0.6.0 (#408) allows old versions
Pragma version^0.6.0 (#715) 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
Low level call in Address.sendValue(address,uint256) (#316-322):
- (success) = recipient.call{value: amount}() (#320)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#382-403):
- (success,returndata) = target.call{value: weiValue}(data) (#386)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Parameter StaxToken.mint(address,uint256)._to (#789) is not in mixedCase
Parameter StaxToken.mint(address,uint256)._amount (#789) is not in mixedCase
Variable StaxToken._delegates (#795) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#21)" inContext (#15-24)
Remove redundant statements if they congest code but offer no value.
Additional information: link
symbol() should be declared external:
- ERC20.symbol() (#478-480)
decimals() should be declared external:
- ERC20.decimals() (#495-497)
totalSupply() should be declared external:
- ERC20.totalSupply() (#502-504)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#521-524)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#529-531)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#540-543)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#557-561)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#575-578)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#594-597)
owner() should be declared external:
- Ownable.owner() (#746-748)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#765-768)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#774-778)
mint(address,uint256) should be declared external:
- StaxToken.mint(address,uint256) (#789-792)
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 number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
Average 30d PancakeSwap volume is low.
Number of Binance Smart Chain (BSC) token holders is low.
Average PancakeSwap trading volume, liqudity, number of swaps are low. Token seems to be inactive.
Token is deployed only at one blockchain
Token was delisted from CoinGecko
Additional information: link
Unable to find audit link on the website
Unable to find whitepaper link on the website
Unable to find Telegram link on the website
Unable to find Twitter link on the website
Token has no active CoinGecko listing / rank
Young tokens have high risks of price dump / death
Twitter account has less than 100 followers
Telegram account has relatively few subscribers
Unable to find Youtube account
Unable to find Discord account
Twitter account has few posts