payable
functions cost less gas to execute since the compiler does not have to add extra checks to ensure that a payment wasn't provided. A constructor
can safely be marked as payable
since only the deployer can pass funds.
There are 5 instances of this issue.
File Link | Instance Count | Instance Link |
---|---|---|
Beedle.sol | 1 | 11 |
File Link | Instance Count | Instance Link |
---|---|---|
Fees.sol | 1 | 19 |
File Link | Instance Count | Instance Link |
---|---|---|
Lender.sol | 1 | 73 |
File Link | Instance Count | Instance Link |
---|---|---|
Staking.sol | 1 | 31 |
File Link | Instance Count | Instance Link |
---|---|---|
Ownable.sol | 1 | 14 |
105 gas
baudit: a custom static code analysis tool; manual review
Mark constructors as payable
.
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.