From 28006fc6c0ccadcdee18d336808c708ebdf006ba Mon Sep 17 00:00:00 2001 From: 0o-de-lally <1364012+0o-de-lally@users.noreply.github.com> Date: Tue, 24 May 2022 13:42:33 -0400 Subject: [PATCH] [move] [Fast Track Proposal] Turn down the heat on Cost To Exist (#1119) * 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 --- language/diem-framework/modules/0L/Burn.move | 2 +- language/diem-framework/modules/0L/EpochBoundary.move | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/language/diem-framework/modules/0L/Burn.move b/language/diem-framework/modules/0L/Burn.move index e0737ac7d4..17a0913417 100644 --- a/language/diem-framework/modules/0L/Burn.move +++ b/language/diem-framework/modules/0L/Burn.move @@ -96,7 +96,7 @@ module Burn { } } else { - send(vm, payer, value); + burn(vm, payer, value); }; } diff --git a/language/diem-framework/modules/0L/EpochBoundary.move b/language/diem-framework/modules/0L/EpochBoundary.move index 798fa5b12a..fa8fceb539 100644 --- a/language/diem-framework/modules/0L/EpochBoundary.move +++ b/language/diem-framework/modules/0L/EpochBoundary.move @@ -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
(proposed_set) > 90 ) { &ValidatorUniverse::get_eligible_validators(vm) } else {