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

[Undelegate] After undelegate, voting power is updated in less than 1 epoch #273

Closed
NellYao opened this issue Dec 25, 2024 · 1 comment
Closed

Comments

@NellYao
Copy link

NellYao commented Dec 25, 2024

Summary of Bug:

After Undelegate, voting power is updated in less than 1 epoch

Version: Exocore 1.0.9

Environment: Four validators built locally, without Oracle
Precondition:

  • Perform operations such as deposit, delegation, and undelegate on the node with a voting power of 2700 and query the changes in voting power
  • Set epoch as minute

Steps to Reproduce:

1.Deposit 1000 ETH
./assetcli deposit --rpcUrl http://localhost:9545/ --staker 0x622869A3a10261019f88B64D312d0B8a77855390 --amount 1000000000000000000000 --privateKey 3EB1BDCCBACC8D5672918009F3F546EDC09E81BC0B58514C907D1C8C7E149352 --defaultAssetID 0x83E6850591425e3C1E263c054f4466838B9Bd9e4 --layerZeroID 40161

2.Delegate 1000 ETH:
./assetcli delegate --rpcUrl http://localhost:9545/ --staker 0x622869A3a10261019f88B64D312d0B8a77855390 --amount 1000000000000000000000 --privateKey 3EB1BDCCBACC8D5672918009F3F546EDC09E81BC0B58514C907D1C8C7E149352 --defaultAssetID 0x83E6850591425e3C1E263c054f4466838B9Bd9e4 --layerZeroID 40161 --operator exo192mgay9r8mdgwcprcvgdm47td36n974h9r8z6q

3.Selfdelegate:
./assetcli self-delegate --rpcUrl http://localhost:9545/ --staker 0x622869A3a10261019f88B64D312d0B8a77855390 --operator exo192mgay9r8mdgwcprcvgdm47td36n974h9r8z6q --privateKey 3EB1BDCCBACC8D5672918009F3F546EDC09E81BC0B58514C907D1C8C7E149352 --defaultAssetID 0x83E6850591425e3C1E263c054f4466838B9Bd9e4 --layerZeroID 40161

4.Query voting power:
exocored q tendermint-validator-set --node http://localhost:20000/
result: the voting power of address: exovalcons1gzcn6md2xwregl9qjkxjtrfpg0f57g5y3xqmxt is 3700

5.Undeletega 550 ETH:
./assetcli undelegate --rpcUrl http://localhost:9545/ --staker 0x622869A3a10261019f88B64D312d0B8a77855390 --amount 550000000000000000000 --privateKey 3EB1BDCCBACC8D5672918009F3F546EDC09E81BC0B58514C907D1C8C7E149352 --defaultAssetID 0x83E6850591425e3C1E263c054f4466838B9Bd9e4 --layerZeroID 40161 --operator exo192mgay9r8mdgwcprcvgdm47td36n974h9r8z6q

6.Check voting power after 23 seconds:
exocored q tendermint-validator-set --node http://localhost:20000/

Actual result: the voting power of address: exovalcons1gzcn6md2xwregl9qjkxjtrfpg0f57g5y3xqmxt changed from 3700 to 3150

Expected result: After undelegate, the voting power should be updated after 1 epoch

Copy link

github-actions bot commented Feb 9, 2025

This issue is stale because it has been open 45 days with no activity. Remove Status: Stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant