explorer icon indicating copy to clipboard operation
explorer copied to clipboard

Feature request: AMM Account Page tab for voting info

Open mvadari opened this issue 11 months ago • 0 comments

There's some info that's provided in the amm_info command that isn't included. Namely, who has the current auction slot and who holds the other voting slots. It'd be really useful if there was another tab (probably next to "Transactions") that had some representation of that data.

Example amm_info output that shows this data (copied from Discord):

{
  "id": 1,
  "result": {
    "amm": {
      "account": "rJCfZLWXgMRmCGGhG8rZeg5fpoWvEkHXkm",
      "amount": "3499026461106",
      "amount2": {
        "currency": "LTC",
        "issuer": "rPEV4e86ZJDAjV84VayCx1PpiKEAhmHJBF",
        "value": "25545.11722121954"
      },
      "asset2_frozen": false,
      "auction_slot": {
        "account": "r3xoab3FR5m4C7qQnq3Rfk5Z1UZrM8YXC7",
        "discounted_fee": 75,
        "expiration": "2024-03-14T11:21:10+0000",
        "price": {
          "currency": "03464237AB32D5DEF7906822DEBFA90ED71D8CAC",
          "issuer": "rJCfZLWXgMRmCGGhG8rZeg5fpoWvEkHXkm",
          "value": "2200"
        },
        "time_interval": 20
      },
      "lp_token": {
        "currency": "03464237AB32D5DEF7906822DEBFA90ED71D8CAC",
        "issuer": "rJCfZLWXgMRmCGGhG8rZeg5fpoWvEkHXkm",
        "value": "293904831.0382916"
      },
      "trading_fee": 750,
      "vote_slots": [
        {
          "account": "r3xoab3FR5m4C7qQnq3Rfk5Z1UZrM8YXC7",
          "trading_fee": 110,
          "vote_weight": 1401
        },
        {
          "account": "rPDHEDWY7yzMhFVVFTDAETSAsjfad6LEav",
          "trading_fee": 761,
          "vote_weight": 80672
        }
      ]
    },
    "ledger_current_index": 5251174,
    "validated": false
  },
  "status": "success",
  "type": "response"
}

mvadari avatar Mar 22 '24 14:03 mvadari