Skip to content

Commit

Permalink
solana: Update fee token comment to include required burn changes (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
nvsriram committed Aug 9, 2024
1 parent dcd0ac3 commit e80827c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ pub fn transfer_burn<'info>(
// would be lost.
// To support fee tokens, we would first transfer the amount, _then_ assert
// that the resulting amount has no dust (instead of removing dust before
// the transfer like we do now).
// the transfer like we do now). We would also need to burn the new amount
// _after_ paying fees so as to not burn more than what was transferred to
// the custody.
if after != before {
return Err(NTTError::BadAmountAfterBurn.into());
}
Expand Down

0 comments on commit e80827c

Please sign in to comment.