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
tokenConstraints: No constraints.
Impact: The address of the token associated with the function.
fnCalldataConstraints: No constraints.
Impact: The calldata that will be possible to execute over the
runPriceFunctionfunction. It is used fortokenPricesandtokenPricefunctions that are intended solely for utility purposes.
Branches and code coverage
Negative behavior
Caller is not an owner.