Skip to content

feat: Switchboard oracle for USD requests payment in NEAR #18

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

Merged
merged 20 commits into from
Sep 23, 2023

Conversation

yomarion
Copy link
Member

@yomarion yomarion commented Sep 14, 2023

This replaces the use of deprecated Flux protocol with Switchboard instead, only for payments in native NEAR tokens.

feat: Switchboard oracle for USD requests payment in NEAR
fix: refund the payer if the deposit is too small
chore: tests now use gas_price = 0
chore: minor README simplification

Here an example of a working payment: https://explorer.testnet.near.org/transactions/985QGTiNcoRqR7AtHaRYrvhR2CjaPry2P7aioASkBLCL

@yomarion yomarion force-pushed the feat/switchboard-oracle-near-usd branch from ac82c02 to 0aca90c Compare September 19, 2023 14:45
@yomarion yomarion force-pushed the feat/switchboard-oracle-near-usd branch from f871fe3 to 54798c5 Compare September 19, 2023 15:14
Copy link
Member

@MantisClone MantisClone left a comment

Choose a reason for hiding this comment

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

@yomarion I finished reading through the current change set. ✅

Copy link
Member

@MantisClone MantisClone left a comment

Choose a reason for hiding this comment

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

Nice and clean 💯

@yomarion yomarion merged commit d413e91 into main Sep 23, 2023
@yomarion yomarion deleted the feat/switchboard-oracle-near-usd branch September 23, 2023 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants