@streamflow/distributor 11.0.0-alpha.p334.ea83918 → 11.0.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.
@@ -4896,7 +4896,7 @@ var SolanaAlignedDistributorClient = class extends BaseDistributorClient {
4896
4896
  async getNewDistributorInstruction(data, accounts) {
4897
4897
  const { mint, clawbackReceiver, tokenProgram, admin } = accounts;
4898
4898
  const distributorKey = getDistributorPda(this.merkleDistributorProgram.programId, pk(accounts.mint), data.version);
4899
- const tokenVaultKey = getAssociatedTokenAddressSync(pk(mint), pk(admin), true, pk(tokenProgram));
4899
+ const tokenVaultKey = getAssociatedTokenAddressSync(pk(mint), distributorKey, true, pk(tokenProgram));
4900
4900
  this.validateDistributorArgs(data);
4901
4901
  const alignedArgs = this.getNewAlignedDistributorArgs(data);
4902
4902
  const oracle = data.oracleAddress ? new PublicKey(data.oracleAddress) : getTestOraclePda(this.alignedProxyProgram.programId, pk(mint), pk(admin));