masa-finance / masa-oracle

Masa Oracle: Decentralized Data Protocol 🌐
https://developers.masa.ai/docs/category/oracle-node
MIT License
12 stars 12 forks source link

feat: Reward calculation mechanism #382

Open mudler opened 2 days ago

mudler commented 2 days ago

As part of our spike in #329 we have decided on the terms that should be part of calculating the reward for the workers (see note in: https://github.com/masa-finance/masa-oracle/issues/329#issuecomment-2197120216).

This card is an implementation card about using our #380 to store the rewards of the nodes such can be distributed later on via a mechanism that allows to link the rewards to the smart contracts deployed in different chains.

Describe the solution you'd like

TBD in detail.

Validators should be able to calculate an utility for the worker that is then reflected as an award for their work. The work have to be tracked in the ledger or in the #381 to make sure it can be syncronized with the smart contracts deployed in the other chains.

Additional context

329

Blocked by #380

Acceptance criteria