@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.js +2 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2134,7 +2134,7 @@ ${logs.join("\n")}`);
|
|
|
2134
2134
|
* remaining_accounts per NO maker (6):
|
|
2135
2135
|
* [maker, order_record, buyer_no_token, buyer_no_collateral, buyer_no_position, no_order_status]
|
|
2136
2136
|
*/
|
|
2137
|
-
async _buildMintIx(yesSigned, noMakers, collateralMint, operator, payer,
|
|
2137
|
+
async _buildMintIx(yesSigned, noMakers, collateralMint, operator, payer, opts) {
|
|
2138
2138
|
const condition = yesSigned.order.condition;
|
|
2139
2139
|
const taker = yesSigned.order.maker;
|
|
2140
2140
|
const takerNonce = yesSigned.order.nonce;
|
|
@@ -2191,7 +2191,6 @@ ${logs.join("\n")}`);
|
|
|
2191
2191
|
}
|
|
2192
2192
|
}
|
|
2193
2193
|
}
|
|
2194
|
-
const resolvedFeeRecipient = feeRecipient ?? clobUsdcAta;
|
|
2195
2194
|
return this.program.methods.matchMintOrders(takerNonce, fillAmount, true).accounts({
|
|
2196
2195
|
operator,
|
|
2197
2196
|
payer,
|
|
@@ -2203,7 +2202,6 @@ ${logs.join("\n")}`);
|
|
|
2203
2202
|
takerYesToken,
|
|
2204
2203
|
takerYesPosition,
|
|
2205
2204
|
takerOrderStatus,
|
|
2206
|
-
feeRecipient: resolvedFeeRecipient,
|
|
2207
2205
|
clobUsdcAta,
|
|
2208
2206
|
clobYesAta,
|
|
2209
2207
|
clobNoAta,
|
|
@@ -2233,7 +2231,7 @@ ${logs.join("\n")}`);
|
|
|
2233
2231
|
const [noMint] = PDA.noMint(condition, this.programIds);
|
|
2234
2232
|
const clobYesAta = splToken.getAssociatedTokenAddressSync(yesMint, clobConfig, true, splToken.TOKEN_PROGRAM_ID);
|
|
2235
2233
|
const clobNoAta = splToken.getAssociatedTokenAddressSync(noMint, clobConfig, true, splToken.TOKEN_PROGRAM_ID);
|
|
2236
|
-
const matchIx = await this._buildMintIx(yesSigned, noMakers, collateralMint, operatorWallet.publicKey, this.walletPubkey
|
|
2234
|
+
const matchIx = await this._buildMintIx(yesSigned, noMakers, collateralMint, operatorWallet.publicKey, this.walletPubkey);
|
|
2237
2235
|
await this._ensureClobOutcomeAtas(yesMint, noMint, clobConfig, clobYesAta, clobNoAta);
|
|
2238
2236
|
const sig = await this.sendMatchTx([matchIx], lookupTable, operatorWallet);
|
|
2239
2237
|
return { signature: sig };
|