Skip to content

Commit

Permalink
unused function removed
Browse files Browse the repository at this point in the history
  • Loading branch information
vsubhuman committed Jun 7, 2024
1 parent f4f908e commit 42c8d4e
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/containers/HomeRevamp.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,25 +226,6 @@ function Home(props: HomeProps): Node {

const alertText = null;

function filterPools(pools: ?Array<Pool>, totalAda: ?number): ?Array<Pool> {
if (pools == null) return pools;

const limit: ?number = saturationLimit;

// don't filter out saturated pools if the user explicitly searches
if (limit == null || (filterOptions.search != null && filterOptions.search !== '')) {
return pools;
}

const lovelaceDelegation = totalAda == null ? 0 : totalAda * 1000000;

if (lovelaceDelegation > limit) return pools;

return pools.filter((item) => {
return true; item != null && Number(item.total_stake) + lovelaceDelegation < limit;
});
}

const sortData = (sorting: Object) => {
const defaultRowData = [].concat(rowData ?? []);
if (sorting.sortDirection) {
Expand Down

0 comments on commit 42c8d4e

Please sign in to comment.