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

WIP - linearly increase mini stake size #497

Closed
wants to merge 39 commits into from

Conversation

godzillaba
Copy link
Contributor

@godzillaba godzillaba commented Nov 27, 2023

API likely to slightly change due to different mini stake function.

uint256 ChallengeEdge::stakeAmount could be made smaller to share a slot with other variables

would a new EdgeChallengeManager::isDefeated(bytes32 edgeId) be helpful?

contracts/src/challengeV2/EdgeChallengeManager.sol Outdated Show resolved Hide resolved
uint8 _numBigStepLevel
uint8 _numBigStepLevel,
uint256 _initialStakeAmount,
uint256 _stakeAmountSlope
) public initializer {
Copy link
Member

Choose a reason for hiding this comment

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

not directly related to this pr but since the challenge manager should be immutable we can remove the initializer and use a constructor so that a brunch of these config can be made immutable to save gas

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok i can make that pr

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@godzillaba godzillaba closed this Feb 15, 2024
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