-
Notifications
You must be signed in to change notification settings - Fork 118
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
[feature]: Add a 'memo' or 'custom' property in QueryAssetRatesRequest v4.2 #1159
Comments
@guggero will this issue be added to V5.0? |
cc @dstadulis |
I believe this feature would be an excellent addition for price oracle developers. Here’s how I propose we approach it: A typical wallet tapd node would have a very different relationship with its price oracle compared to a large edge tapd node. The edge node's price oracle could formulate asset rates with greater context based on the edge node's books, providing deeper insight. In contrast, a wallet node would function as a light client to a public, naive price oracle service. To account for these differing relationships, I suggest introducing a command-line argument flag named The additional context we could provide to a self-hosted price oracle includes:
|
This is great issue, lukegao209! Since v0.5 will be released imminently, including #1159 in v0.6 will be most apt. This feature highly valuable so delivering as soon as possible if valued by everyone. If feature delivery timing is critical for an immediate business need, additional resources might be able to be allocated to expedite implementation. |
Thank you for your response! Based on our research, when users engage in asset swaps, buy/sell transactions, or pay BTC invoices, they often require different BTC price rates depending on the specific business scenario. I believe that adding this functionality would significantly expand the use cases for v0.5. |
During the community call (just now), a user requested that the peer identifier be made available to the price oracle to enable more favorable pricing. This could be achieved by providing both the price-requesting peer and the counterparty information. |
Since the price oracle can be publicly facing we may want a way for the price-requesting peer to provably self identify. That way if I the peer am entitled to some preferred rate, that no one can impersonate me when communicating with the price oracle to get my special rate as well. |
@bitcoin-coder-bob In my opinion, the idea has merit, but I would caveat that it addresses a privacy issue rather than a permission issue. This is because the price oracle's price can ultimately be ignored by one or both peers during the RFQ process—it's more of a guide than an immutable truth. I think this idea relates to privacy because it could prevent a situation where another user pretends to query as a given peer, thereby protecting that peer's price preference from being leaked. |
After adding a memo or custom field to the QueryAssetRatesRequest, the PriceOracle can use this field for business logic decisions and provide different pricing based on the type of transaction. For example:
This approach would allow for more dynamic and context-based pricing models.
The text was updated successfully, but these errors were encountered: