The following changes were made by the replace_file_content tool to: /root/aadharbot/modules/pay/services/paymentService.js. If relevant, proactively run terminal commands to execute this code for the USER. Don't ask for permission.
[diff_block_start]
@@ -834,8 +834,8 @@
} else {
- // Apply Credits
- const creditsToAdd = Math.floor(expectedAmount);
+ // Apply Credits at rate: 1 Credit = ₹60
+ const creditsToAdd = Math.max(1, Math.floor(expectedAmount / 60));
if (!process.env.DATABASE_URL) {
let db = {};
if (fs.existsSync('db.json')) {
@@ -882,8 +882,8 @@
`Aapka pending deposit successful ho gaya hai!\n\n` +
`🆔 Order ID: ${payment.orderId}\n` +
`💵 Amount Paid: ₹${payment.expectedAmount}\n` +
- `🪙 Credits Added: ${Math.floor(payment.expectedAmount)} 🪙\n` +
- `💰 New Wallet Balance: ${finalCredits} 🪙\n` +
+ `🪙 Credits Added: ${Math.max(1, Math.floor(payment.expectedAmount / 60))} Credits 🪙\n` +
+ `💰 New Wallet Balance: ${finalCredits} Credits 🪙\n` +
`━━━━━━━━━━━━━━━━━━━━━━━━━━\n` +
`✨ Premium features activate ho chuke hain. Aap query continue kar sakte hain.`;
[diff_block_end]
Please note that the above snippet only shows the MODIFIED lines from the last change. It shows up to 3 lines of unchanged lines before and after the modified lines. The actual file contents may have many more lines not shown.