Skip to content
This repository was archived by the owner on Apr 24, 2026. It is now read-only.
This repository was archived by the owner on Apr 24, 2026. It is now read-only.

MetaMorpho total shares is incorrect #18

@AustinWoetzel

Description

@AustinWoetzel

The metaMorphos query returns totalShares per the following query
query getMetaMorphos { metaMorphos { totalShares } }

however this number does not reflect the actual state of the contract when you query 'totalSupply'. Total Supply on the contract is a number higher than the subgraph number.

We believe this to be caused by shares minted to the fee collector not being captured in the events that increment shares in the subgraph. When we query the shares balance of the fee collector, it perfectly adds to the subgraph totalShares to equal the total Supply on the contract.

Solution: total shares in the subgraph needs to be incremented any time that shares are minted to the fee collector.

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