mirror of
https://github.com/luxfi/dex.git
synced 2026-09-24 00:26:31 +00:00
A price is a fan-out. The edge limits requests — thirty a second from one address — and each may name fifty tokens, read at two sizes against two numéraires across every arm. Nothing bounded what came out the other side, and what comes out lands on public endpoints we hold no account with; being refused there takes quoting down for everybody, on every chain. So the budget is sixteen questions in flight against one chain for the whole process, rather than eight per request multiplied by however many requests arrive. It is taken around a single reading and not around a whole price, because a price against the hub waits for the hub's own price, and a slot held across that wait deadlocks the first time every slot is held by something waiting on the hub. Measured: one request of 50 cold Ethereum tokens went from 10.1s to 8.6s, and four chains of 40 at once from 10.7s to 9.3s — and returned the same counts on a repeat, where the same burst before this returned a different set of prices each time. Co-authored-by: Hanzo Dev <[email protected]>