Skip to content

Commit

Permalink
[move] [Fast Track Proposal] Turn down the heat on Cost To Exist (#1119)
Browse files Browse the repository at this point in the history
* defer for 90 days cost to inactives, and reduce the cost of burn by only implementing at steady state.

* burn should be the default if user has not set send to community explicitly
  • Loading branch information
0o-de-lally authored May 24, 2022
1 parent 325a1ef commit 28006fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion language/diem-framework/modules/0L/Burn.move
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ module Burn {
}
} else {

send(vm, payer, value);
burn(vm, payer, value);
};
}

Expand Down
4 changes: 3 additions & 1 deletion language/diem-framework/modules/0L/EpochBoundary.move
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,9 @@ module EpochBoundary {
let vals_to_burn = if (
!Testnet::is_testnet() &&
!StagingNet::is_staging_net() &&
DiemConfig::get_current_epoch() > 185
DiemConfig::get_current_epoch() > 290 && // bump up to epoch 290 so people can discuss.
// only implement this burn at a steady state with 90/100 validator positions full. Will make the burn amount much smaller over time.
Vector::length<address>(proposed_set) > 90
) {
&ValidatorUniverse::get_eligible_validators(vm)
} else {
Expand Down

0 comments on commit 28006fc

Please sign in to comment.