Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
sehyunc committed Dec 3, 2024
1 parent f0b1bec commit cb84f14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 16 deletions.
8 changes: 3 additions & 5 deletions app/stats/charts/time-to-fill-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ export function TimeToFillCard() {
isQuoteCurrency,
isSell: false,
})
console.log("🚀 ~ TimeToFillCard ~ priceInBase:", priceInBase)

// Calculate amount in USD
const amountInUSD = useMemo(() => {
Expand Down Expand Up @@ -165,7 +166,7 @@ export function TimeToFillCard() {

return {
value: timeInMinutes < 1 ? 1 : timeInMinutes,
prefix: timeInMinutes < 1 ? "<" : "~",
prefix: timeInMinutes < 1 ? "< " : "~",
suffix: timeInMinutes < 1 || timeInMinutes === 1 ? " minute" : " minutes",
}
}, [timeToFillMs])
Expand All @@ -187,10 +188,7 @@ export function TimeToFillCard() {
/>
&nbsp;
<NumberFlow
className={cn(
"text-sm text-muted-foreground",
!priceInBase && "hidden",
)}
className={cn("text-sm text-muted-foreground")}
format={{
maximumFractionDigits: 2,
}}
Expand Down
11 changes: 0 additions & 11 deletions app/stats/hooks/use-time-to-fill.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,6 @@ export function useTimeToFill({ amount, baseToken }: TimeToFillParams): number {
? config.fillDurations.priority
: config.fillDurations.normal

console.log("ttf debug: ", {
first: config.fillDurations.first,
fillDuration,
intervalsNeeded,
rematchDelayMs: config.rematchDelayMs,
fillPerInterval,
baseToken,
allocation,
isPriorityFill,
})

// Return total time in milliseconds (including initial first fill duration)
return (
config.fillDurations.first +
Expand Down

0 comments on commit cb84f14

Please sign in to comment.