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

feat: add rebalance. #680

Merged
merged 18 commits into from
Nov 26, 2023
Merged

feat: add rebalance. #680

merged 18 commits into from
Nov 26, 2023

Conversation

puneet2019
Copy link
Member

1. Overview

add rebalance strategy as per internal docs

2. Implementation details

does redelegations from AtoB , if A has more delegations than Ideal with acceptable delta.

3. How to test/use

to add

@puneet2019 puneet2019 requested a review from a team as a code owner November 20, 2023 12:40

This comment has been minimized.

@puneet2019 puneet2019 changed the title add rebalance. feat: add rebalance. Nov 20, 2023
x/liquidstakeibc/keeper/ibc.go Outdated Show resolved Hide resolved
x/liquidstakeibc/keeper/ica_handlers.go Outdated Show resolved Hide resolved
x/liquidstakeibc/migrations/v3/store.go Show resolved Hide resolved
x/liquidstakeibc/keeper/rebalance.go Outdated Show resolved Hide resolved
Copy link

Coverage after merging puneet/rebalance into main

70.37%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
x/liquidstakeibc
   genesis.go100%100%100%
   module_ibc.go100%100%8.93%..., 88, 89, 90, 91
   module.go100%100%54.76%..., 72, 73, 74, 99
x/liquidstakeibc/keeper
   invariants.go100%100%100%
   icq.go100%100%94.70%..., 175, 39, 40, 41
   keeper.go100%100%99.15%90, 91
   ica.go100%100%65.57%..., 71, 72, 73, 74
   msg_server.go100%100%60.24%..., 946, 95, 96, 97
   unbonding.go100%100%100%
   deposit.go100%100%100%
   ibc.go100%100%23.74%..., 91, 92, 93, 94
   redelegation.go100%100%100%
   abci.go100%100%80.94%..., 85, 86, 87, 88
   user_unbonding.go100%100%100%
   redelegation_txs.go100%100%100%
   lsm_deposit.go100%100%100%
   validator_unbonding.go100%100%100%
   delegation_strategy.go100%100%100%
   icq_queries.go100%100%100%
   migrations.go100%100%33.33%..., 23, 26, 27, 28
   rebalance.go100%100%91.21%..., 115, 116, 77, 80
   hooks.go100%100%43.89%..., 872, 873, 903, 904
   host_chain.go100%100%99.64%129
   ica_handlers.go100%100%29.18%..., 96, 97, 98, 99
   grpc_querier.go100%100%100%
x/liquidstakeibc/types
   keys.go100%100%0%..., 95, 97, 98, 99
   codec.go100%100%100%
   params.go100%100%100%
   msgs.go100%100%91.45%..., 352, 353, 456, 457
   genesis.go100%100%100%
   host_chain.go100%100%100%
   liquidstakeibc.go100%100%100%

@puneet2019 puneet2019 merged commit 94d6d06 into main Nov 26, 2023
10 of 11 checks passed
@puneet2019 puneet2019 deleted the puneet/rebalance branch November 26, 2023 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants