20,000 USDC
View results
Submission Details
Severity: gas
Valid

NatSpec `@return` argument is missing

Summary

NatSpec @return argument is missing

Vulnerability Details

File: src/Lender.sol
108: function getPoolId(
116: function getLoanDebt(uint256 loanId) external view returns (uint256 debt) {
130: function setPool(Pool calldata p) public returns (bytes32 poolId) {
720: function _calculateInterest(

Link to code - https://github.com/Cyfrin/2023-07-beedle/tree/main/src/Lender.sol

File: src/interfaces/IERC20.sol
7: function totalSupply() external view returns (uint256);
8: function balanceOf(address account) external view returns (uint256);
9: function transfer(address to, uint256 amount) external returns (bool);
10: function allowance(address owner, address spender) external view returns (uint256);
11: function approve(address spender, uint256 amount) external returns (bool);
12: function transferFrom(address from, address to, uint256 amount) external returns (bool);

Link to code - https://github.com/Cyfrin/2023-07-beedle/tree/main/src/interfaces/IERC20.sol

File: src/interfaces/ISwapRouter.sol
16: function exactInputSingle(ExactInputSingleParams calldata params) external payable returns (uint256 amountOut);

Link to code - https://github.com/Cyfrin/2023-07-beedle/tree/main/src/interfaces/ISwapRouter.sol

Tools Used

Code Review

Recommendations

Add NatSpec @return

Auditor

NeoCrao

Support

FAQs

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