Ross Bulat
20d5e3584d
Nomination Pool Commission ( #13128 )
...
* + nomination pool commission
* fmt
* use register_update()
* Update frame/nomination-pools/src/lib.rs
Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com >
* Update frame/nomination-pools/src/lib.rs
Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com >
* fmt
* amend comments
* + test for set_commission
* fix
* Update frame/nomination-pools/fuzzer/src/call.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* rm comment
* use PalletError
* some feedback item amendments
* update weights
* revert PalletError stuff
* ".git/.scripts/commands/fmt/fmt.sh"
* make pool_events_since_last_call more modular
* fmt
* fix call indexes + test
* add payout teste
* add event to max_commisson updating current
* begin refactor
* some debugging
* update
* more tests
* rewardpol not working
* commission refactor
* pending rewards returns commission
* fmt
* add claim_commission call
* + claim_commission
* fix benchmarks
* weight 0 for now
* + claim_commission benchmark
* fmt
* apply commission to benchmarks
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_nomination_pools
* ".git/.scripts/commands/fmt/fmt.sh"
* clippy
* + pending
* add RewardPool.total_rewards_acounted
* fixes
* println
* more logs
* Fix plus cleanups
* fix assert
* tidy up
* tests work + tidy up
* rm unused
* clippy fix
* persist reward_pool update
* claim_commission_works tests
* .
* some test formatting
* add high level docs
* add calls
* docs
* rename
* rename
* docs
* rename
* fmt
* use matches!
* Update frame/nomination-pools/src/lib.rs
Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com >
* Update frame/nomination-pools/src/lib.rs
Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com >
* Update frame/nomination-pools/src/tests.rs
Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com >
* comment
* Update frame/nomination-pools/src/lib.rs
Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com >
* .
* weights order
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_nomination_pools
* use from_parts
* comment
* ".git/.scripts/commands/fmt/fmt.sh"
* revert clippy suggestions on old migrations
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_nomination_pools
* add InitialGlobalMaxCommission
* fix migration
* reward counter comments & explanations
* format
* add commission implementation note
* fmt
* revert InitialGlobalMaxCommission
* global max commission migration generic
* text
* 100% commission no payout test
* add commission_accumulates_on_multiple_rewards
* non-zero fuzzer GlobalMaxCommission
* add last_recorded_total_payouts_needs_commission
* commission event fix + claim commission test
---------
Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: command-bot <>
Co-authored-by: Bastian Köcher <info@kchr.de >
2023-03-15 04:07:55 +00:00
Vivek Pandya
bc53b9a03a
Remove years from copyright notes. ( #13415 )
...
* Change copyright year to 2023 from 2022
* Fix incorrect update of copyright year
* Remove years from copy right header
* Fix remaining files
* Fix typo in a header and remove update-copyright.sh
2023-02-21 18:46:41 +00:00
Ross Bulat
00e159f770
Nomination Pools: Rename state-toggler to bouncer ( #13421 )
...
* rename state-toggler to bouncer
* add migration
* fmt
* bump storage version
* rm migration
* revert version
* ".git/.scripts/commands/fmt/fmt.sh"
---------
Co-authored-by: command-bot <>
2023-02-21 11:39:52 +00:00
Kian Paimani
9979acb1e7
More testing and fuzzing and docs for pools ( #12624 )
...
* move pools fuzzing to hongfuzz
* merge more small fixes
* fix all tests
* Update frame/nomination-pools/fuzzer/src/call.rs
Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com >
* remove transactional
* fmt
* fix CI
* fmt
* fix build again
* fix CI
Co-authored-by: Gonçalo Pestana <g6pestana@gmail.com >
2022-11-10 02:34:00 +00:00