[feature]: DecodeAssetPayReq
: add option to determine asset amount based on RFQ and the edge node's buy rate
#1368
Labels
enhancement
New feature or request
DecodeAssetPayReq
seems to decode the invoice, determines the sats amount, and then queries a nodes price oracle for their sell price to determine an asset amount that the invoice is representative of.I'd like to see an option to also perform an RFQ with a peer to get the actual amount that would need to be sent to pay the invoice given the peer's buy price. This seems more representative of what the sender is going to actually need to send (less normal LN routing fees for sats channels).
I'd like to see the existing
asset_amount
that is returned kept but add this new information in another property such asasset_amount_RFQ
. With this information, we can then compute the "implied fee" explained in #1367 in advance before attempting to make a payment.The text was updated successfully, but these errors were encountered: