Skip to content

Conversation

@febo
Copy link
Contributor

@febo febo commented Jan 18, 2026

Problem

Currently it is not possible to use a delegate to unwrap_lamports.

Solution

Add delegate support to unwrap_lamports. The delegate implementation works similarly to how it works on transfer:

  • delegates can only unwrap up to the amount delegated
  • when the delegated amount reaches 0, the delegate is cleared

@febo febo requested a review from joncinque January 20, 2026 10:59
joncinque
joncinque previously approved these changes Jan 21, 2026
Copy link
Contributor

@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 great to me! Just a tiny nit, which you can take or leave

@febo febo merged commit 9ba3e55 into main Jan 28, 2026
17 checks passed
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