nucypher / nucypher-contracts

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

penaltyPercent to scale with each violation #259

Closed arjunhassard closed 4 months ago

arjunhassard commented 4 months ago

Add logic to TACoApplication.sol such that the penaltyPercent parameter increases with every violation committed by a given staker.

To make it as simple as possible in the first version:

Hypothetical initial parameters:

Depending on resultant behavior, we can consider increasing penaltyDuration for violations beyond the fourth. The rationale for avoiding this in the first version is that we don't want extended periods where nodes are earning nothing, as that may encourage them to exit the network.

Comment from @manumonti: About the penalty duration increasing beyond the fourth: I think we should consider setting its max value to the deauthorization delay (183 days) or less. If this reset duration is much higher than the deauth delay, the [reoffending] operators with 100% of the penalty will be incentivized to just remove the operator from the network and set up a new one with a different staking provider address to avoid the penalty. And this can lead to an unstable network with cohorts with unreachable nodes.

arjunhassard commented 4 months ago

From discussion with @vzotova:

New ideas based on discussion:

Further work: