@0dotxyz/p0-ts-sdk 2.6.0-alpha.4 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -78924,7 +78924,7 @@ async function makeVaultWithdrawIx(params) {
78924
78924
  const [withdrawEscrow] = deriveGammaWithdrawEscrow(user, lpVault);
78925
78925
  const [withdrawReceipt] = deriveGammaWithdrawReceipt(user, lpVault);
78926
78926
  const userShareAta = deriveGammaAta(vault.sharesMint, user, tokenProgram);
78927
- const feeRecipientAccount = deriveGammaAta(vault.assetsMint, vault.feeRecipient, tokenProgram);
78927
+ const feeRecipientAccount = vault.feeRecipient.equals(web3_js.PublicKey.default) ? deriveGammaAta(vault.assetsMint, vault.feeRecipient, tokenProgram) : vault.feeRecipient;
78928
78928
  const escrowAssetsAccount = deriveGammaAta(vault.assetsMint, withdrawEscrow, tokenProgram);
78929
78929
  const escrowSharesAccount = deriveGammaAta(vault.sharesMint, withdrawEscrow, tokenProgram);
78930
78930
  const sharesNative = new BN9__default.default(new BigNumber3__default.default(sharesAmount).toFixed(0));