-
Notifications
You must be signed in to change notification settings - Fork 86
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
Improve vtoken-voting #1101
Merged
Merged
Improve vtoken-voting #1101
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ark930
added a commit
that referenced
this pull request
Dec 29, 2023
* Bifrost v0.9.90 * Slp add XCM weight parameters (#1098) * Slp optimises XCM weight parameters * Optimising code * Add construct xcm test * Slpx add ethereum call (#1097) * Slpx add ethereum call * Optimising code * Improve vtoken-voting (#1101) * Fix tests compile errors * Add method Utility::BatchAll * Add function set_vote_cap_ratio * Add function vote_cap * Add function vote_to_capital * Add function compute_delegator_total_vote * Fix import * Add function allocate_delegator_votes * Fix function ensure_referendum_expired * Fix test `notify_remove_delegator_vote_fail_works` * Remove tests `split_voting_works` and `abstain_voting_works` * Remove delegator_vote_roles in GenesisConfig * Remove `set_delegator_role` and add `add_delegator` * Fix `ensure_referendum_expired` * Fix integration-tests vtoken_voting::vote_works * Fix compiles * Add function account_vote * Optimize compute_delegator_total_vote * Optimize allocate_delegator_votes * Remove try_select_derivative_index, try_add_delegator_vote, try_sub_delegator_vote * Minor fix * Allow vote by any conviction * Test `add_delegator_works` * Fix test `successful_but_zero_conviction_vote_balance_can_be_unlocked` * Fix integration-tests/bifrost-kusama/src/vtoken_voting.rs * Allow vote by any conviction * Fix * Fix tests * Fix copyright * Fix benchmarking, clippy and copyright * Fix * fix try-runtime:skip pre-post && weight check (#1111) Co-authored-by: TomatoAres <[email protected]> * vtoken-voting migration v2 (#1113) * vtoken-voting migration v2 * Fix clippy * fix: 🐛 vesting weight (#1112) * fix: 🐛 vesting weight * fix: 🐛 weight * Fix leverage staking (#1110) * fix: 🐛 leverage-staking * fix: 🐛 fix * feat: 🎸 add flash_loan_deposit_inner * fix: 🐛 format * refactor: 💡 add Lend && rm currency_id * fix: 🐛 clippy * fix: 🐛 FlashLoanDeposited * fix: 🐛 test-all * fix: 🐛 rm discriminant * fix manta (#1115) * fix manta * remove println * fix: 🐛 increase_leverage (#1116) * fix: 🐛 reduce_amount (#1118) --------- Co-authored-by: NingBo Wang <[email protected]> Co-authored-by: 战神西红柿 <[email protected]> Co-authored-by: TomatoAres <[email protected]> Co-authored-by: yooml <[email protected]> Co-authored-by: Herry Ho <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.