F-2025-0022·deprecated-call
Aave swapBorrowRateMode is deprecated
TL;DR
Aave_Module exposes aave_swapBorrowRateMode, but the underlying pool.swapBorrowRateMode is deprecated and only available on Aave V2. Calls into the live V3 pool will revert or no-op.
Severity
INFO
Impact
LOW
Likelihood
LOW
Method
MManual review
CAT.
Complexity
LOW
Exploitability
LOW
02Section · Description
Description
In the Aave_Module there is a call aave_swapBorrowRateMode:
solidity
function aave_swapBorrowRateMode(address asset, uint256 interestRateMode) externalonlyRole(EXECUTOR_ROLE) nonReentrant {pool.swapBorrowRateMode(asset, interestRateMode);}
The call swapBorrowRateMode is however deprecated; it only exists as a call on the V2 pool.
Consider removing this call.
03Section · Resolution
Resolution
D2: Removed in cbcddab.
Cyfrin: Verified.
Status
Fixed
Fix commit
cbcddab