@theliem/xmarket-sdk 4.2.0 → 4.2.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.
package/dist/index.mjs CHANGED
@@ -2108,7 +2108,7 @@ ${logs.join("\n")}`);
2108
2108
  * remaining_accounts per NO maker (6):
2109
2109
  * [maker, order_record, buyer_no_token, buyer_no_collateral, buyer_no_position, no_order_status]
2110
2110
  */
2111
- async _buildMintIx(yesSigned, noMakers, collateralMint, operator, payer, feeRecipient, opts) {
2111
+ async _buildMintIx(yesSigned, noMakers, collateralMint, operator, payer, opts) {
2112
2112
  const condition = yesSigned.order.condition;
2113
2113
  const taker = yesSigned.order.maker;
2114
2114
  const takerNonce = yesSigned.order.nonce;
@@ -2165,7 +2165,6 @@ ${logs.join("\n")}`);
2165
2165
  }
2166
2166
  }
2167
2167
  }
2168
- const resolvedFeeRecipient = feeRecipient ?? clobUsdcAta;
2169
2168
  return this.program.methods.matchMintOrders(takerNonce, fillAmount, true).accounts({
2170
2169
  operator,
2171
2170
  payer,
@@ -2177,7 +2176,6 @@ ${logs.join("\n")}`);
2177
2176
  takerYesToken,
2178
2177
  takerYesPosition,
2179
2178
  takerOrderStatus,
2180
- feeRecipient: resolvedFeeRecipient,
2181
2179
  clobUsdcAta,
2182
2180
  clobYesAta,
2183
2181
  clobNoAta,
@@ -2207,7 +2205,7 @@ ${logs.join("\n")}`);
2207
2205
  const [noMint] = PDA.noMint(condition, this.programIds);
2208
2206
  const clobYesAta = getAssociatedTokenAddressSync(yesMint, clobConfig, true, TOKEN_PROGRAM_ID);
2209
2207
  const clobNoAta = getAssociatedTokenAddressSync(noMint, clobConfig, true, TOKEN_PROGRAM_ID);
2210
- const matchIx = await this._buildMintIx(yesSigned, noMakers, collateralMint, operatorWallet.publicKey, this.walletPubkey, _feeRecipient);
2208
+ const matchIx = await this._buildMintIx(yesSigned, noMakers, collateralMint, operatorWallet.publicKey, this.walletPubkey);
2211
2209
  await this._ensureClobOutcomeAtas(yesMint, noMint, clobConfig, clobYesAta, clobNoAta);
2212
2210
  const sig = await this.sendMatchTx([matchIx], lookupTable, operatorWallet);
2213
2211
  return { signature: sig };