Skip to content

Conversation

@ananas-block
Copy link
Contributor

No description provided.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 30, 2025

Important

Review skipped

Too many files!

39 files out of 189 files are above the max files limit of 150.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch jorrit/feat-more-ctoken-extensions-opt-compressible-ctoken

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

}

// Handle withheld_transfer_fee (always add, not overwrite)
if withheld_transfer_fee > 0 {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: add comment:

Defensive so that it is always possible to compress and decompress ctoken accounts. It should not be possible to set withheld_transfer_fee to non zero.

@ananas-block ananas-block force-pushed the jorrit/feat-more-ctoken-extensions-opt-compressible-ctoken branch from 8c0b2e7 to 3640e91 Compare December 31, 2025 16:25
Comment on lines +8 to +18
/// Calculates the size of a ctoken account based on which extensions are present.
///
/// Note: Compression info is now embedded in the base struct (CTokenZeroCopyMeta),
/// so there's no separate compressible extension parameter.
///
/// # Arguments
/// * `extensions` - Optional slice of extension configs
///
/// # Returns
/// * `Ok(usize)` - The total account size in bytes
/// * `Err(ZeroCopyError)` - If extension size calculation fails
Copy link
Contributor

Choose a reason for hiding this comment

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

is this still up2date?

@ananas-block ananas-block force-pushed the jorrit/feat-more-ctoken-extensions-opt-compressible-ctoken branch from 3640e91 to 89dde48 Compare January 5, 2026 18:18
@ananas-block ananas-block merged commit 74f3bac into main Jan 5, 2026
31 of 32 checks passed
@ananas-block ananas-block deleted the jorrit/feat-more-ctoken-extensions-opt-compressible-ctoken branch January 5, 2026 19:52
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