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

Fix: Fix valset pref unbonding bugs #5967

Merged
merged 35 commits into from
Oct 13, 2023
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
fe7290f
Add helper to get existing delegations along with valset pref
ValarDragon Aug 6, 2023
fcdc961
Lay out more of the logic nuance
ValarDragon Aug 6, 2023
58792cc
Add pseudo-code needed
ValarDragon Aug 6, 2023
2f8dea8
algorithm v1
stackman27 Aug 7, 2023
f4c0dab
added algorithm docs
stackman27 Aug 7, 2023
144f0d1
fixed all test
stackman27 Aug 8, 2023
41cd2f6
removed unwanted files
stackman27 Aug 8, 2023
7403e06
remove more code
stackman27 Aug 8, 2023
fbd4ba4
added more tests
stackman27 Aug 8, 2023
2f5caca
update changelog
devbot-wizard Aug 8, 2023
d3cec49
Merge branch 'main' into dev/valset-pref-unbond-issues
stackman27 Aug 8, 2023
90e9fb2
added test and addressed feedback
stackman27 Aug 8, 2023
b317a0e
Update x/valset-pref/validator_set.go
czarcas7ic Aug 9, 2023
b1ece1b
Update x/valset-pref/validator_set.go
czarcas7ic Aug 9, 2023
53a14d9
Update x/valset-pref/README.md
czarcas7ic Aug 9, 2023
5d54956
Merge branch 'main' into dev/valset-pref-unbond-issues
czarcas7ic Aug 11, 2023
11bc176
Minor cleanup
ValarDragon Aug 13, 2023
3799111
re-use validator gets
ValarDragon Aug 13, 2023
dcfc806
Refactor
ValarDragon Aug 14, 2023
d9891dd
Highlight bug
ValarDragon Aug 14, 2023
5ac4023
fixed the issue
stackman27 Aug 22, 2023
25cdc5f
added comments
stackman27 Aug 22, 2023
20f7c29
Merge branch 'main' into dev/valset-pref-unbond-issues
stackman27 Aug 22, 2023
e27f258
update changelog
devbot-wizard Aug 8, 2023
54b4dec
fixed the issue
stackman27 Aug 22, 2023
77a9655
fixed go test
stackman27 Aug 22, 2023
324a281
fixed test
stackman27 Aug 22, 2023
365b721
Merge branch 'main' into dev/valset-pref-unbond-issues
p0mvn Sep 27, 2023
31e9008
lint
p0mvn Sep 28, 2023
1c48875
Merge branch 'main' into dev/valset-pref-unbond-issues
p0mvn Oct 3, 2023
9e98292
Finish ValSet Pref Unbonding (#6630)
mattverse Oct 5, 2023
eedd243
Merge branch 'main' into dev/valset-pref-unbond-issues
czarcas7ic Oct 5, 2023
ce280e8
feat: unbond with rebalanced val set weights (#6685)
czarcas7ic Oct 13, 2023
30af740
Merge branch 'main' into dev/valset-pref-unbond-issues
czarcas7ic Oct 13, 2023
246d95e
Update x/valset-pref/validator_set.go
ValarDragon Oct 13, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update x/valset-pref/validator_set.go
czarcas7ic authored Aug 9, 2023
commit b1ece1b8b049eb8c4944a7b56a4ee5f69dec30ad
1 change: 0 additions & 1 deletion x/valset-pref/validator_set.go
Original file line number Diff line number Diff line change
@@ -96,7 +96,6 @@ func (k Keeper) DelegateToValidatorSet(ctx sdk.Context, delegatorAddr string, co
totalDelAmt := sdk.NewInt(0)
tokenAmt := sdk.NewInt(0)

fmt.Println(existingSet.Preferences)
// loop through the validatorSetPreference and delegate the proportion of the tokens based on weights
for i, val := range existingSet.Preferences {
_, validator, err := k.getValAddrAndVal(ctx, val.ValOperAddress)