Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sui-system] minimum staking threshold of 1 SUI #9961

Merged
merged 5 commits into from
Mar 28, 2023

Conversation

emmazzz
Copy link
Contributor

@emmazzz emmazzz commented Mar 27, 2023

Description

Took over the work @dmitri-perelman started (and almost finished) in #9825 because I can't push to his fork of the repo.

Test Plan

Added some tests.


If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process.

Type of Change (Check all that apply)

  • user-visible impact
  • breaking change for a client SDKs
  • breaking change for FNs (FN binary must upgrade)
  • breaking change for validators or node operators (must upgrade binaries)
  • breaking change for on-chain data layout
  • necessitate either a data wipe or data migration

Release notes

@vercel
Copy link

vercel bot commented Mar 27, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Ignored Deployments
Name Status Preview Comments Updated
explorer ⬜️ Ignored (Inspect) Visit Preview Mar 28, 2023 at 6:25PM (UTC)
explorer-storybook ⬜️ Ignored (Inspect) Visit Preview Mar 28, 2023 at 6:25PM (UTC)
wallet-adapter ⬜️ Ignored (Inspect) Visit Preview Mar 28, 2023 at 6:25PM (UTC)

@dmitri-perelman
Copy link
Contributor

The other missing piece that I didn't finish in #9825 is updating the benchmarking code of staking (I think it's still using small amounts that are smaller than 1 SUI)

@vercel vercel bot temporarily deployed to Preview – explorer-storybook March 28, 2023 00:41 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-adapter March 28, 2023 00:42 Inactive
@emmazzz emmazzz force-pushed the staking_threshold branch from 7053433 to 8dc86f5 Compare March 28, 2023 01:35
@vercel vercel bot temporarily deployed to Preview – wallet-adapter March 28, 2023 01:36 Inactive
@vercel vercel bot temporarily deployed to Preview – explorer-storybook March 28, 2023 01:37 Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Mar 28, 2023

⚠️ 🦋 Changesets Warning: This PR has changes to public npm packages, but does not contain a changeset. You can create a changeset easily by running pnpm changeset in the root of the Sui repo, and following the prompts. If your change does not need a changeset (e.g. a documentation-only change), you can ignore this message. This warning will be removed when a changeset is added to this pull request.

Learn more about Changesets.

@emmazzz emmazzz force-pushed the staking_threshold branch from 8dc86f5 to 3ca50cc Compare March 28, 2023 02:41
@vercel vercel bot temporarily deployed to Preview – wallet-adapter March 28, 2023 02:41 Inactive
@vercel vercel bot temporarily deployed to Preview – explorer-storybook March 28, 2023 02:42 Inactive
@emmazzz emmazzz force-pushed the staking_threshold branch from 3ca50cc to 7977c66 Compare March 28, 2023 03:08
@vercel vercel bot temporarily deployed to Preview – wallet-adapter March 28, 2023 03:09 Inactive
@vercel vercel bot temporarily deployed to Preview – explorer-storybook March 28, 2023 03:10 Inactive
@emmazzz emmazzz force-pushed the staking_threshold branch 4 times, most recently from 08ce463 to ad44dfa Compare March 28, 2023 17:04
@emmazzz emmazzz enabled auto-merge (squash) March 28, 2023 17:04
Dmitri Perelman and others added 5 commits March 28, 2023 11:25
The threshold is set at the entry level to the Sui system object: the rewards to the validators might still be smaller than the threshold so we can't set it at the level of the staking pool.
@emmazzz emmazzz force-pushed the staking_threshold branch from ad44dfa to 88a0076 Compare March 28, 2023 18:25
@emmazzz emmazzz merged commit 15eae36 into MystenLabs:main Mar 28, 2023
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