Skip to content

Commit

Permalink
fix: dont process tokenization activitiies as retirements
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Oct 18, 2023
1 parent 5e3ceac commit f06a424
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "climate-tokenization-engine",
"version": "1.3.13",
"version": "1.3.14",
"bin": "./src/server.js",
"description": "",
"main": "proxy.js",
Expand Down
8 changes: 7 additions & 1 deletion src/api/retirement-explorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ const getRetirementActivities = async (page, limit, minHeight) => {
);
}

return response.body?.activities || [];
const activities = response.body?.activities || [];

const retirements = activities?.filter(
(activity) => activity.mode === "PERMISSIONLESS_RETIREMENT"
);

return retirements;
} catch (error) {
logger.error("Cannot get retirement activities", error);

Expand Down

0 comments on commit f06a424

Please sign in to comment.