diff --git a/src/store/token/actions.js b/src/store/token/actions.js index 2cfe1d06..3b20ee1f 100644 --- a/src/store/token/actions.js +++ b/src/store/token/actions.js @@ -12,6 +12,7 @@ import notify, { NotificationsTypes } from '~/store/notifications/actions'; import ActionTypes from '~/store/token/types'; import { PATHFINDER_HOPS_DEFAULT, ZERO_ADDRESS } from '~/utils/constants'; import logError, { translateErrorForUser } from '~/utils/debug'; +import { formatCirclesValue } from '~/utils/format'; import { isTokenDeployed, waitAndRetryOnFail } from '~/utils/stateChecks'; const { ActivityTypes } = core.activity; @@ -175,10 +176,14 @@ export function checkOtherTokens() { try { const otherTokens = await core.token.listAllTokens(safe.currentAccount); + + const filterOrderedOtherTokens = otherTokens + .filter((item) => item.amount > tcToCrc(Date.now(), Number(0.005))) + .reverse(); dispatch({ type: ActionTypes.TOKEN_UPDATE_OTHER_TOKENS, meta: { - otherTokens, + otherTokens: filterOrderedOtherTokens, }, }); dispatch({