Assessment reports>Origami Finance>Threat Model>setTokenPriceFunction

Function: setTokenPriceFunction(address token, bytes fnCalldata)

The function is available only for the owner of the contract. Allows the owner of the contract associates a token address with a function's calldata that specifies the method for retrieving the price.

Inputs

  • token

    • Constraints: No constraints.

    • Impact: The address of the token associated with the function.

  • fnCalldata

    • Constraints: No constraints.

    • Impact: The calldata that will be possible to execute over the runPriceFunction function. It is used for tokenPrices and tokenPrice functions that are intended solely for utility purposes.

Branches and code coverage

Negative behavior

  • Caller is not an owner.

Zellic © 2025Back to top ↑