[x] Adjust all transition inner functions to handle transition
[x] Update all root functions -> normal functions, that anyone can call to transition the project
[x] Rewards payout for evaluators based on total value evaluated, so removal of evaluators iterator
[x] Remove Y variable from rewards payout
Todo:
[x] Implement all simplifications
[x] Fix all the TODO Simplification comments
[x] Remove random end block
[x] Update tests based on simplifications
[ ] Update benchmarks + used weights + weight returns of functions
[x] General cleanup
[ ] Test with chopsticks if everything functions correctly (especially round transitions)
[ ] Update Felix on breaking changes, so we can prepare front-end
[ ] Create offchain worker script that queries project states and round durations and trigger transition function once round if over.
[ ] Test on Rolimec
Important things to test:
[x] Does the settlement of failed bids work properly using the settle_failed_bids function. See candlestick commit
[x] Does refunding of either Partial bid or Bid with original_price > wap work correctly using settle_succesful bid. See candlestick commit
[x] Double check new wap calculation based on bucket. Already one test added.
[x] If all round transitions are not set up correctly, with the correct checks. Check if not possible to transition early, or call it again after round already transitioned with the new round_duration structure and generalized transition function.
[x] Test the merge of community + remainder round. See following lines for important changes:
[x] Buy last CT in com/rem round if ticket size < min_ticket_size. here
[x] Active bidder can participate after status::CommunityRound(BLOCK_NUMBER). See round transition and check
[x] The full new funding_end structure where project decision has been removed.
The following simplifications are proposed:
Todo:
TODO Simplification
commentsImportant things to test: