Skip to content

Commit

Permalink
Merge pull request #7 from penumbra-zone/sort-by-depositors
Browse files Browse the repository at this point in the history
temporarily sort by depositors
  • Loading branch information
hdevalence authored Oct 26, 2024
2 parents 9a83eca + 8bc1aeb commit e320f13
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/routes/_index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -326,11 +326,17 @@ const ShowShielded = ({
}: {
shielded: ShieldedPoolTimedSnapshots[];
}) => {
/*
const sorted = [...shielded].sort((a, b) =>
a.now.priority === b.now.priority
? b.now.unique_depositors - a.now.unique_depositors
: b.now.priority - a.now.priority,
);
*/
const sorted = [...shielded].sort((a, b) =>
b.now.unique_depositors - a.now.unique_depositors
);


const [changeWindow, setChangeWindow] = useState("24h");
const [depositorsWindow, setDepositorsWindow] = useState("∞");
Expand Down

0 comments on commit e320f13

Please sign in to comment.