-
Notifications
You must be signed in to change notification settings - Fork 26
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
Conversation
uint8 _numBigStepLevel | ||
uint8 _numBigStepLevel, | ||
uint256 _initialStakeAmount, | ||
uint256 _stakeAmountSlope | ||
) public initializer { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
contracts/src/challengeV2/libraries/EdgeChallengeManagerLib.sol
Outdated
Show resolved
Hide resolved
…hainLabs/bold into linear-increase-mini-stakes
…hainLabs/bold into linear-increase-mini-stakes
API likely to slightly change due to different mini stake function.
uint256 ChallengeEdge::stakeAmount
could be made smaller to share a slot with other variableswould a new
EdgeChallengeManager::isDefeated(bytes32 edgeId)
be helpful?