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.
SBP Review - Milestone 3
Pallets
The project under review has made commendable progress, especially in addressing the majority of the action items that emerged from the audit. These actions have been implemented effectively overall.
While going through the code, I identified some areas that could benefit from further refinement, particularly in the handling of percentage calculations. Enhancing the safety and robustness of these calculations would not only improve the accuracy of the operations but also increase the overall resilience of the project. Also there are some minor tweaks that can be applied.
The specific topics can be found in the comments made in the code with this format:
Weigths and benchmarking
The code base was upgraded to release 0.9.39, indicating that you are following the release pace consistently. However, you are still running weights v1 since the weights are still using the methods from_ref_time instead of the from_parts which involves the two fields from weights v2.
I recommend going through the following PR to migrate into Weights v2 properly:
paritytech/substrate#11637
You might also consider creating a weights template like this one to have more control over the weights process generation coming from the benchmarking.
UI
The development of the User Interface (UI) is particularly noteworthy. The design and usability seem to facilitate a smooth user experience, leading users through a successful A to B process. However, I did encounter an issue during the user testing phase. Specifically, while trying to add my profile as a freelancer, the console logged an error:
As a recommendation it would be beneficial to implement a global error catching mechanism that can report errors on the interface, such as:
In case this was implemented already, then it needs to be fixed somehow. Please take into account that as part of SBP reviews we don't do code review of javascript code.