Files
pezkuwi-telegram-miniapp/supabase/functions/process-deposits
SatoshiQaziMuhammed a08754f705 fix(deposits): stop sending an empty TronGrid key and log TronGrid failures (#32)
Both TRC20 deposit functions sent `TRON-PRO-API-KEY: ''` when the key was
unset, and check-deposits returned silently on any non-2xx TronGrid
response, so a 401 or 429 skipped a user's deposits with nothing in the
logs.

- send the key header only when TRONGRID_API_KEY is set; warn once if not
- check-deposits logs the status and deposit index on a failed call
- process-deposits records the TronGrid status in results.trc20.errors
- type the batch item in check-deposits (deno check TS7006, pre-existing)
2026-10-17 20:46:08 +04:00
..