frontend-monorepo icon indicating copy to clipboard operation
frontend-monorepo copied to clipboard

Show rewards and fees earned (wallet connected)

Open ckpringle opened this issue 2 years ago • 0 comments

Implement initially without pagination to avoid being dependent on https://github.com/vegaprotocol/vega/issues/6650

Story

As a user who has connected their wallet I want to see what I have earned in comparison to the total of rewards and fees paid out So that I can understand the financial benefits of using Vega

Acceptance criteria 

  • [ ] There is a way to connect my wallet to see rewards earned
  • [ ] I can see rewards and infrastructure fees (totals) paid out per epoch, per asset, per type (staking rewards, infrastructure fees, price taking rewards, price making rewards, liquidity provision rewards, market creation rewards)
  • [ ] I can see a total per asset
  • [ ] I can see what I have earned myself of each (number and % of total), in a way that is visually differentiated from the overall totals e.g. in a toggle

Background / additional details

  • Staking rewards = types.AccountTypeGlobalReward
  • Infrastructure fees = types.AccountTypeFeesInfrastructure
  • Price taking rewards = types.AccountTypeMakerPaidFeeReward
  • Price making rewards = types.AccountTypeMakerReceivedFeeReward
  • Liquidity provision rewards = types.AccountTypeLPFeeReward
  • Market Creation Rewards = types.AccountTypeMarketProposerReward

Tasks

  • [ ] ...

Sketch

Image

ckpringle avatar Dec 05 '22 15:12 ckpringle