This feature saves operational costs for the program authority.
Rather than the authority having to post frequent on chain price oracle updates, the user can post the oracle price update at the time of their transaction.
The authority hosts a backend service that the user can query to obtain a fresh price update payload signed by the authority. The user then includes this payload in their transaction.
Compute cost for just SetCustomOraclePricePermissionless is 22k. The ed25519 program cost is not showing up in the logs for some reason, but overall budget is showing as 400k instead of 200k.
This feature saves operational costs for the program authority.
Rather than the authority having to post frequent on chain price oracle updates, the user can post the oracle price update at the time of their transaction.
The authority hosts a backend service that the user can query to obtain a fresh price update payload signed by the authority. The user then includes this payload in their transaction.
Compute cost for just
SetCustomOraclePricePermissionless
is 22k. The ed25519 program cost is not showing up in the logs for some reason, but overall budget is showing as 400k instead of 200k.