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

Full stack test of mesh security part 2 #57

Open
1 of 20 tasks
alpe opened this issue Jul 19, 2023 · 0 comments
Open
1 of 20 tasks

Full stack test of mesh security part 2 #57

alpe opened this issue Jul 19, 2023 · 0 comments
Milestone

Comments

@alpe
Copy link
Contributor

alpe commented Jul 19, 2023

Scenario 2: (Require multiple consumer validators)

  • Create 2 users on provider chain with native staking token (the total stake is 20% higher than the max cap)
  • Both deposit in vault
  • User 1 stakes locally to native validator
  • User 1 stakes 70% to validator A
  • User 2 stakes 30% to validator B, 50% to validator C (total virtual stake below max cap)
  • Relay IBC packets
  • Trigger epoch
  • Ensure delegations are properly set on consumer
  • User 1 stakes 30% on validator B, User 2 stakes 20% on validator D (we are now above max cap)
  • Relay IBC packets
  • Trigger epoch
  • Ensure delegations are properly set on consumer (adjusted to equal max cap)
  • Ensure rewards were properly sent on epoch passing
  • User 1 and User 2 claim rewards on provider chain
  • User 1 unstakes all
  • Relay IBC packets
  • Trigger epoch
  • Ensure delegations are properly set on consumer (adjusted to equal max cap)
  • Ensure rewards were properly sent on epoch passing
  • User 1 and User 2 claim rewards on provider chain
@alpe alpe added this to the v0.3.0 milestone Jul 19, 2023
@alpe alpe modified the milestones: v0.3.0, v0.4.0 Nov 23, 2023
@pinosu pinosu modified the milestones: v0.4.0, v0.5.0 Dec 18, 2023
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

No branches or pull requests

2 participants