Assessment reports>Ethena>Threat Models>removeSupportedAsset

Function: removeSupportedAsset(IERC20 _asset)

Allows owner of the contract to remove asset address from the list of trusted assets.

Inputs

  • _asset

    • Constraints: No.

    • Impact: The address of assets that will be removed from the supported assets list.

Branches and code coverage (including function calls)

Intended branches

  • _asset was removed from supportedAssets.

Negative behavior

  • Caller is not an owner.

  • supportedAssets does not contain _asset.

Function call analysis

  • supportedAssets.remove(address(_asset))

    • External/Internal? Internal.

    • Argument control? _asset.

    • Impact: Remove the _asset address from supportedAssets.

Zellic © 2024Back to top ↑