Closed s-a-y closed 6 years ago
look at potential design to fix this
After looking into this.. we are currently getting all the assets available to the source account as inputs to the pathfinder query (takes in an array of source assets). We can very easily limit this to a single source asset based on new optional url params. This will also be backwards compatible.
how expensive is it to raise the limit to say 20?
I imagine I'll have more than 20 tokens anyway, so either there should be a way to specify, or I'll be using some dummy accounts with few trustlines each (doesn't require anything from your side)
specifying seems weird to me since I'm not sure how the user would know what to specify? I think we need paging ultimately
User may not know, but wallet knows what assets user has, I don't see a problem to have that as an option. Yeah, paging is an option, but I guess having paging I'd still try to avoid it in my implementation, sending 3 consequent requests introduces big delay
I'm trying to find paths from BTC to XLM Here's the query
I'll post example result here, because it changes over time
Horizon limits number of returned paths to 5 and since I have many trust lines there is a good chance that BTC won't be present in the result set.
Increasing or making limit a parameter is dangerous for performance, so I assume
sourceAsset
optional parameter is required to be able to estimate paths between assets of my choice.