@riocrypto/common-server 1.0.1245 → 1.0.1246

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.
@@ -149,7 +149,8 @@ const getPlatformFees = (mongoose, conversionRateToUSD, amountFiat, fiat, proces
149
149
  if ((fiat === common_1.Fiat.MXN && processor === common_1.Processor.SPEI) ||
150
150
  (fiat === common_1.Fiat.MXN && processor === common_1.Processor.Bitso) ||
151
151
  (fiat === common_1.Fiat.USD && processor === common_1.Processor.SPID)) {
152
- if (country === common_1.Country.Mexico) {
152
+ if (country === common_1.Country.Mexico &&
153
+ (user === null || user === void 0 ? void 0 : user.country) === common_1.CountryOfOrigin.Mexico) {
153
154
  platformFeeFiatTax = platformFeeFiat * 0.16;
154
155
  }
155
156
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1245",
3
+ "version": "1.0.1246",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",