Skip to content

Conversation

febo
Copy link
Collaborator

@febo febo commented Sep 5, 2025

Problem

SIMD-0194 will deprecate the exemption_threshold value and set it to 1.0. This will "break" the current logic to avoid f64 operations in the minimum balance calculation.

Solution

Use the SIMD-0194 value to avoid f64 operations. This PR also adds deprecation notes for changes proposed in SIMD-0194.

@febo febo marked this pull request as ready for review September 12, 2025 01:29
@febo febo requested a review from joncinque September 12, 2025 01:29
@febo febo force-pushed the febo/simd-0194-exemption-threshold branch from b093fe3 to eb7160f Compare September 12, 2025 09:43
Copy link
Collaborator

@joncinque joncinque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

Comment on lines +175 to 176
#[allow(deprecated)]
pub fn due_amount(&self, data_len: usize, years_elapsed: f64) -> u64 {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be done in future work, but how about just deprecating this function?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that is a good point. We should be using the SDK crate for rent in the very near future, so we can make these changes there.

@febo febo merged commit c5eb33f into main Sep 13, 2025
11 checks passed
@febo febo deleted the febo/simd-0194-exemption-threshold branch September 13, 2025 00:36
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