@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.
package/dist/esm/index.js CHANGED
@@ -4925,7 +4925,7 @@ var SolanaAlignedDistributorClient = class extends BaseDistributorClient {
4925
4925
  async getNewDistributorInstruction(data, accounts) {
4926
4926
  const { mint, clawbackReceiver, tokenProgram, admin } = accounts;
4927
4927
  const distributorKey = getDistributorPda(this.merkleDistributorProgram.programId, pk(accounts.mint), data.version);
4928
- const tokenVaultKey = getAssociatedTokenAddressSync(pk(mint), pk(admin), true, pk(tokenProgram));
4928
+ const tokenVaultKey = getAssociatedTokenAddressSync(pk(mint), distributorKey, true, pk(tokenProgram));
4929
4929
  this.validateDistributorArgs(data);
4930
4930
  const alignedArgs = this.getNewAlignedDistributorArgs(data);
4931
4931
  const oracle = data.oracleAddress ? new PublicKey(data.oracleAddress) : getTestOraclePda(this.alignedProxyProgram.programId, pk(mint), pk(admin));