@elisym/sdk 0.4.0 → 0.4.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 CHANGED
@@ -292,6 +292,9 @@ var SolanaPaymentStrategy = class {
292
292
  }
293
293
  const expectedFee = calculateProtocolFee(data.amount, config.feeBps);
294
294
  const treasury = config.treasury;
295
+ if (expectedFee === 0) {
296
+ return null;
297
+ }
295
298
  const { fee_address, fee_amount } = data;
296
299
  const hasFeeAddress = typeof fee_address === "string" && fee_address.length > 0;
297
300
  const hasFeeAmount = typeof fee_amount === "number" && fee_amount > 0;