Detector: controlled-array-length Rubixi (Rubixi.sol#4-155) contract sets array length with a user-controlled value: - participants.push(Participant(msg.sender,(msg.value * pyramidMultiplier) / 100)) (Rubixi.sol#54) Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#array-length-assignment Detector: msg-value-in-nonpayable Rubixi.init() (Rubixi.sol#37-49) uses msg.value but is not reachable from any payable function Non-payable entry points that can reach this function: - Rubixi.fallback() (Rubixi.sol#32-34) Rubixi.addPayout(uint256) (Rubixi.sol#52-72) uses msg.value but is not reachable from any payable function Non-payable entry points that can reach this function: - Rubixi.fallback() (Rubixi.sol#32-34) Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#msgvalue-in-nonpayable Detector: divide-before-multiply Rubixi.collectPercentOfFees(uint256) (Rubixi.sol#92-98) performs a multiplication on the result of a division: - feesToCollect = collectedFees / 100 * _pcent (Rubixi.sol#95) Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#divide-before-multiply Detector: unchecked-send Rubixi.addPayout(uint256) (Rubixi.sol#52-72) ignores return value by participants[payoutOrder].etherAddress.send(payoutToSend) (Rubixi.sol#67) Rubixi.collectAllFees() (Rubixi.sol#75-80) ignores return value by creator.send(collectedFees) (Rubixi.sol#78) Rubixi.collectFeesInEther(uint256) (Rubixi.sol#82-90) ignores return value by creator.send(_amt) (Rubixi.sol#88) Rubixi.collectPercentOfFees(uint256) (Rubixi.sol#92-98) ignores return value by creator.send(feesToCollect) (Rubixi.sol#96) Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#unchecked-send Detector: events-access Rubixi.changeOwner(address) (Rubixi.sol#101-103) should emit an event for: - creator = _owner (Rubixi.sol#102) Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#missing-events-access-control Detector: events-maths Rubixi.collectFeesInEther(uint256) (Rubixi.sol#82-90) should emit an event for: - collectedFees -= _amt (Rubixi.sol#89) Rubixi.collectPercentOfFees(uint256) (Rubixi.sol#92-98) should emit an event for: - collectedFees -= feesToCollect (Rubixi.sol#97) Rubixi.changeMultiplier(uint256) (Rubixi.sol#105-109) should emit an event for: - pyramidMultiplier = _mult (Rubixi.sol#108) Rubixi.changeFeePercentage(uint256) (Rubixi.sol#111-115) should emit an event for: - feePercent = _fee (Rubixi.sol#114) Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#missing-events-arithmetic Detector: missing-zero-check Rubixi.changeOwner(address)._owner (Rubixi.sol#101) lacks a zero-check on : - creator = _owner (Rubixi.sol#102) Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#missing-zero-address-validation Detector: incorrect-modifier Modifier Rubixi.onlyowner() (Rubixi.sol#20-22) does not always execute _; or revert Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#incorrect-modifier Detector: calls-loop Rubixi.addPayout(uint256) (Rubixi.sol#52-72) has external calls inside a loop: participants[payoutOrder].etherAddress.send(payoutToSend) (Rubixi.sol#67) Calls stack containing the loop: Rubixi.fallback() Rubixi.init() Reference: https://github.com/crytic/slither/wiki/Detector-Documentation/#calls-inside-a-loop Detector: deprecated-standards Deprecated standard detected THROW (Rubixi.sol#76): - Usage of "throw" should be replaced with "revert()" Deprecated standard detected THROW (Rubixi.sol#86): - Usage of "throw" should be replaced with "revert()" Deprecated standard detected THROW (Rubixi.sol#93): - Usage of "throw" should be replaced with "revert()" Deprecated standard detected THROW (Rubixi.sol#106): - Usage of "throw" should be replaced with "revert()" Deprecated standard detected THROW (Rubixi.sol#112): - Usage of "throw" should be replaced with "revert()" Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#deprecated-standards Detector: solc-version Version constraint ^0.4.15 contains known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html) - DirtyBytesArrayToStorage - KeccakCaching - EmptyByteArrayCopy - DynamicArrayCleanup - ImplicitConstructorCallvalueCheck - TupleAssignmentMultiStackSlotComponents - MemoryArrayCreationOverflow - privateCanBeOverridden - SignedArrayStorageCopy - UninitializedFunctionPointerInConstructor_0.4.x - IncorrectEventSignatureInLibraries_0.4.x - ExpExponentCleanup - NestedArrayFunctionCallDecoder - ZeroFunctionSelector. It is used by: - ^0.4.15 (Rubixi.sol#2) solc-0.4.26 is an outdated solc version. Use a more recent version (at least 0.8.0), if possible. Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#incorrect-versions-of-solidity Detector: naming-convention Function Rubixi.DynamicPyramid() (Rubixi.sol#16-18) is not in mixedCase Parameter Rubixi.addPayout(uint256)._fee (Rubixi.sol#52) is not in mixedCase Parameter Rubixi.collectFeesInEther(uint256)._amt (Rubixi.sol#82) is not in mixedCase Parameter Rubixi.collectPercentOfFees(uint256)._pcent (Rubixi.sol#92) is not in mixedCase Parameter Rubixi.changeOwner(address)._owner (Rubixi.sol#101) is not in mixedCase Parameter Rubixi.changeMultiplier(uint256)._mult (Rubixi.sol#105) is not in mixedCase Parameter Rubixi.changeFeePercentage(uint256)._fee (Rubixi.sol#111) is not in mixedCase Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#conformance-to-solidity-naming-conventions Detector: reentrancy-unlimited-gas Reentrancy in Rubixi.addPayout(uint256) (Rubixi.sol#52-72): External calls: - participants[payoutOrder].etherAddress.send(payoutToSend) (Rubixi.sol#67) State variables written after the call(s): - balance -= participants[payoutOrder].payout (Rubixi.sol#69) - payoutOrder += 1 (Rubixi.sol#70) Reentrancy in Rubixi.collectAllFees() (Rubixi.sol#75-80): External calls: - creator.send(collectedFees) (Rubixi.sol#78) State variables written after the call(s): - collectedFees = 0 (Rubixi.sol#79) Reentrancy in Rubixi.collectFeesInEther(uint256) (Rubixi.sol#82-90): External calls: - collectAllFees() (Rubixi.sol#84) - creator.send(collectedFees) (Rubixi.sol#78) - creator.send(_amt) (Rubixi.sol#88) State variables written after the call(s): - collectedFees -= _amt (Rubixi.sol#89) Reentrancy in Rubixi.collectPercentOfFees(uint256) (Rubixi.sol#92-98): External calls: - creator.send(feesToCollect) (Rubixi.sol#96) State variables written after the call(s): - collectedFees -= feesToCollect (Rubixi.sol#97) Reference: https://github.com/crytic/slither/wiki/Detector-Documentation#reentrancy-vulnerabilities-5 Rubixi.sol analyzed (1 contracts with 102 detectors), 34 result(s) found Multiple frameworks detected: solc, Solc-json. Using solc (highest priority). Use --compile-force-framework to override. 'solc --version' running 'solc Rubixi.sol --combined-json abi,ast,bin,bin-runtime,srcmap,srcmap-runtime,userdoc,devdoc,hashes,compact-format --allow-paths .,' running Compilation warnings/errors on Rubixi.sol: Rubixi.sol:76:41: Warning: "throw" is deprecated in favour of "revert()", "require()" and "assert()". if (collectedFees == 0) throw; ^---^ Rubixi.sol:86:41: Warning: "throw" is deprecated in favour of "revert()", "require()" and "assert()". if (collectedFees == 0) throw; ^---^ Rubixi.sol:93:57: Warning: "throw" is deprecated in favour of "revert()", "require()" and "assert()". if (collectedFees == 0 || _pcent > 100) throw; ^---^ Rubixi.sol:106:49: Warning: "throw" is deprecated in favour of "revert()", "require()" and "assert()". if (_mult > 300 || _mult < 120) throw; ^---^ Rubixi.sol:112:32: Warning: "throw" is deprecated in favour of "revert()", "require()" and "assert()". if (_fee > 10) throw; ^---^ Rubixi.sol:67:25: Warning: Failure condition of 'send' ignored. Consider using 'transfer' instead. participants[payoutOrder].etherAddress.send(payoutToSend); ^-------------------------------------------------------^ Rubixi.sol:78:17: Warning: Failure condition of 'send' ignored. Consider using 'transfer' instead. creator.send(collectedFees); ^-------------------------^ Rubixi.sol:88:17: Warning: Failure condition of 'send' ignored. Consider using 'transfer' instead. creator.send(_amt); ^----------------^ Rubixi.sol:96:17: Warning: Failure condition of 'send' ignored. Consider using 'transfer' instead. creator.send(feesToCollect); ^-------------------------^ Rubixi.sol:16:9: Warning: No visibility specified. Defaulting to "public". function DynamicPyramid() { ^ (Relevant source part starts here and spans across multiple lines). Rubixi.sol:32:9: Warning: No visibility specified. Defaulting to "public". function() { ^ (Relevant source part starts here and spans across multiple lines). Rubixi.sol:75:9: Warning: No visibility specified. Defaulting to "public". function collectAllFees() onlyowner { ^ (Relevant source part starts here and spans across multiple lines). Rubixi.sol:82:9: Warning: No visibility specified. Defaulting to "public". function collectFeesInEther(uint _amt) onlyowner { ^ (Relevant source part starts here and spans across multiple lines). Rubixi.sol:92:9: Warning: No visibility specified. Defaulting to "public". function collectPercentOfFees(uint _pcent) onlyowner { ^ (Relevant source part starts here and spans across multiple lines). Rubixi.sol:101:9: Warning: No visibility specified. Defaulting to "public". function changeOwner(address _owner) onlyowner { ^ (Relevant source part starts here and spans across multiple lines). Rubixi.sol:105:9: Warning: No visibility specified. Defaulting to "public". function changeMultiplier(uint _mult) onlyowner { ^ (Relevant source part starts here and spans across multiple lines). Rubixi.sol:111:9: Warning: No visibility specified. Defaulting to "public". function changeFeePercentage(uint _fee) onlyowner { ^ (Relevant source part starts here and spans across multiple lines). Rubixi.sol:118:9: Warning: No visibility specified. Defaulting to "public". function currentMultiplier() constant returns(uint multiplier, string info) { ^ (Relevant source part starts here and spans across multiple lines). Rubixi.sol:123:9: Warning: No visibility specified. Defaulting to "public". function currentFeePercentage() constant returns(uint fee, string info) { ^ (Relevant source part starts here and spans across multiple lines). Rubixi.sol:128:9: Warning: No visibility specified. Defaulting to "public". function currentPyramidBalanceApproximately() constant returns(uint pyramidBalance, string info) { ^ (Relevant source part starts here and spans across multiple lines). Rubixi.sol:133:9: Warning: No visibility specified. Defaulting to "public". function nextPayoutWhenPyramidBalanceTotalsApproximately() constant returns(uint balancePayout) { ^ (Relevant source part starts here and spans across multiple lines). Rubixi.sol:137:9: Warning: No visibility specified. Defaulting to "public". function feesSeperateFromBalanceApproximately() constant returns(uint fees) { ^ (Relevant source part starts here and spans across multiple lines). Rubixi.sol:141:9: Warning: No visibility specified. Defaulting to "public". function totalParticipants() constant returns(uint count) { ^ (Relevant source part starts here and spans across multiple lines). Rubixi.sol:145:9: Warning: No visibility specified. Defaulting to "public". function numberOfParticipantsWaitingForPayout() constant returns(uint count) { ^ (Relevant source part starts here and spans across multiple lines). Rubixi.sol:149:9: Warning: No visibility specified. Defaulting to "public". function participantDetails(uint orderInPyramid) constant returns(address Address, uint Payout) { ^ (Relevant source part starts here and spans across multiple lines).