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

[bug]: tapd creates an invoice that expires after the quote from the oracle expires #1341

Open
ZZiigguurraatt opened this issue Jan 30, 2025 · 2 comments
Labels
bug Something isn't working needs triage

Comments

@ZZiigguurraatt
Copy link

ZZiigguurraatt commented Jan 30, 2025

On my price oracle I have a expiry_timestamp set to 300 seconds in the future.

I then create an invoice and don't set the expiry in order to accept the default expiry of 86400 seconds.

tapd happily generates the invoice, but I think it should fail.

price oracle expiration time should always be after invoice expiration time.

@Roasbeef
Copy link
Member

Makes sense, when we get the RFQ response/accept back, we should use that to set a custom expiry on the invoice.

@ZZiigguurraatt
Copy link
Author

Makes sense, when we get the RFQ response/accept back, we should use that to set a custom expiry on the invoice.

One thing I was getting ready to test is do you already do this and I just don't know that I you've reduced the expiry from 86400 seconds to 300 seconds without telling me?

I think the user must have their sats invoice expiry honored and not overridden by a lower quote expiry. If that is the case there are going to be a lot of problems at the application level. If the price quote expiry is less than the invoice expiry, it should error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants