Rune is the future of gaming.
We're building modern game experiences, backed by open immutable hash technology. Aligning incentives between games and gamers in new revolutionary ways. Soon you won't know you're using blockchain, but you'll be glad you are.
ERC20Votes._writeCheckpoint(ERC20Votes.Checkpoint[],function(uint256,uint256) returns(uint256),uint256) (#1549-1563) uses a dangerous strict equality:
- pos > 0 && ckpts[pos - 1].fromBlock == block.number (#1558)
RuneShards._transfer(address,address,uint256) (#2943-2990) uses a dangerous strict equality:
- balanceOf(sender) - remainingAmount == 0 && remainingAmount > 0 && sender != address(this) (#2982-2984)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
ERC20Votes._moveVotingPower(address,address,uint256).oldWeight_scope_0 (#1543) is a local variable never initialized
ERC20Votes._moveVotingPower(address,address,uint256).newWeight_scope_1 (#1543) is a local variable never initialized
Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability.
Additional information: link
RuneShards.constructor(address) (#2594-2620) ignores return value by excluded.add(address(this)) (#2602)
RuneShards.removeExcluded(address) (#2799-2807) ignores return value by excluded.remove(_reincluded) (#2806)
RuneShards.addBot(address) (#2739-2744) ignores return value by bot.add(_bot) (#2743)
RuneShards.addExcluded(address) (#2751-2753) ignores return value by excluded.add(_excluded) (#2752)
RuneShards.removeBot(address) (#2790-2792) ignores return value by bot.remove(_bot) (#2791)
Ensure that all the return values of the function calls are used.
Additional information: link
ERC20Permit.constructor(string).name (#970) shadows:
- ERC20.name() (#204-206) (function)
- IERC20Metadata.name() (#103) (function)
Rename the local variables that shadow another component.
Additional information: link
Variable 'ECDSA.tryRecover(bytes32,bytes).r (#624)' in ECDSA.tryRecover(bytes32,bytes) (#619-648) potentially used before declaration: r = mload(uint256)(signature + 0x20) (#641)
Variable 'ERC20Votes._moveVotingPower(address,address,uint256).newWeight (#1538)' in ERC20Votes._moveVotingPower(address,address,uint256) (#1531-1547) potentially used before declaration: (oldWeight,newWeight) = _writeCheckpoint(_checkpoints[dst],_add,amount) (#1543)
Variable 'ERC20Votes._moveVotingPower(address,address,uint256).oldWeight (#1538)' in ERC20Votes._moveVotingPower(address,address,uint256) (#1531-1547) potentially used before declaration: (oldWeight,newWeight) = _writeCheckpoint(_checkpoints[dst],_add,amount) (#1543)
Move all variable declarations prior to any usage of the variable, and ensure that reaching a variable declaration does not depend on some conditional if it is used unconditionally.
Additional information: link
Reentrancy in RuneShards.swap(uint256) (#2634-2654):
External calls:
- require(bool,string)(rune.transferFrom(_msgSender(),BURN_ADDRESS,amount),Rune transfer failed) (#2642-2645)
State variables written after the call(s):
- _approve(address(this),_msgSender(),swapAmount) (#2650)
- _allowances[owner][spender] = amount (#455)
- transferFrom(address(this),_msgSender(),swapAmount) (#2651)
- _allowances[owner][spender] = amount (#455)
- transferFrom(address(this),_msgSender(),swapAmount) (#2651)
- _balances[sender] = senderBalance - amount (#376)
- _balances[recipient] += amount (#378)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in RuneShards.swap(uint256) (#2634-2654):
External calls:
- require(bool,string)(rune.transferFrom(_msgSender(),BURN_ADDRESS,amount),Rune transfer failed) (#2642-2645)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#456)
- _approve(address(this),_msgSender(),swapAmount) (#2650)
- Approval(owner,spender,amount) (#456)
- transferFrom(address(this),_msgSender(),swapAmount) (#2651)
- DelegateVotesChanged(src,oldWeight,newWeight) (#1539)
- transferFrom(address(this),_msgSender(),swapAmount) (#2651)
- DelegateVotesChanged(dst,oldWeight_scope_0,newWeight_scope_1) (#1544)
- transferFrom(address(this),_msgSender(),swapAmount) (#2651)
- Swap(_msgSender(),swapAmount) (#2653)
- Transfer(sender,recipient,amount) (#380)
- transferFrom(address(this),_msgSender(),swapAmount) (#2651)
Reentrancy in RuneShards.rescueTokens(IERC20) (#2819-2833):
External calls:
- require(bool,string)(token.transfer(_msgSender(),balance),Token transfer failed) (#2827-2830)
Event emitted after the call(s):
- RescueTokens(token,_msgSender(),balance) (#2832)
Apply the check-effects-interactions pattern.
Additional information: link
ERC20Permit.permit(address,address,uint256,uint256,uint8,bytes32,bytes32) (#975-994) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp <= deadline,ERC20Permit: expired deadline) (#984)
ERC20Votes.delegateBySig(address,uint256,uint256,uint8,bytes32,bytes32) (#1456-1473) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp <= expiry,ERC20Votes: signature expired) (#1464)
Avoid relying on block.timestamp.
Additional information: link
EnumerableSet.values(EnumerableSet.UintSet) (#2419-2428) uses assembly
- INLINE ASM (#2423-2425)
EnumerableSet.values(EnumerableSet.AddressSet) (#2346-2355) uses assembly
- INLINE ASM (#2350-2352)
ECDSA.tryRecover(bytes32,bytes32,bytes32) (#677-689) uses assembly
- INLINE ASM (#684-687)
ECDSA.tryRecover(bytes32,bytes) (#619-648) uses assembly
- INLINE ASM (#629-633)
- INLINE ASM (#640-643)
Do not use evm assembly.
Additional information: link
Different versions of Solidity are used:
- Version used: ['=0.8.4', '^0.8.0']
- ^0.8.0 (#7)
- ^0.8.0 (#92)
- ^0.8.0 (#121)
- ^0.8.0 (#148)
- ^0.8.0 (#505)
- ^0.8.0 (#568)
- ^0.8.0 (#791)
- ^0.8.0 (#894)
- ^0.8.0 (#940)
- ^0.8.0 (#1028)
- ^0.8.0 (#1074)
- ^0.8.0 (#1318)
- ^0.8.0 (#1579)
- ^0.8.0 (#1645)
- ^0.8.0 (#1736)
- ^0.8.0 (#1806)
- ^0.8.0 (#1834)
- ^0.8.0 (#1864)
- ^0.8.0 (#2076)
- =0.8.4 (#2475)
Use one Solidity version.
Additional information: link
EnumerableSet.values(EnumerableSet.Bytes32Set) (#2280-2282) is never used and should be removed
AccessControl._setRoleAdmin(bytes32,bytes32) (#2050-2054) is never used and should be removed
EnumerableSet.length(EnumerableSet.Bytes32Set) (#2254-2256) is never used and should be removed
EnumerableSet.at(EnumerableSet.Bytes32Set,uint256) (#2268-2270) is never used and should be removed
Math.ceilDiv(uint256,uint256) (#1063-1066) is never used and should be removed
EnumerableSet.remove(EnumerableSet.UintSet,uint256) (#2379-2381) is never used and should be removed
SafeCast.toUint64(uint256) (#1147-1150) is never used and should be removed
ECDSA.recover(bytes32,bytes) (#664-668) is never used and should be removed
SafeCast.toUint256(int256) (#1204-1207) is never used and should be removed
EnumerableSet.contains(EnumerableSet.Bytes32Set,bytes32) (#2247-2249) is never used and should be removed
SafeCast.toInt256(uint256) (#1306-1310) is never used and should be removed
Strings.toHexString(uint256) (#1772-1783) is never used and should be removed
Math.max(uint256,uint256) (#1037-1039) is never used and should be removed
SafeCast.toUint128(uint256) (#1117-1120) is never used and should be removed
EnumerableSet.contains(EnumerableSet.UintSet,uint256) (#2386-2388) is never used and should be removed
ECDSA.tryRecover(bytes32,bytes) (#619-648) is never used and should be removed
ECDSA.toEthSignedMessageHash(bytes32) (#766-770) is never used and should be removed
SafeCast.toUint8(uint256) (#1192-1195) is never used and should be removed
ERC20Votes._subtract(uint256,uint256) (#1569-1571) is never used and should be removed
Strings.toString(uint256) (#1747-1767) is never used and should be removed
Counters.reset(Counters.Counter) (#930-932) is never used and should be removed
ERC20._burn(address,uint256) (#417-432) is never used and should be removed
ERC20Votes._burn(address,uint256) (#1495-1499) is never used and should be removed
SafeCast.toInt128(int256) (#1222-1225) is never used and should be removed
SafeCast.toInt32(int256) (#1258-1261) is never used and should be removed
ERC20Votes._add(uint256,uint256) (#1565-1567) is never used and should be removed
EnumerableSet.add(EnumerableSet.Bytes32Set,bytes32) (#2230-2232) is never used and should be removed
Counters.decrement(Counters.Counter) (#922-928) is never used and should be removed
EnumerableSet.values(EnumerableSet.UintSet) (#2419-2428) is never used and should be removed
SafeCast.toInt64(int256) (#1240-1243) is never used and should be removed
Context._msgData() (#138-140) is never used and should be removed
SafeCast.toInt8(int256) (#1294-1297) is never used and should be removed
SafeCast.toUint96(uint256) (#1132-1135) is never used and should be removed
ECDSA.tryRecover(bytes32,bytes32,bytes32) (#677-689) is never used and should be removed
RuneShards._burn(address,uint256) (#2918-2923) is never used and should be removed
SafeCast.toUint16(uint256) (#1177-1180) is never used and should be removed
SafeCast.toInt16(int256) (#1276-1279) is never used and should be removed
EnumerableSet.length(EnumerableSet.UintSet) (#2393-2395) is never used and should be removed
EnumerableSet.at(EnumerableSet.UintSet,uint256) (#2407-2409) is never used and should be removed
Math.min(uint256,uint256) (#1044-1046) is never used and should be removed
RuneShards._mint(address,uint256) (#2928-2933) is never used and should be removed
ECDSA.recover(bytes32,bytes32,bytes32) (#696-704) is never used and should be removed
EnumerableSet.add(EnumerableSet.UintSet,uint256) (#2369-2371) is never used and should be removed
EnumerableSet.remove(EnumerableSet.Bytes32Set,bytes32) (#2240-2242) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.8.0 (#2076) allows old versions
Pragma version^0.8.0 (#7) allows old versions
Pragma version^0.8.0 (#1318) allows old versions
Pragma version^0.8.0 (#940) allows old versions
Pragma version^0.8.0 (#1864) allows old versions
Pragma version^0.8.0 (#1834) allows old versions
Pragma version^0.8.0 (#568) allows old versions
Pragma version^0.8.0 (#1028) allows old versions
Pragma version^0.8.0 (#505) allows old versions
Pragma version^0.8.0 (#1806) allows old versions
Pragma version^0.8.0 (#148) allows old versions
Pragma version^0.8.0 (#791) allows old versions
Pragma version^0.8.0 (#121) allows old versions
Pragma version^0.8.0 (#1645) allows old versions
Pragma version^0.8.0 (#1074) allows old versions
Pragma version^0.8.0 (#1579) allows old versions
Pragma version^0.8.0 (#92) allows old versions
Pragma version^0.8.0 (#894) allows old versions
Pragma version^0.8.0 (#1736) 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 RuneShards.addExcluded(address)._excluded (#2751) is not in mixedCase
Parameter RuneShards.setFeeInfo(address,address,address,address,uint256,uint256,uint256,uint256)._devAddress (#2854) is not in mixedCase
Parameter RuneShards.setFeeInfo(address,address,address,address,uint256,uint256,uint256,uint256)._charityFeeBasis (#2857) is not in mixedCase
Parameter RuneShards.addBot(address)._bot (#2739) is not in mixedCase
Parameter RuneShards.isExcluded(address)._excluded (#2727) is not in mixedCase
Parameter RuneShards.removeExcluded(address)._reincluded (#2799) is not in mixedCase
Variable EIP712._TYPE_HASH (#821) is not in mixedCase
Parameter RuneShards.setFeeInfo(address,address,address,address,uint256,uint256,uint256,uint256)._botAddress (#2855) is not in mixedCase
Variable ERC20Permit._PERMIT_TYPEHASH (#962-963) is not in mixedCase
Parameter RuneShards.changeMaxTransferAmount(uint256)._maxTransferAmount (#2762) is not in mixedCase
Parameter RuneShards.isBot(address)._bot (#2717) is not in mixedCase
Function IERC20Permit.DOMAIN_SEPARATOR() (#560) is not in mixedCase
Variable EIP712._CACHED_CHAIN_ID (#817) is not in mixedCase
Parameter RuneShards.setFeeInfo(address,address,address,address,uint256,uint256,uint256,uint256)._vaultAddress (#2852) is not in mixedCase
Function ERC20Permit.DOMAIN_SEPARATOR() (#1007-1009) is not in mixedCase
Parameter RuneShards.setFeeInfo(address,address,address,address,uint256,uint256,uint256,uint256)._devFeeBasis (#2858) is not in mixedCase
Parameter RuneShards.setFeeInfo(address,address,address,address,uint256,uint256,uint256,uint256)._botFeeBasis (#2859) is not in mixedCase
Parameter RuneShards.removeBot(address)._bot (#2790) is not in mixedCase
Variable EIP712._HASHED_NAME (#819) is not in mixedCase
Parameter RuneShards.setFeeInfo(address,address,address,address,uint256,uint256,uint256,uint256)._charityAddress (#2853) is not in mixedCase
Parameter RuneShards.setRune(IERC20)._rune (#2892) is not in mixedCase
Parameter RuneShards.setFeeInfo(address,address,address,address,uint256,uint256,uint256,uint256)._vaultFeeBasis (#2856) is not in mixedCase
Variable EIP712._CACHED_DOMAIN_SEPARATOR (#816) is not in mixedCase
Variable EIP712._HASHED_VERSION (#820) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "to (#2780)" inRuneShards (#2485-2992)
Redundant expression "amount (#2780)" inRuneShards (#2485-2992)
Remove redundant statements if they congest code but offer no value.
Additional information: link
RuneShards.slitherConstructorConstantVariables() (#2485-2992) uses literals with too many digits:
- MIN_MAX_TRANSFER_AMOUNT = 2000000000000000000000000 (#2510)
Use: Ether suffix, Time suffix, or The scientific notation
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.
Token is deployed only at one blockchain
Token is not listed at Mobula.Finance
Additional information: link
Unable to find whitepaper link on the website
Token has a considerable age, but social accounts / website are missing or have few users
Token has a considerable age, but average PancakeSwap 30d trading volume is low
Token has relatively low CoinGecko rank
Twitter account has relatively few followers