@streamflow/distributor 11.0.0-alpha.p334.fcf4225 → 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.
@@ -4902,7 +4902,7 @@ var SolanaAlignedDistributorClient = class extends BaseDistributorClient {
4902
4902
  async getNewDistributorInstruction(data, accounts) {
4903
4903
  const { mint, clawbackReceiver, tokenProgram, admin } = accounts;
4904
4904
  const distributorKey = getDistributorPda(this.merkleDistributorProgram.programId, common.pk(accounts.mint), data.version);
4905
- const tokenVaultKey = splToken.getAssociatedTokenAddressSync(common.pk(mint), common.pk(admin), true, common.pk(tokenProgram));
4905
+ const tokenVaultKey = splToken.getAssociatedTokenAddressSync(common.pk(mint), distributorKey, true, common.pk(tokenProgram));
4906
4906
  this.validateDistributorArgs(data);
4907
4907
  const alignedArgs = this.getNewAlignedDistributorArgs(data);
4908
4908
  const oracle = data.oracleAddress ? new web3_js.PublicKey(data.oracleAddress) : getTestOraclePda(this.alignedProxyProgram.programId, common.pk(mint), common.pk(admin));