stellar / go

Stellar's public monorepo of go code
https://stellar.org/developers
Apache License 2.0
1.31k stars 499 forks source link

Path payments from horizon should skip over AMM pools that are maxed out on an asset. #5503

Open weenfan opened 1 month ago

weenfan commented 1 month ago

Referencing the following example of a pool that is maxed out with SGB.

https://horizon.stellar.org/liquidity_pools/c2f0d24f51656b4876908377d2f2d0eaa70fb81e7b6963b4984244a9e2d74a9b

The presence of this pool messes up the horizon path payment endpoint being that these paths are not able to be executed due to the pool being maxed out with SGB. Paths like this should be excluded.

MonsieurNicolas commented 3 weeks ago

thanks. moving over to the go monorepo as this is where path finding lives