codex-storage / codex-contracts-eth

Ethereum smart contracts for Codex
Other
5 stars 9 forks source link

Repair reward percentage, number of slashing and linearity #46

Closed AuHau closed 1 year ago

AuHau commented 1 year ago

Currently, the minimum required collateral is defined on the smart-contract level as an absolute value. Repair reward is currently not defined. And the slashing is logarithmic.

We have agreed to replace the minimumAmount with number of slashing. There needs to be a check for numberOfSlashing*slashingPercentage<=100, though. Also we have decided to move from logarithmic to linear slashing, which goes in hand with the previous change.