Assessment reports>Blackwing>Threat Model>registerAsset

Function: registerAsset(IERC20 asset, BlackwingVaultToken vaultToken, IDeployer deployer)

This function is used to register a pool of asset in the vault.

Inputs

  • asset

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Address of the asset.

  • vaultToken

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Address of the vault token.

  • deployer

    • Control: Arbitrary.

    • Constraints: None.

    • Impact: Address of the deployer.

Branches and code coverage

Intended branches

  • Update the pool info with provided asset, vault token, and deployer.

Negative behavior

  • Reverts if the caller is not the owner.

  • Reverts if target pool is already registered.

Zellic © 2025Back to top ↑