Skip to content

* Added chainspec property minimum_delegation_rate#5389

Merged
zajko merged 2 commits intocasper-network:devfrom
zajko:minimum_delegation_rate_limit
Mar 4, 2026
Merged

* Added chainspec property minimum_delegation_rate#5389
zajko merged 2 commits intocasper-network:devfrom
zajko:minimum_delegation_rate_limit

Conversation

@zajko
Copy link
Contributor

@zajko zajko commented Mar 2, 2026

  • Minimum delegation rate applies to new add bids and new reservations

Co-author: Michał Papierski michal@papierski.net

@zajko zajko force-pushed the minimum_delegation_rate_limit branch 9 times, most recently from 85b0abc to 93e3361 Compare March 3, 2026 16:46
Copy link
Contributor

@darthsiroftardis darthsiroftardis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

optimistic approval pending CI

@zajko zajko force-pushed the minimum_delegation_rate_limit branch 8 times, most recently from 11d22cd to fcc962a Compare March 4, 2026 19:53
@zajko zajko force-pushed the minimum_delegation_rate_limit branch 2 times, most recently from 15d61f5 to c7c462f Compare March 4, 2026 20:41
Minimum delegation rate applies to new add bids and new reservations
Co-author: Michał Papierski michal@papierski.net
@zajko zajko force-pushed the minimum_delegation_rate_limit branch from c7c462f to 7ccfb2e Compare March 4, 2026 21:04
Comment on lines +259 to +273
let minimum_delegation_rate_uref = self
.address_generator
.borrow_mut()
.new_uref(AccessRights::READ_ADD_WRITE);
let cl_value = CLValue::from_t(minimum_delegation_rate)
.map_err(|cl_error| GenesisError::CLValue(cl_error.to_string()))?;
self.tracking_copy.borrow_mut().write(
minimum_delegation_rate_uref.into(),
StoredValue::CLValue(cl_value),
);
named_keys.insert(
MINIMUM_DELEGATION_RATE_KEY.into(),
minimum_delegation_rate_uref.into(),
);

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a good reason this isn't being done later in this flow, when the other auction named keys are seeded?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really. I'll move it in a separate PR.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, one cohesion nit pick

@zajko zajko merged commit 25f62e2 into casper-network:dev Mar 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants