wavlake/catalog

[ACCOUNTING] Outgoing Keysend Callback

Closed this issue · 2 comments

  • Determine all side effects and add to this issue
  • Migrate legacy code to new accounting service controller
  • Identify all existing code that uses the legacy endpoint and create a follow up ticket to update the call sites to use the new endpoint

This callback route is called when an outgoing keysend payment is complete.

The controller logic looks up the keysend record in the external_payment table, marks it as is_pending false, and updates its status.

If the payment was successful, the sender's balance is adjusted accordingly. If unsuccessful, the sender's balance is left unchanged.

ZBD is the only consumer of this endpoint, there are no clients to update.