AleoNet / snarkOS

A Decentralized Operating System for ZK Applications
http://snarkos.org
Apache License 2.0
4.1k stars 2.57k forks source link

Update for ARC-41: handle credits.aleo changes #3267

Closed evanmarshall closed 1 month ago

evanmarshall commented 1 month ago

This PR should be merged after the snarkVM ARC-41 changes: https://github.com/AleoNet/snarkVM/pull/2453

Summary from snarkVM

Currently, validators will need to have 10M credits in order to self.bond as a validator. The problem is that most or all of these validators won't actually have 10M credits. To bring Aleo in line with other ecosystems, we want to relax 2 existing constraints:

Delegators can delegate to any address (with the same 10,000 credit minimum & maximum of 100,000 delegators) even if that address is not in the committee Validators only require a self bond of 100 credits to join the committee, given the total delegation for them is >= 10M credits. Although the changes are significant, the staking abstraction should closely follow what existed before.

Technical changes

vicsn commented 1 month ago

More required changes surfaced by clippy: https://github.com/AleoHQ/snarkOS/commit/b97c3f728edec4c41d631022f7ea937f0daf6145

apruden2008 commented 1 month ago

LGTM. Thanks!