-
Notifications
You must be signed in to change notification settings - Fork 308
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
SEP-24: add or update fee endpoint including FX rates #1273
Comments
I think this is reasonable extension to SEP-24. I agree implementing Do we see more use of Should we deprecate |
I think so. We've had multiple wallets express desire for the functionality offered by these endpoints, primarily for monitoring FX rates out-of-band of the transaction initiation flow. For example, sending notifications to users when rates are favorable, or displaying an anchor's live rates on the wallet's website to entice downloads of their app.
I think so (again). The |
I was meaning do we see folks primarily using |
They serve different use cases.
But My inclination is that |
Sounds reasonable to me to add both now. |
This issue is stale because it has been open for 30 days with no activity. It will be closed in 30 days unless the stale label is removed. |
This issue is stale because it has been open for 30 days with no activity. It will be closed in 30 days unless the stale label is removed. |
This issue is stale because it has been open for 30 days with no activity. It will be closed in 30 days unless the stale label is removed. |
This issue is stale because it has been open for 30 days with no activity. It will be closed in 30 days unless the stale label is removed. |
This issue is stale because it has been open for 30 days with no activity. It will be closed in 30 days unless the stale label is removed. |
This issue is stale because it has been open for 30 days with no activity. It will be closed in 30 days unless the stale label is removed. |
This issue is stale because it has been open for 30 days with no activity. It will be closed in 30 days unless the stale label is removed. |
This issue is stale because it has been open for 30 days with no activity. It will be closed in 30 days unless the stale label is removed. |
@Ifropc assigning you here. |
This issue is stale because it has been open for 30 days with no activity. It will be closed in 30 days unless the stale label is removed. |
This issue is stale because it has been open for 30 days with no activity. It will be closed in 30 days unless the stale label is removed. |
@Ifropc can you link the PR you have to this issue? |
This issue is stale because it has been open for 30 days with no activity. It will be closed in 30 days unless the stale label is removed. |
What problem does your feature solve?
SEP-24's
GET /fee
endpoint assumes the off-chain asset is exchanges 1-for-1 with the on-chain asset. But it is increasingly common for anchors to accept off-chain assets that are not exchanged 1-for-1 with the on-chain assets they support.What would you like to see?
We either need to update the existing
GET /fee
endpoint or add a new endpoint for requesting the FX rate + any fees.The endpoint we design will likely look very similar to SEP-38's
GET /price
orGET /prices
(or we could add endpoints for both).What alternatives are there?
We could recommend that SEP-24 anchors implement SEP-38, since the use case is so similar.
However, implementing the entire SEP-38 API may be overkill in the context of SEP-24, since users can commit to FX rates in the anchor's UI, which means there is no reason for SEP-24 anchors to expose the SEP-38
POST /quote
endpoint.The text was updated successfully, but these errors were encountered: