Skip to content

PoolShare entity with user being the pool itself #70

@benesjan

Description

@benesjan

There seems to be a bug in the data as there exist a PoolShare entity where the user is the pool itself. Here is an example query and output:

{
  poolShares(where: {userAddress: "0x5e37910cfb8de1b14ec4e4bac0bec27c35dc07d5"}) {
    id
    balance
    poolId {
      id
    }
  }
}
{
  "data": {
    "poolShares": [
      {
        "balance": "0",
        "id": "0x5e37910cfb8de1b14ec4e4bac0bec27c35dc07d5-0x5e37910cfb8de1b14ec4e4bac0bec27c35dc07d5",
        "poolId": {
          "id": "0x5e37910cfb8de1b14ec4e4bac0bec27c35dc07d5"
        }
      }
    ]
  }
}

How is this possible? Are the BPTs sent to the pool itself upon user's liquidity withdrawal?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions