Skip to content

Commit

Permalink
Merge branch 'main' into 0.2.0-beta.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kev1n-peters authored Aug 14, 2024
2 parents 7c6ece0 + e80827c commit a365824
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 a365824

Please sign in to comment.