solana-labs / perpetuals

Solana perpetuals reference implementation
Other
66 stars 36 forks source link

Support permissionless price feed updates #33

Closed nickguo closed 8 months ago

nickguo commented 9 months ago

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.

Screenshot 2023-10-13 at 7 49 32 AM
vercel[bot] commented 9 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
perpetuals ❌ Failed (Inspect) Oct 15, 2023 4:37am