Assessment reports>WOOFI Stake>Threat Model>_nonblockingLzReceive

Function: _nonblockingLzReceive(uint16, bytes, uint64, bytes _payload)

This receives LZ events from the proxy and handles recognized events like staking, unstaking, compounding, and toggling the autocompound feature.

Inputs

The sender is authenticated earlier before arriving at this function, which means that inputs are not directly controllable. Amounts are controllable where those are used, but they follow restrictions set in the proxy.

Branches and code coverage

The function is not directly callable from test code, but it acts as a thin wrapper around the functions found in WooStakingManager.sol and provides authorized calls for them through this interface.

Zellic © 2024Back to top ↑