From 3daf40c408f2bf844db60d853cfa1e0cc78b3cb4 Mon Sep 17 00:00:00 2001 From: Vito <5780819+Tapanito@users.noreply.github.com> Date: Wed, 3 Jun 2026 17:43:30 +0200 Subject: [PATCH] fix: clarifying comment --- src/libxrpl/tx/transactors/vault/VaultWithdraw.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libxrpl/tx/transactors/vault/VaultWithdraw.cpp b/src/libxrpl/tx/transactors/vault/VaultWithdraw.cpp index 09f6328dc7..52631b8abe 100644 --- a/src/libxrpl/tx/transactors/vault/VaultWithdraw.cpp +++ b/src/libxrpl/tx/transactors/vault/VaultWithdraw.cpp @@ -278,10 +278,12 @@ VaultWithdraw::doApply() } auto const dstAcct = ctx_.tx[~sfDestination].value_or(accountID_); - bool const isIssuerRedemption = + bool const redeemingToIssuer = view().rules().enabled(fixCleanup3_2_0) && dstAcct == vaultAsset.getIssuer(); auto const freezeHandling = - isIssuerRedemption ? FreezeHandling::IgnoreFreeze : FreezeHandling::ZeroIfFrozen; + redeemingToIssuer ? FreezeHandling::IgnoreFreeze : FreezeHandling::ZeroIfFrozen; + + // Share freeze checks are transitive. We skip them when withdrawing to the issuer all together. if (accountHolds(view(), accountID_, share, freezeHandling, AuthHandling::IgnoreAuth, j_) < sharesRedeemed) {