privacycash 1.1.23 → 1.1.24

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.
@@ -53,6 +53,9 @@ export async function withdrawSPL({ recipient, lightWasm, storage, publicKey, co
53
53
  let mintInfo = await getMint(connection, token.pubkey);
54
54
  let units_per_token = 10 ** mintInfo.decimals;
55
55
  let withdraw_fee_rate = await getConfig('withdraw_fee_rate');
56
+ if (token.name === 'store') {
57
+ withdraw_fee_rate = 0;
58
+ }
56
59
  let withdraw_rent_fees = await getConfig('rent_fees');
57
60
  let token_rent_fee = withdraw_rent_fees[token.name];
58
61
  if (!token_rent_fee) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "privacycash",
3
- "version": "1.1.23",
3
+ "version": "1.1.24",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "repository": "https://github.com/Privacy-Cash/privacy-cash-sdk",
@@ -48,4 +48,4 @@
48
48
  "typescript": "^5.9.2",
49
49
  "vitest": "^3.2.4"
50
50
  }
51
- }
51
+ }
@@ -80,6 +80,9 @@ export async function withdrawSPL({ recipient, lightWasm, storage, publicKey, co
80
80
  let units_per_token = 10 ** mintInfo.decimals
81
81
 
82
82
  let withdraw_fee_rate = await getConfig('withdraw_fee_rate')
83
+ if (token.name === 'store') {
84
+ withdraw_fee_rate = 0
85
+ }
83
86
  let withdraw_rent_fees = await getConfig('rent_fees')
84
87
  let token_rent_fee = withdraw_rent_fees[token.name]
85
88
  if (!token_rent_fee) {