@streamflow/distributor 11.0.0-alpha.p334.fcf4225 → 11.0.1

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.
@@ -4931,7 +4931,7 @@ var SolanaAlignedDistributorClient = class extends BaseDistributorClient {
4931
4931
  async getNewDistributorInstruction(data, accounts) {
4932
4932
  const { mint, clawbackReceiver, tokenProgram, admin } = accounts;
4933
4933
  const distributorKey = getDistributorPda(this.merkleDistributorProgram.programId, common.pk(accounts.mint), data.version);
4934
- const tokenVaultKey = splToken.getAssociatedTokenAddressSync(common.pk(mint), common.pk(admin), true, common.pk(tokenProgram));
4934
+ const tokenVaultKey = splToken.getAssociatedTokenAddressSync(common.pk(mint), distributorKey, true, common.pk(tokenProgram));
4935
4935
  this.validateDistributorArgs(data);
4936
4936
  const alignedArgs = this.getNewAlignedDistributorArgs(data);
4937
4937
  const oracle = data.oracleAddress ? new web3_js.PublicKey(data.oracleAddress) : getTestOraclePda(this.alignedProxyProgram.programId, common.pk(mint), common.pk(admin));