Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nour/sb on demand #1154

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Nour/sb on demand #1154

wants to merge 16 commits into from

Conversation

NourAlharithi
Copy link
Member

No description provided.

mgild and others added 13 commits June 18, 2024 08:15
Switchboard On-Demand is a pull-model iteration of switchboard that is
now zero cost to run oracles. Instead, using the frontend sdk, the feed
user can request a price update from the switchboard network and prices
will be updated as the first instruction of the user transaction.

It is now zero cost for drift to maintain switchboard feeds through
on-demand and latency concerns are eliminated.

(This PR is currently a stub)

More information at https://docs.switchboard.xyz/docs
programs/drift/src/state/oracle.rs Show resolved Hide resolved
programs/drift/src/state/oracle_map.rs Show resolved Hide resolved
@@ -0,0 +1,172 @@
import * as anchor from '@coral-xyz/anchor';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this actually used? delete?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah when initting the context, need it to define a workspace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants