-autoAdjustPrice=false
flag.
livepeer_cli
livepeer_cli
:
livepeer_cli
Set orchestrator config
option
option (1)
is typically used.USD
suffix to the value provided in the -pricePerUnit
flag sent to the livepeer
binary. If the currency suffix is missing, it will default to Wei to keep backward-compatibility.
Given the price per pixel in USD is going to be a really low number, the recommendation is to also set the -pixelsPerUnit
flag so a more human-friendly number can be specified on the price per unit. The -pixelsPerUnit
acts as a denominator on the -pricePerUnit
and the recommendation is to keep it constant over time, updating only the price per unit as seen fit.
e.g.:
-pixelsPerUnit
flag supports the exponential notation, so it’s easier to understand the value being set. The -pricePerUnit
does not support it though, so a standard decimal notation must be used. This is also an incentive to use the -pixelsPerUnit
value in order to keep the -pricePerUnit
as an easily readable value.
This feature is also supported by gateways, with the -pixelsPerUnit
flag staying the same, while the -maxPricePerUnit
should be set instead for the max price. The currency is specified in the same format.
livepeer
binary is automatically configured with the ETH/USD price feed in the Arbitrum mainnet. If you are running the node on a different network or would like to use a different currency to peg the price to, you should configure the -priceFeedAddr
with the address of the corresponding price feed. You can search for existing price feed addresses on Chainlink website.
Notice that the price feed must have both ETH
and your desired currency in the quote pair. You should then specify the price per unit with the currency suffix corresponding to the currency provided by the price feed.
e.g.
USD
as the price currency in Ethereum mainnet:BTC
as the price currency on Arbitrum mainnet:-pixelsPerUnit
flag is independent of this. Also keep in mind that while custom currencies are supported, Livepeer Studio will be pegging their -maxPricePerPixel
to USD so the recommendation is to also keep the default USD configuration on your node to stay in sync with the rest of the network.