@rapay/mcp-server 1.2.1 → 1.2.2
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/handlers.js +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/handlers.js
CHANGED
|
@@ -498,9 +498,9 @@ async function executeSend(args) {
|
|
|
498
498
|
validateSendArgs(args);
|
|
499
499
|
// Convert cents to dollars for CLI (CLI expects dollar amount)
|
|
500
500
|
const amountDollars = args.amount / 100;
|
|
501
|
-
// Calculate fee breakdown using integer math to avoid floating point errors
|
|
502
|
-
// 2% Ra Pay application fee:
|
|
503
|
-
const rapayFeeCents = Math.
|
|
501
|
+
// Calculate fee breakdown using true integer math to avoid floating point errors
|
|
502
|
+
// 2% Ra Pay application fee: integer ceiling of (amount_cents * 2 / 100)
|
|
503
|
+
const rapayFeeCents = Math.floor((args.amount * 2 + 99) / 100);
|
|
504
504
|
const recipientReceivesCents = args.amount - rapayFeeCents;
|
|
505
505
|
// Convert to dollars for display (after integer calculation)
|
|
506
506
|
const rapayFee = rapayFeeCents / 100;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED