@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 +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -78896,7 +78896,7 @@ async function makeVaultWithdrawIx(params) {
|
|
|
78896
78896
|
const [withdrawEscrow] = deriveGammaWithdrawEscrow(user, lpVault);
|
|
78897
78897
|
const [withdrawReceipt] = deriveGammaWithdrawReceipt(user, lpVault);
|
|
78898
78898
|
const userShareAta = deriveGammaAta(vault.sharesMint, user, tokenProgram);
|
|
78899
|
-
const feeRecipientAccount = deriveGammaAta(vault.assetsMint, vault.feeRecipient, tokenProgram);
|
|
78899
|
+
const feeRecipientAccount = vault.feeRecipient.equals(PublicKey.default) ? deriveGammaAta(vault.assetsMint, vault.feeRecipient, tokenProgram) : vault.feeRecipient;
|
|
78900
78900
|
const escrowAssetsAccount = deriveGammaAta(vault.assetsMint, withdrawEscrow, tokenProgram);
|
|
78901
78901
|
const escrowSharesAccount = deriveGammaAta(vault.sharesMint, withdrawEscrow, tokenProgram);
|
|
78902
78902
|
const sharesNative = new BN9(new BigNumber3(sharesAmount).toFixed(0));
|