vegaprotocol / vega

A Go implementation of the Vega Protocol, a protocol for creating and trading derivatives on a fully decentralised network.
https://vega.xyz
GNU Affero General Public License v3.0
38 stars 22 forks source link

[Bug]: vestingBalancesSummary API is showing old data #11721

Open JonRay15 opened 1 month ago

JonRay15 commented 1 month ago

Problem encountered

I run this to check my actual accounts and I see I have no vesting balances (which is expected).

query partyAccounts {
  partiesConnection(id:"b62eafc46e6fadc6e45ae51de8bda199f0702131e5b23665f3411223c598acc2"){
    edges{
      node{
        id
        accountsConnection{
          edges{
            node{
              balance
              asset{
                id
                symbol
                decimals
              }
              type
            }
          }
        }
      }
    }
  }
}

However if I run this I see that supposedly I have about 5.8 VEGA still vesting .... and for some reason this hasnt been updated since epoch 982.

query vestingDetails {
  party(id: "b62eafc46e6fadc6e45ae51de8bda199f0702131e5b23665f3411223c598acc2") {
    vestingStats{
      rewardBonusMultiplier
      quantumBalance
      epochSeq
      }
    vestingBalancesSummary{
      epoch
      vestingBalances{
        asset {
          id
          symbol
          quantum
          decimals
        }
        balance
      }
      lockedBalances {
        asset {
          id
          symbol
          quantum
          decimals
        }
        balance
        untilEpoch
      }
    }
  }
}

Observed behaviour

As above

Expected behaviour

The vestingBalancesSummary API should accurately reflect the accounts API.

Steps to reproduce

1. Submit `xyz` transaction
2. With this payload
3. Query `abc` API
4. Observe the error

Software version

0.77.10

Failing test

No response

Jenkins run

No response

Configuration used

No response

Relevant log output

No response