nucypher / nucypher-contracts

Ethereum contracts supporting TACo applications on the Threshold Network.
16 stars 11 forks source link

Penalty for reward as alternative to slashing #254

Closed vzotova closed 4 months ago

vzotova commented 5 months ago

Type of PR:

Required reviews:

What this does: Penalize reward as an option when slashing is too much. Penalty decreases reward by penaltyDefault for penaltyDuration. Each penalize restarts time, penalty itself is the same value until end of duration. Initially this event starts on Polygon in child app, where penalize can be called by special role (adjudicator for now)

Issues fixed/closed:

  • Fixes #...

Why it's needed:

Explain how this PR fits in the greater context of the NuCypher Network. E.g., if this PR address a nucypher/productdev issue, let reviewers know!

Notes for reviewers:

What should reviewers focus on? Is there a particular commit/function/section of your PR that requires more attention from reviewers?