ZeroB2M amendment (#293)

* ZeroB2M amendment

Co-authored-by: Denis Angell <dangell@transia.co>
This commit is contained in:
RichardAH
2024-03-22 10:49:35 +11:00
committed by GitHub
parent d24c134612
commit 7cd8f0a03a
4 changed files with 131 additions and 39 deletions

View File

@@ -1224,7 +1224,13 @@ Import::doApply()
create ? STAmount(bonusAmount) : STAmount(mSourceBalance);
uint64_t creditDrops = burn.xrp().drops();
if (elapsed < 2'000'000)
if (view().rules().enabled(featureZeroB2M))
{
// B2M xrp is disabled by amendment
creditDrops = 0;
}
else if (elapsed < 2'000'000)
{
// first 2MM ledgers
// the ratio is 1:1