@theliem/xmarket-sdk 4.2.1 → 4.2.2

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 CHANGED
@@ -2172,7 +2172,8 @@ ${logs.join("\n")}`);
2172
2172
  { pubkey: noStatus, isSigner: false, isWritable: true }
2173
2173
  );
2174
2174
  }
2175
- if (yesSigned.order.fee.gtn(0) && this.programIds.feeManagement && this.feeConfigOwner) {
2175
+ const hasFee = yesSigned.order.fee.gtn(0) || noMakers.some((m) => m.order.fee.gtn(0));
2176
+ if (hasFee && this.programIds.feeManagement && this.feeConfigOwner) {
2176
2177
  const companyAddr = await this.companyAddress();
2177
2178
  const refVault = await this.referralVault();
2178
2179
  if (companyAddr && refVault) {