Issue | Instances | |
---|---|---|
L‑1 | Missing gas limit for external call | 1 |
L‑2 | Loss of precision | 1 |
L‑3 | Lack of contract existence checks before low-level calls | 1 |
L‑4 | Owner can renounce Ownership | 7 |
L‑5 | Use Ownable2Step instead of Ownable | 3 |
13 |
There is no specified limit on the amount of gas used, allowing the recipient to consume all remaining gas, potentially causing a revert. Hence, when invoking an external contract, it is advisable to provide an explicit gas limit.
Total instances: 1
GitHub: 183
Division by large numbers may result in the result being zero, due to solidity not supporting fractions. Consider requiring a minimum amount for the numerator to ensure that it is always larger than the denominator
Total instances: 1
GitHub: 84
Low-level calls return success even when there is no code located at the specified address. Alongside the zero-address checks, introduce an additional verification step to ensure that <address>.code.length > 0
.
Total instances: 1
GitHub: 183
Typically, the contract’s owner is the account that deploys the contract. As a result, the owner is able to perform certain privileged activities.
The Openzeppelin’s Ownable used in this project contract implements renounceOwnership. This can represent a certain risk if the ownership is renounced for any other reason than by design. Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.
Total instances: 7
GitHub: 11
GitHub: 11
GitHub: 16
GitHub: 19
GitHub: 16
GitHub: 11
GitHub: 14
Ownable2Step
and Ownable2StepUpgradeable prevent the contract ownership from mistakenly being transferred to an address that cannot handle it (e.g. due to a typo in the address), by requiring that the recipient of the owner permissions actively accept via a contract call of its own.
Total instances: 3
GitHub: 16
GitHub: 19
GitHub: 16
have a 2-step owner transfer
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.