fix: clarifying comment

This commit is contained in:
Vito
2026-06-03 17:43:30 +02:00
parent 43fc095b1a
commit 3daf40c408

View File

@@ -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)
{