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

Implement timestamp for withdrawal time in parachain staking #2830

Closed
nampc1 opened this issue Mar 29, 2024 · 4 comments · Fixed by #2876
Closed

Implement timestamp for withdrawal time in parachain staking #2830

nampc1 opened this issue Mar 29, 2024 · 4 comments · Fixed by #2876
Assignees

Comments

@nampc1
Copy link

nampc1 commented Mar 29, 2024

  • Update formula by target timestamp.
  • Automatically display the withdraw button when the timeout expires
@bluezdot
Copy link

bluezdot commented Apr 3, 2024

Recheck Bifros block time, round time

@bluezdot
Copy link

bluezdot commented Apr 5, 2024

Also update for Amplitude group

@bluezdot bluezdot linked a pull request Apr 5, 2024 that will close this issue
@bluezdot
Copy link

bluezdot commented Apr 5, 2024

Parachain

  • whenExecutation = parachainStaking.delegationScheduledRequests(addr).whenExecutation
  • targetBlock = (whenExecutation - round.current) * round.length + round.first
  • remainingBlock = targetBlock - system.number
  • targetTimestamp = remainingBlock * BLOCK_TIME + timestamp.now

Amplitude group

  • targetBlock from unstaking(address)
  • remainingBlock = targetBlock - system.number
  • targetTimestamp = remainingBlock * BLOCK_TIME + timestamp.now

@haiyenvu23
Copy link

haiyenvu23 commented Apr 16, 2024

Version test : http://14.224.158.246:8900/s/Qz3xTZ8mZABx7oN
Validation passed in case :

  • Withdraw time in parachain : moonbeam, moonriver, moonbase, bifrost, calamari, manta, polimec , turing, turingStaging, bifrost_testnet, calamari_testnet
  • Withdraw time in Amplitude group : amplitude, kilt, pendulum, krest, amlitude_test, kilt_peregrine

Image

Image

  • Relaychain
    • Direct nomination

Image

  • Nomination pool

Image

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 a pull request may close this issue.

4 participants