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

Improvements in deposit.sol #1818

Merged
merged 6 commits into from
Nov 15, 2024
Merged

Conversation

DrZoltanFazekas
Copy link
Contributor

@DrZoltanFazekas DrZoltanFazekas commented Nov 13, 2024

The PR shall implement two urgent improvements:

  • getFutureStake() function to retrieve the staker's latest balance even if not yet effective i.e. future balance (required for the correct price calculation in liquid staking)
  • unbondig period set in the constructor to the value of nodes.consensus.unbonding_period configured in the toml file (to enable shorter testing cycles of stake withdrawals on the devnet)

Copy link
Contributor

@JamesHinshelwood JamesHinshelwood left a comment

Choose a reason for hiding this comment

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

LGTM - Did you also want to set the unbonding period in the constructor?

@DrZoltanFazekas DrZoltanFazekas added this pull request to the merge queue Nov 15, 2024
Merged via the queue into main with commit 7e85e48 Nov 15, 2024
5 checks passed
@DrZoltanFazekas DrZoltanFazekas deleted the deposit-contract-improvements branch November 15, 2024 08:35
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.

Make the Deposit contract's withdrawalPeriod configurable
2 participants