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

perf: Optimize SafeCast and test TernaryLib #37

Merged
merged 5 commits into from
Jul 30, 2024

Conversation

shuhuiluo
Copy link
Contributor

No description provided.

shuhuiluo added 3 commits May 8, 2024 21:20
This commit includes new test cases for the TernaryLib contract. It tests all the contract's methods with typical and edge cases to ensure they function as expected. Key functionalities include absolute difference, minimum and maximum values, switch conditions, and numerical sorting.
@shuhuiluo shuhuiluo marked this pull request as draft May 9, 2024 04:30
Changed variable naming convention, adjusted downcasting functions, and simplified type casting processes. Removed excess variables and optimized the functions by using direct returns. This improves the performance and maintainability of the library.
@shuhuiluo shuhuiluo marked this pull request as ready for review May 12, 2024 06:38
@shuhuiluo shuhuiluo changed the title Optimize SafeCast and test TernaryLib perf: Optimize SafeCast and test TernaryLib Jul 30, 2024
@shuhuiluo
Copy link
Contributor Author

@gnarlycow Ptal.

@gnarlycow gnarlycow merged commit 063251c into Aperture-Finance:main Jul 30, 2024
1 of 2 checks passed
@shuhuiluo shuhuiluo deleted the safecast branch July 30, 2024 18:20
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.

2 participants