suzaku-network / suzaku-contracts-library

An open-source smart contracts library curated by the Suzaku team
Other
4 stars 0 forks source link

ACP-99: Only care about the validator uptime when completing the validation #7

Closed Nuttymoon closed 1 month ago

Nuttymoon commented 2 months ago

The initial implementation stores the validation uptime for each validation period. This isn't useful (as the rewards will only be distributed once the entire validation is over) and forced me to use a weird trick that can make an uptimeSeconds negative at the validation period level.

Tracking the uptime at the validation level only should ease the logic.