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

Price oracle integration #12

Open
svylabs opened this issue Jul 30, 2023 · 0 comments
Open

Price oracle integration #12

svylabs opened this issue Jul 30, 2023 · 0 comments

Comments

@svylabs
Copy link
Owner

svylabs commented Jul 30, 2023

  1. For each pair(ETH-BTC/MATIC-BTC/USDC-BTC....), we need to deploy a contract that has custom logic to get the current price.
  2. Users should have the ability to lock a price.
    • If there is a lock, at the time of submitting payment proof - the total value of satoshis will be evaluated against the locked price.
    • If there is no lock, contract will get the price from oracle and calculate the satoshi value that must be in one of the outputs.
  3. The lock price should have an expiry of 2 hours.
  4. Users should be able to lock a price at any time.
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

No branches or pull requests

1 participant