XRPL-Labs/Xaman-Issue-Tracker

[AMM]: Diverse fixes

Opened this issue · 0 comments

LP tokens have a non standard currency code, and they show up like this:

2AA75D9A-5BE2-4D2E-A4CE-203A2CDE6EB2_4_5005_c
FE2423AD-C7DD-4FD7-A815-784F5B61552E_4_5005_c

If it's amm:

  • Currency code starts with 03
  • amm_info is to be called
wscat -c s.devnet.rippletest.net:51233 \
  -w 0 \
  -x '{ "command": "amm_info", "amm_account":"rGYwEatufNfcATdYvxEmTMncYY66g9aYbo"}' | jq

^^ the account above is the issuer.

Response will tell you amount (string is XRPdrops) (andamount2`) - one can be native asset drops, or both can be issued currency format.

Like this:

AMM LP: {curcode 1}-{curcode 2}

So for example:

AMM LP: XRP-USD

When tapped:
image

but below the asset blocks as with the Amm tx should be displayed, with the right asset details and issuer.

AMM LP: XRP-USD

Event list: TrustSet (adding / removing trustline):

image

--- Etc (to check) for the other AMM transactions