Assessment reports>SSI Protocol>Threat Model>rebalance

Function: rebalance(Token[] inBasket, Token[] outBasket)

This function rebalances the basket of the asset token.

Inputs

  • inBasket

    • Control: Controlled by the caller of AssetRebalancer.

    • Constraints: None.

    • Impact: Specifies the list of assets to add to the basket.

  • outBasket

    • Control: Controlled by the caller of AssetRebalancer.

    • Constraints: Must be contained by the current basket.

    • Impact: Specifies the list of assets to subtract from the basket.

Branches and code coverage

Intended branches

  • Calculate and set the new basket.

  • Calculate and set the new token set.

Negative behavior

  • The caller is a rebalancer.

  • Rebalancing feature is locked.

Zellic © 2025Back to top ↑