Revert Lend Mitigation Review

A lending protocol specifically designed for liquidity providers on Uniswap v3.

  • Start date19 Apr 2024
  • End date29 Apr 2024
  • Total awards$23,500 in USDC
  • Duration10 days

Revert Lend Mitigation Review details

Important note

Each warden must submit a mitigation review for every individual PR listed in the Scope section below. Incomplete mitigation reviews will not be eligible for awards.

Findings being mitigated

Mitigations of all High and Medium issues will be considered in-scope and listed here.

Scope

Branch

https://github.com/revert-finance/lend/tree/audit

Mitigation of High & Medium Severity Issues

Wherever possible, mitigations should be provided in separate pull requests, one per issue. If that is not possible (e.g. because several audit findings stem from the same core problem), then please link the PR to all relevant issues in your findings repo.

URLMitigation ofPurpose
https://github.com/revert-finance/lend/pull/19H-01Checks token in permit
https://github.com/revert-finance/lend/pull/8 https://github.com/revert-finance/lend/pull/32H-02Removed sending of NFT to avoid reentrancy
https://github.com/revert-finance/lend/pull/29H-03Refactoring to make all transformers properly check caller permission
https://github.com/revert-finance/lend/pull/29H-04Refactoring to make all transformers properly check caller permission
https://github.com/revert-finance/lend/pull/10H-05Fixed calculation
https://github.com/revert-finance/lend/pull/8 https://github.com/revert-finance/lend/pull/32H-06Removed sending of NFT to avoid reentrancy
https://github.com/revert-finance/lend/pull/23M-05Fixed
https://github.com/revert-finance/lend/pull/22M-06Fixed
https://github.com/revert-finance/lend/pull/21M-07Fixed
https://github.com/revert-finance/lend/pull/11M-08Fixed
https://github.com/revert-finance/lend/pull/20M-09Fixed
https://github.com/revert-finance/lend/pull/18M-10Fixed
https://github.com/revert-finance/lend/pull/17M-11Added safety buffer for borrow and decreaseLiquidity (not for transformers)
https://github.com/revert-finance/lend/pull/16M-12Fixed
https://github.com/revert-finance/lend/pull/15M-14Fixed
https://github.com/revert-finance/lend/pull/8 https://github.com/revert-finance/lend/pull/32M-15Fixed
https://github.com/revert-finance/lend/pull/14 https://github.com/revert-finance/lend/pull/30M-16Fixed
https://github.com/revert-finance/lend/pull/12M-18Fixed
https://github.com/revert-finance/lend/pull/26M-19Fixed
https://github.com/revert-finance/lend/pull/25M-20Fixed
https://github.com/revert-finance/lend/pull/24M-21Added deadline where missing
https://github.com/revert-finance/lend/pull/11M-22Fixed
https://github.com/revert-finance/lend/pull/7M-24Fixed calculation
https://github.com/revert-finance/lend/pull/5M-25Fixed calculation

Additional scope to be reviewed

These are additional changes that will be in scope.

URLMitigation ofPurpose
https://github.com/revert-finance/lend/pull/13ADD-01 - https://github.com/code-423n4/2024-03-revert-lend-findings/issues/220Improper return of chainlinkReferencePriceX96
https://github.com/revert-finance/lend/pull/27ADD-02 - https://github.com/code-423n4/2024-03-revert-lend-findings/issues/12Missing L2 sequencer checks for Chainlink oracle
https://github.com/revert-finance/lend/pull/28ADD-03 - https://github.com/code-423n4/2024-03-revert-lend-findings/issues/14Some ERC20 can revert on a zero value transfer
https://github.com/revert-finance/lend/pull/31ADD-04 - QA, GASSeveral small changes to address QA and GAS optimization issues
https://github.com/revert-finance/lend/pull/33ADD-05 - QA, GASSeveral small changes to address QA and GAS optimization issues
https://github.com/revert-finance/lend/pull/34ADD-06 - QA, GASSeveral small changes to address QA and GAS optimization issues

Out of Scope

Please list any High and Medium issues that were judged as valid but you have chosen not to fix.

IssueComments
M-01Acknowlegded, see comments in https://github.com/code-423n4/2024-03-revert-lend-findings/issues/466
M-02Acknowlegded, this is solved off-chain by the operator bots, see discussion in https://github.com/code-423n4/2024-03-revert-lend-findings/issues/459
M-03Acknowlegded, at deployment a resonable value will be set for minLoanSize
M-04Acknowlegded, we will monitor for this behaviour and adjust config if needed, see discussion in https://github.com/code-423n4/2024-03-revert-lend-findings/issues/435
M-13Acknowlegded, see comment in https://github.com/code-423n4/2024-03-revert-lend-findings/issues/256
M-17Acknowlegded, see comment in https://github.com/code-423n4/2024-03-revert-lend-findings/issues/216
M-23Acknowlegded, this is solved off-chain by the operator bots