Assessment reports>Benqi Oracle>Threat Model>setFeed

Function: setFeed(address token, address feed)

This function is used to set the price of an asset.

Inputs

  • token

    • Control: Fully controlled by the caller.

    • Constraints: None.

    • Impact: A token to set the feed of.

  • feed

    • Control: Fully controlled by the caller.

    • Constraints: None.

    • Impact: A feed to set the feed to.

Branches and code coverage

Intended branches

  • Set the feed of the token.

Negative behavior

  • Revert if the caller is not a service admin.

  • Revert if the feed is the address of the contract or the zero address.

Zellic © 2025Back to top ↑