-
Notifications
You must be signed in to change notification settings - Fork 9
✨ Use PLMC amount in Evaluation #484
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
Closed
Closed
Conversation
This file contains hidden or 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
Member
Author
This was referenced May 8, 2025
a1105c5 to
3fe6433
Compare
359ca8a to
15d088b
Compare
8520fc9 to
27f9807
Compare
15d088b to
67962d0
Compare
27f9807 to
fd6baea
Compare
fd6baea to
01f9671
Compare
Merged
01f9671 to
324253e
Compare
a514ee5 to
1e5802c
Compare
324253e to
8f88296
Compare
1e5802c to
a4afbb3
Compare
20c73fc to
67b7d3f
Compare
a4afbb3 to
f6c04d2
Compare
33189e7 to
94a27e5
Compare
f6c04d2 to
7e9c5ce
Compare
aa724ab to
fce9db1
Compare
This was referenced May 12, 2025
dastansam
approved these changes
May 19, 2025
Contributor
dastansam
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks ok, but no integration tests (?)
fce9db1 to
f9cceec
Compare
8b86a93 to
b244067
Compare
f9cceec to
2ffd8f6
Compare
b244067 to
e9c508f
Compare
2ffd8f6 to
0c2cd35
Compare
0c2cd35 to
8c809b8
Compare
e9c508f to
1e2f49d
Compare
Closed
8c809b8 to
7714174
Compare
093bd7c to
bda4556
Compare
7714174 to
909a092
Compare
909a092 to
ac45b29
Compare
bda4556 to
18ad867
Compare
18ad867 to
f6c2185
Compare
ac45b29 to
5559689
Compare
5559689 to
ac45b29
Compare
f6c2185 to
18ad867
Compare
18ad867 to
25a8367
Compare
ac45b29 to
7ba84ad
Compare
7ba84ad to
8f206da
Compare
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.

This pull request refactors the evaluation logic in the
fundingpallet, transitioning from using USD-based calculations to PLMC-based calculations in the evaluation round. The changes streamline the handling of evaluation bonds, improve consistency, and update related tests and utilities to align with the new approach.Core Refactoring: Transition to PLMC-based Calculations
usd_amountwithplmc_bondin thedo_evaluatefunction and related methods, ensuring all evaluation logic now operates using PLMC values. (pallets/funding/src/functions/2_evaluation.rs: [1] [2] [3]EvaluationParamsstruct to useplmc_amountinstead ofusd_amount, reflecting the shift to PLMC-based evaluations. (pallets/funding/src/instantiator/types.rs: pallets/funding/src/instantiator/types.rsL100-R126)Utility and Helper Updates
generate_evaluations_from_total_usdtogenerate_evaluations_from_total_plmc, ensuring compatibility with PLMC-based logic. (pallets/funding/src/instantiator/calculations.rs: pallets/funding/src/instantiator/calculations.rsL356-R393)pallets/funding/src/instantiator/calculations.rs: pallets/funding/src/instantiator/calculations.rsL33-R33)Tests and Mock Adjustments
pallets/funding/src/tests/2_evaluation.rs: [1] [2]HOURSfrom the mock configuration to clean up the codebase. (pallets/funding/src/mock.rs: pallets/funding/src/mock.rsL282-L283)Miscellaneous Improvements
BlockProviderFor<T>as an alias for the block number provider, improving readability and consistency. (pallets/funding/src/lib.rs: pallets/funding/src/lib.rsR139)iter::zip, to streamline the code. (pallets/funding/src/instantiator/mod.rs: pallets/funding/src/instantiator/mod.rsL21-R21)