StakeWise logo

StakeWise V3 Periphery Update Security Review Report

August 2025

Overview

This audit focused on the update to the StakeWise V3 Periphery contracts. The update introduces a modification to the borrow state calculation to align with the new rounding technique introduced in the latest Aave protocol update.

Our security assessment consisted of a one-day review of the pull request implementing this update.

During the audit, we did not identify any major vulnerabilities. However, we did find one low- severity issue.

The reported issue was fixed by the development team and subsequently validated by us.

We can confidently state that the overall security and code quality have improved following the completion of our audit.

Scope

The analyzed resources are located on:

https://github.com/stakewise/v3-periphery/pull/17

The issues described in this report were fixed in the following commit:

https://github.com/stakewise/v3-periphery/pull/17

Commit: 7aef6b1e577796a59efa6c341891a2dcc7e010f1

Summary

Total number of findings
1

Weaknesses

This section contains the list of discovered weaknesses.

STKW2-1 | LACK OF EVENT EMISSION WHEN UPDATING EXITING STATE OF THE PROXY

Severity:

Low

Status:

Fixed

Path:

src/leverage/LeverageStrategy.sol#L486, src/leverage/LeverageStrategy.sol#L420, src/leverage/LeverageStrategy.sol#L286, src/leverage/LeverageStrategy.sol#L308

Description:

The event StrategyProxyExitingUpdated is meant to be emitted whenever the state of a strategy proxy changes. In other words, the event should be emitted whenever the value of isStrategyProxyExiting[proxy] is updated.

However, the event is only emitted within the function LeverageStrategy.setStrategyProxyExiting(), and not in _enterExitQueue(), claimExitedAssets(), or rescueVaultAssets(). This lack of event emission could result in incorrect tracking of the proxy's state on the backend side.

/**
 * @notice Event emitted when the strategy proxy is set to exiting state
 * @param proxy The address of the strategy proxy
 * @param isExiting True if the proxy is exiting, false otherwise
 */
event StrategyProxyExitingUpdated(address indexed proxy, bool isExiting);

Remediation:

Consider emitting the event when the isStrategyProxyExiting[proxy] changes the value.

Table of contents