Allowed Number of Assets In Swapping of Assets
Allowed Number of Assets In Swapping of Assets
Loading saved threads...
Jyot Hathi · External communityPost link
External question — Stellar Stack Exchange
Author: Jyot Hathi
Original post: https://stellar.stackexchange.com/questions/6415
License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/
Adaptation: HTML converted to plain text; contact email addresses removed.
I want to know in case perform swapping of two assets via Stellar Network, Stellar SDK & Horizon APIs how much assets are allowed in Path.
For example, I have 6 Assets A, B, C, D, E, F
I have created offers in a way that A->B, B->C, C->D, D->E, E->F swapping is possible and working as expected.
Now when I try A->E or A->F swapping is not working as expected getting no paths, when I have tried with swapping in which includes 4 nodes only like A->D, B->F then its working as expected.
What can be the reason?
Quote
Report
Julie · External communityPost link
External answer — Stellar Stack Exchange
Author: Julie
Original post: https://stellar.stackexchange.com/a/6416
License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/
Adaptation: HTML converted to plain text; contact email addresses removed.
It sounds like the pathfinding in Stellar is limited by either the number of hops allowed in a single path or the liquidity available at each step—since A to E or A to F involves 5 or more hops, the Horizon API might be trimming those paths due to depth or performance constraints. There’s usually a threshold for how many assets can be chained in one swap…
Quote
Report
Post Reply
Quoted from Forex.com.bd-Editorial External question — Stellar Stack Exchange Author: Jyot Hathi Source score (net votes, not local likes): 2 Original post: https://stellar.stackexchange.com/questions/6415 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. I want to know in case perform swapping of two assets via Stellar Network, Stellar SDK & Horizon APIs how much assets are allowed in Path. For example, I have 6 Assets A, B, C, D, E, F I have created offers in a way that A->B, B->C, C->D, D->E, E->F swapping is possible and working as expected. Now when I try A->E or A->F swapping is not working as expected getting no paths, when I have tried with swapping in which includes 4 nodes only like A->D, B->F then its working as expected. What can be the reason?
Checking account access…