Skip to content

Conversation

DeFiTON
Copy link
Collaborator

@DeFiTON DeFiTON commented Aug 23, 2025

Summary

  • add centralized whitelist for assets, networks, and history types
  • validate callback data against whitelist before performing actions
  • test incorrect callback data handling

Testing

  • php tests/callback_data_validation_test.php
  • php -l tgbot.php

https://chatgpt.com/codex/tasks/task_e_68a9e56ad23c832cabde8efe85f1c21c

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bugbot free trial expires on September 6, 2025
Learn more in the Cursor dashboard.

<?php
$allowedAssets = ['TON', 'TGR'];
$allowedNetworks = ['TON', 'BEP20'];
$allowedHistoryTypes = ['add', 'pauout', 'trans', 'exchange'];
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Payout History Validation Fails Due to Typo

The $allowedHistoryTypes array includes 'pauout' instead of 'payout'. This typo causes legitimate payout history requests to be rejected by the validation, preventing users from viewing their payout history.

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant