You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yet, when the autopilot indexed the order it didn't find a quote:
2024-02-25T20:22:31.890Z DEBUG service_maintenance:maintenance{block=19306952}: autopilot::database::onchain_order_events: Could not retrieve a quote for order 0x17fff9a7d0dd6fbc477b7b33d998625ce46f20a533f2ee3e53b4a3bfd5e33ec240a50cf069e992aa4536211b23f286ef88752187ffffffff: no_quote
Impact
User didn't get automatically refunded. Required manual claim and led to a bad user experience (where is my money)
To reproduce
Write an e2e that places a native eth order according to a valid quote, but manipulate the AMM before placing the order in a way that it is no longer executable.
Expected behaviour
Automated refund service will refund the order
Additional context
Pointer to where we compute the DB parameters for finding quotes:
Upon further investigation, it turns out that their order referenced a very old quote id (422843629 which is the first 8 bytes of the data field in the order creation event, cf. tenderly), which was no longer valid or available in the db.
The order uid that actually confirmed to their quote is 424048610.
If a quote id is specified but cannot be found we reject this order as QuoteNotFound. So this is expected behaviour...
Problem
This order was placed according to a valid quote:
Yet, when the autopilot indexed the order it didn't find a quote:
Impact
User didn't get automatically refunded. Required manual claim and led to a bad user experience (where is my money)
To reproduce
Write an e2e that places a native eth order according to a valid quote, but manipulate the AMM before placing the order in a way that it is no longer executable.
Expected behaviour
Automated refund service will refund the order
Additional context
Pointer to where we compute the DB parameters for finding quotes:
services/crates/shared/src/event_storing_helpers.rs
Lines 31 to 45 in 60b7210
and the query for finding quotes:
services/crates/database/src/quotes.rs
Lines 103 to 117 in 60b7210
Note, that amounts are stored after fee and thus the sellAmount in the quotes table should have been
100000000000000000
The text was updated successfully, but these errors were encountered: