Open code423n4 opened 2 years ago
uint cash, uint borrows, uint reserves
uint reserveFactorMantissa
OnlyUniGov
Proposal-Store.sol
redeemVerify()'s
pure
function liquidateBorrowAllowed() visibility can be changed to view
view
require()
deposit()
withdraw()
allowance(address owner, address spender)
WETH.sol
0
return
// recommendation function allowance(address owner, address spender) external view returns (uint256) { return _allowance[owner][spender]; }
Valid NC
Valid Refactoring
Valid Ref
Valid Low
TODO -> Bump Allowance
Neat report, great format
1L 2R 4NC
1. Unused local variables, function parameters
uint cash, uint borrows, uint reserves
are not used inside the function.uint reserveFactorMantissa
parameter is unsused.2. Unused modifier
OnlyUniGov
is not used anywher inside the contractProposal-Store.sol
3. Misleading/Random comments
Proposal-Store.sol
4. function visibility can be restricted to pure and view
redeemVerify()'s
visibility can be changed topure
function liquidateBorrowAllowed() visibility can be changed to
view
5. Add proper revert string in
require()
6. No events emitted for important updates
deposit()
andwithdraw()
7.
allowance(address owner, address spender)
inWETH.sol
returns0
alwaysreturn