@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.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -317,6 +317,9 @@ var SolanaPaymentStrategy = class {
|
|
|
317
317
|
}
|
|
318
318
|
const expectedFee = calculateProtocolFee(data.amount, config.feeBps);
|
|
319
319
|
const treasury = config.treasury;
|
|
320
|
+
if (expectedFee === 0) {
|
|
321
|
+
return null;
|
|
322
|
+
}
|
|
320
323
|
const { fee_address, fee_amount } = data;
|
|
321
324
|
const hasFeeAddress = typeof fee_address === "string" && fee_address.length > 0;
|
|
322
325
|
const hasFeeAmount = typeof fee_amount === "number" && fee_amount > 0;
|