Skip to content

[stagenet testing] Refund user from dropped Swap Out txs

Eridanus (9R) requested to merge eridanus/refund_stuck_txs into develop

Stagenet Testing of Refund Store Migration

A user sent two 4,500 RUNE swap out txs (to USDT), but the external asset matching had a conflict and the outbounds were dropped. Txs:

  1. https://viewblock.io/thorchain/tx/B07A6B1B40ADBA2E404D9BCE1BEF6EDE6F70AD135E83806E4F4B6863CF637D0B
  2. https://viewblock.io/thorchain/tx/4795A3C036322493A9692B5D44E7D4FF29C3E2C1E848637184E98FE8B05FD06E

Since the outbounds were dropped this means the RUNE was added to the pool, the ETH was removed from the pool (due to the swap), but the ETH was never deducted from the Asgard vault since the outbound was never observed. So to reverse this, the store migration:

  1. Credits the pool the removed ETH
  2. Deducts from the pool the added RUNE
  3. Sends the user back their RUNE from the Asgard Module

This PR tests the refund functionality on Stagenet with a re-created dropped swap out: https://stagenet-thornode.ninerealms.com/thorchain/tx/5FAAE55F9043580A1387E66CB9D749A5D262CED5F6F654640918149F71D8E4D6/signers

Edited by Eridanus (9R)

Merge request reports