20,000 USDC
View results
Submission Details
Severity: gas

## [G-13] Not using the named return variable when a function returns, wastes deployment gas

Summary

[G-13] Not using the named return variable when a function returns, wastes deployment gas

file: /src/Lender.sol
116 function getLoanDebt(uint256 loanId) external view returns (uint256 debt) {

https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Lender.sol#L116

file: /src/Lender.sol
130 function setPool(Pool calldata p) public returns (bytes32 poolId) {

https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Lender.sol#L130

file: /src/Lender.sol
722 ) internal view returns (uint256 interest, uint256 fees) {

https://github.com/Cyfrin/2023-07-beedle/blob/main/src/Lender.sol#L722

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.