MCPcopy Create free account
hub / github.com/AmazingAng/PolyWorld / refreshQuote

Function refreshQuote

src/components/OrderForm.tsx:1062–1067  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1060 ? Math.abs(quotedMarketPrice - currentPrice) * 100
1061 : 0;
1062 const refreshQuote = () => {
1063 quotedAtRef.current = null;
1064 setQuotedMarketPrice(null);
1065 setQuotedLimitPrice(null);
1066 setQuoteRefreshKey(k => k + 1);
1067 };
1068 if (slippageCents >= 1) return (
1069 <div className={`text-[10px] border px-2 py-1 flex items-center justify-between gap-2 ${
1070 slippageCents >= 5

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected