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

Vstam1/simplifications #358

Merged
merged 7 commits into from
Aug 23, 2024
Merged

Vstam1/simplifications #358

merged 7 commits into from
Aug 23, 2024

Conversation

vstam1
Copy link
Collaborator

@vstam1 vstam1 commented Jul 15, 2024

The following simplifications are proposed:

  • Remove Candlestick Auction
  • Merge Community Remainder Round
  • Remove Project decision
  • Remove automatic transition for transition
    • Remove on_initialize logic
    • Adjust all transition inner functions to handle transition
    • Update all root functions -> normal functions, that anyone can call to transition the project
  • Rewards payout for evaluators based on total value evaluated, so removal of evaluators iterator
  • Remove Y variable from rewards payout

Todo:

  • Implement all simplifications
  • Fix all the TODO Simplification comments
  • Remove random end block
  • Update tests based on simplifications
  • Update benchmarks + used weights + weight returns of functions
  • 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:

  • Does the settlement of failed bids work properly using the settle_failed_bids function. See candlestick commit
  • Does refunding of either Partial bid or Bid with original_price > wap work correctly using settle_succesful bid. See candlestick commit
  • Double check new wap calculation based on bucket. Already one test added.
  • 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.
  • Test the merge of community + remainder round. See following lines for important changes:
    • Buy last CT in com/rem round if ticket size < min_ticket_size. here
    • Active bidder can participate after status::CommunityRound(BLOCK_NUMBER). See round transition and check
  • The full new funding_end structure where project decision has been removed.

Copy link
Contributor

JuaniRios commented Jul 22, 2024

@JuaniRios JuaniRios changed the base branch from main to 07-08-runtime_apis July 22, 2024 14:33
@JuaniRios JuaniRios mentioned this pull request Jul 22, 2024
Base automatically changed from 07-08-runtime_apis to main July 22, 2024 15:02
@JuaniRios JuaniRios force-pushed the vstam1/simplifications branch 2 times, most recently from b5c3032 to 615d723 Compare July 22, 2024 15:03
@JuaniRios JuaniRios marked this pull request as ready for review August 5, 2024 14:50
@JuaniRios JuaniRios requested a review from lrazovic August 5, 2024 14:51
Copy link
Contributor

JuaniRios commented Aug 23, 2024

Merge activity

@JuaniRios JuaniRios merged commit 946989e into main Aug 23, 2024
1 check passed
@JuaniRios JuaniRios deleted the vstam1/simplifications branch August 23, 2024 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants