-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Streaming Swaps Completed State #7371
Comments
regression of a previous fix |
I've made an improvement to streaming here: #7573 But for this ticket specifically I've been unable to replicate. It seems streaming swaps in the order of 6 figures USD complete within one swap and block (even when I override the memo before broadcasting - there is possibly a minimum on the THORChain side?). For example, I overrode this small swap with 3/6 and it still completed immediately: https://viewblock.io/thorchain/tx/ef485bef45ca5e0cf471b0d7dff8ef8279b0e8e300077d843854d9513a8f8a79 It's possible I need significantly more funds to replicate and fix this issue. @gomesalexandre ser you might have further thoughts on this guy. |
@0xApotheosis I noticed this as well with streaming swaps - think the consensus is indeed small streaming swaps usually do not trigger an actual streaming swap (i.e many intermediary swaps) with 0 (auto) quantity, though overriding it should theoretically work. |
Bad bot GitHub, #7573 didn't close this |
FYI @0xApotheosis while this is super hard to tackle without being able to repro actual streaming swaps, the root cause here is the same as #7506: The way this was solved for SAFE Txs was through Think the exact same could be done here, though once again, without actual streaming swaps, that would be hard to verify working, but if anything should not make things worse for regular swaps and may at worse make streaming swaps stuck in pending state: We could introspect both the Actually rubber ducking myself here while writing this, |
$3000 RUNE -> USDC.AVA will trigger streaming swap |
Outcomes from testing this issue
|
TL;DR more testing is needed with bigger funds.
const hasOutboundTx = latestOutTx?.chain !== 'THOR' This is likely either THE bug, or one of multiple. The correct logic should be: const hasOutboundTx = latestOutTx !== undefined && latestOutTx.chain !== 'THOR' Due to the issue above, the bug is likely triggered in the following case where |
Successful reproduction of the issue. First half Second half |
I thought we had a ticket for this but not sure where
A streaming swap shows completed after the initial TX is confirmed even though it is still streaming:
AC
The text was updated successfully, but these errors were encountered: