taproot-assets
taproot-assets copied to clipboard
[feature]: add channel conditional validation to `AddAsset*Order` RPC endpoints
Currently, the AddAssetBuyOrder
and AddAssetSellOrder
RPC endpoints initiates the RFQ communication process with a specified target peer. This issue proposes a modification to the endpoint to include a pre-condition check. Specifically, the RFQ process should only commence if there is an existing tap channel for the specified asset between the local node and the target peer, and that channel has sufficient funds. If these conditions are not met, the endpoints should return a helpful error.