oura icon indicating copy to clipboard operation
oura copied to clipboard

Rewards record

Open PegasusPool opened this issue 3 years ago • 2 comments

I was looking at the different types of records emitted by the source in model.rs and I was wondering if there is an event for when an account receives delegation reward after every epoch.

I can see that there is a MoveInstantaneousRewardsCert event but as far as I can tell this is only reward paid for catalyst voting as well as payout to catalyst winners.

My usecase: Trying to calculate the balance of an account (including unclaimed rewards)

PegasusPool avatar Jun 08 '22 16:06 PegasusPool

+1

crypto-titan avatar Jun 29 '22 17:06 crypto-titan

hi @PegasusPool. The existing event describes the scenario of moving rewards from reserves / treasury to some address. More info here: https://cardano.stackexchange.com/a/9247/4495

Regarding unclaimed reward calculation, that's a tough one. AFAIK, one needs to compute them by doing some heavy calculations on a per-epoch, per-pool fashion. DB-Sync has this logic embedded. I believe it is out-of-scope for Oura, but a consumer that aggregates many different Oura events should have enough information to compute the values.

scarmuega avatar Nov 29 '22 18:11 scarmuega