Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Fix confidential self transfer with fees #3193

Conversation

samkim-crypto
Copy link
Contributor

Currently, a self-transfer with fees using the confidential extension incurs a fee. This PR modifies the confidential transfer processor logic so that fee amount is not deducted for self-transfers.

I initially thought that this would require an involved update to the zk-token-sdk due to the way fee amount is encrypted in the transfer amount. It turned out that this could be fixed rather simply without any updates to the sdk.

@samkim-crypto samkim-crypto merged commit 2ad468f into solana-labs:master May 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant