nucypher / nucypher-contracts

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

Add `RewardsWithdrawn` event to `withdrawRewards` function in TACoApplication #276

Closed manumonti closed 2 weeks ago

manumonti commented 2 months ago

Type of PR:

Required reviews:

What this does: This will add RewardsWithdrawn to be emitted when staking rewards are withdrawn.

Issues fixed/closed: Fixes #275

Why it's needed: This event is included in IApplication interface, so it's intended to be emitted by all the Threshold applications when the function withdrawRewards() is called.

https://github.com/threshold-network/solidity-contracts/blob/8fcf42c6fcb50bb7730155bd5b99239b7b30382d/contracts/staking/IApplication.sol#L26

manumonti commented 2 months ago

TBD: tests