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

feat(singularity): add singularity to mint and evmstaking module #202

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

0xHansLee
Copy link
Contributor

@0xHansLee 0xHansLee commented Oct 15, 2024

Added singularity to mint and evmstaking module.
Until singularity height, no reward is minted and no validator set is updated.

BTW, there is one thing to discuss. What if user make requests for unstake greater than MaxEntries? In CL side, when there are more unstake requests than MaxEntries, it is processed as processing failure. However, in EL, unstake is processed normally, so I think we need to handle this. What do you think? I would like to discuss this because as the Singularity period gets longer, this possibility will increase.

issue: none

@0xHansLee 0xHansLee changed the title Feat/add singularity feat(*): add singularity to mint and evmstaking module Oct 15, 2024
@0xHansLee 0xHansLee force-pushed the feat/add-singularity branch 3 times, most recently from 9a07d05 to d28dc13 Compare October 15, 2024 23:08
@0xHansLee 0xHansLee changed the title feat(*): add singularity to mint and evmstaking module feat(singularity): add singularity to mint and evmstaking module Oct 16, 2024
@@ -26,7 +27,8 @@ func DefaultParams() Params {
return Params{
MintDenom: sdk.DefaultBondDenom,
InflationsPerYear: math.LegacyNewDec(24625000000000000.000000000000000000),
BlocksPerYear: uint64(60 * 60 * 8766 / 5), // assuming 5 second block times
BlocksPerYear: uint64(60 * 60 * 8766 / 5), // assuming 5 seconds block times
SingularityHeight: 725760, // 42 days with assuming 5 seconds block time
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we combine this with the other SingularityHeight in evmstaking to make it consistent?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If possible, it would be better to combine into one, but I have no idea on combining this. Or one way for this is that we make a new keeper named singularity and import the keeper to both mint and evmstaking keeper. I think there is no need to make a new keeper for this, thus make like this. Do you have any better idea on this?

@0xHansLee 0xHansLee force-pushed the feat/add-singularity branch 4 times, most recently from a82de33 to 3af9f8c Compare October 17, 2024 04:44
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.

2 participants