Skip to content

Custom refund address in swap memo #check-lint-warning

Eridanus (9R) requested to merge eridanus/1568-issue into develop

Adds ability to set a custom refund address in the swap memo. If refund address is present and swap is refunded, funds will be sent to the refund address instead of the sender.

Memo format: =:target_asset:to_address/refund_address:limit... e.g. (swap from ETH -> BTC with custom refund address) =:BTC.BTC:bc1q6527vxxqjpq80la2l0sw7hay3lj6dz07zs6gzl/0x7a093cebfa77403672d68e1c22d0681400a36682

This will make interoperating with EVM-based protocols easier, as usually inbounds will come from their smart contract, not the user's EOA. This will allow external protocols to set their user's address as the refund address so they receive the funds, not the smart contract.

Edited by Eridanus (9R)

Merge request reports