@riocrypto/common-server 1.0.1595 → 1.0.1596

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.
@@ -22,19 +22,14 @@ const getProcessorFees = (processor, amountFiat, conversionRateFromUSD, side, fi
22
22
  return amountFiat * 0.006;
23
23
  }
24
24
  else if (processor === common_1.Processor.Interbank) {
25
- if (side === common_1.Side.Buy) {
26
- return amountFiat * 0.005;
25
+ let baseFee = amountFiat * 0.0025;
26
+ if (fiat === common_1.Fiat.USD && side === common_1.Side.Buy) {
27
+ baseFee += 1.16;
27
28
  }
28
- else {
29
- let baseFee = amountFiat * 0.005;
30
- if (fiat === common_1.Fiat.PEN) {
31
- baseFee += 4.47;
32
- }
33
- else if (fiat === common_1.Fiat.USD) {
34
- baseFee += 1.16 * conversionRateFromUSD;
35
- }
36
- return baseFee;
29
+ else if (fiat === common_1.Fiat.PEN) {
30
+ baseFee += 20;
37
31
  }
32
+ return baseFee;
38
33
  }
39
34
  else if (processor === common_1.Processor.SWIFT) {
40
35
  return 25 * conversionRateFromUSD;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1595",
3
+ "version": "1.0.1596",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",