Assessment reports>Lido Gateway>Threat Model>updateWithdrawalsEnabler

Function: updateWithdrawalsEnabler(address _newEnabler)

Allows owner to update the address of the withdrawals enabler.

Inputs

  • _newEnabler

    • Control: Fully controlled by the caller.

    • Constraints: None.

    • Impact: The address of the new withdrawals enabler.

Branches and code coverage (including function calls)

Intended branches

  • Set the withdrawalsEnabler to _newEnabler. Currently not tested.

Negative behavior

  • Should not allow anyone other than the owner to update the address of the withdrawals enabler. Not tested.

  • Should not allow setting the same address as the current withdrawals enabler. Not tested and not enforced.

  • Should not allow changing the address of the withdrawals enabler should the withdrawals be enabled at the moment. Not tested and not enforced.

Zellic © 2024Back to top ↑