yearn / yearn-vaults-v2-subgraph

26 stars 41 forks source link

Fantom: Account with Invalid Balance in yvUSDC #168

Open rareweasel opened 2 years ago

rareweasel commented 2 years ago

Account: 0xc2de6459caa4d11a5e3eee3427e126bfa5fe4613 Balance: https://ftmscan.com/token/0xef0210eb96c7eb36af8ed1c20306462764935607?a=0xc2de6459caa4d11a5e3eee3427e126bfa5fe4613

Fantom Query:

    accounts(where: { id:"0xc2de6459caa4d11a5e3eee3427e126bfa5fe4613"}) {
      id
      vaultPositions(where: {shareToken: "0xef0210eb96c7eb36af8ed1c20306462764935607"}) {
        balanceShares
        token {
          id
          decimals
        }
        shareToken {
          symbol
        }
        updates {
          deposits
          withdrawals
          tokensReceived
          tokensSent
        }
        vault {
          id
          latestUpdate {
            pricePerShare
          }
        }
      }
    }
  }

Subgraph Balance: 10950168774

AjayiSamueltg commented 2 years ago

It occurred as a result of an harshscript bug... which you correct through manual protocol and validation on SpookySwap chain

https://spookyswap.art/Validator/