Skip to content

Commit

Permalink
increase deceleration
Browse files Browse the repository at this point in the history
  • Loading branch information
GrandSchtroumpf committed Nov 21, 2024
1 parent 99a0433 commit 6c0f69e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/explorer/ExplorerHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ interface TradesProps {
trades: number;
className?: string;
}
const frames = 60 * 3; // 3min
const frames = 60 * 60 * 3; // 3min
const Trades = ({ trades, className }: TradesProps) => {
const ref = useRef<HTMLParagraphElement>(null);
const values = useRef<string[]>([]);
Expand All @@ -242,7 +242,7 @@ const Trades = ({ trades, className }: TradesProps) => {
if (!last) {
const nextValues = new Array(frames);
for (let i = 0; i < frames; i++) {
const percent = Math.pow(i / frames, 1 / 8); // ease-ouy
const percent = Math.pow(i / frames, 1 / 20); // ease-ouy
const v = Math.round(trades * percent);
nextValues[i] = formatter.format(v);
}
Expand Down

0 comments on commit 6c0f69e

Please sign in to comment.