Assessment reports>SSI Protocol>Threat Model>setRebalancer

Function: setRebalancer(uint256 assetID, address rebalancer)

This function sets the rebalancer of the asset.

Inputs

  • assetID

    • Control: Fully controlled by the caller.

    • Constraints: Must be an asset ID.

    • Impact: Specifies the asset to change the rebalancer.

  • rebalancer

    • Control: Fully controlled by the caller.

    • Constraints: Must be a nonzero address.

    • Impact: New rebalancer of the given asset.

Branches and code coverage

Intended branches

  • Revoke the rebalancer role of the old rebalancer.

  • Grant the rebalancer role to the new rebalancer.

Negative behavior

  • The caller is the owner.

  • Given asset ID is valid.

  • Asset token does not have a pending rebalancing process.

Zellic © 2025Back to top ↑