3

I've noticed a weird path payment and I'm confused as to how to interpret it.

The payment is represented on stellar.expert as GBN2KFK sending 3.333 XLM to a path and GATEMHC receiving 1 XLM at the end of it.

In this payment, according to Horizon's effects API, the following happened on the ledger:

Does this mean that GBB4JST received 2.333 XLM? If so, why does this not appear as an effect on the ledger, is it implicit?

Or does this mean that GBN2KFK only spent 1 XLM, and not 3.333?

1

That's a Stellar Horizon bug. Looks like it is related to #744.

In this case GBN2KFK spent 3.333 XLM and GATEMHC received only 1 XLM.

GBN2KFK was debited 1 XLM

Should be "GBN2KFK was debited 3.333 XLM" in this case.

  • isn't horizon also missing "GBB4JST was credited 2.333 XLM"? – alcio Dec 12 '18 at 15:11
  • GBB4JST is an intermediate account, which only participated in trades. So the history of the GBB4JST contains only two effects: "GBB4JST sold 1 XRP for 3.333 XLM" and "GBB4JST sold 1 XLM for 1 XRP". GATEMHC received 1 XLM, everything is correct here. – Orbit Lens Dec 12 '18 at 15:16
  • But am I correct in assuming that these two effects imply that GBB4JST was credited 2.333 XLM at the end of the trade? – alcio Dec 12 '18 at 15:35
  • Yeah, you are correct. GBB4JST first sold 1 XRP for 3.333 XLM to GBN2KFK, and then bought back 1 XRP for 1 XLM. Therefore, it earned 2.333 XLM on these two trades. A nice example of market-making, if you ask me. Horizon does not generate account debited/credited effects for trades as a trade effect itself fully describes ledger changes. – Orbit Lens Dec 12 '18 at 15:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.