Assessment reports>WOOFI Stake>Threat Model>stake

Function: stake(uint256 _amount)

This is a proxy function for staking a given amount. Sends an LZ message with type ACTION_STAKE.

Inputs

  • _amount

    • Control: Fully controlled by the caller.

    • Constraints: Has to be more than or equal to the amount sent in the transaction.

    • Impact: The amount to stake, which is added to the current balance of the sender.

Branches and code coverage

Intended branches

  • Stake an amount equal to the funds sent.

Negative behavior

  • Stake more than what is being sent.

Zellic © 2024Back to top ↑