We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f890933 commit eda14adCopy full SHA for eda14ad
apps/staking/src/app/api/v1/locked_accounts/route.ts
@@ -72,10 +72,12 @@ export async function GET(req: NextRequest) {
72
actualAmount: tokensToString(custodyAccount.amount),
73
lock: {
74
type: lock.type,
75
- schedule: lock.schedule.map((unlock) => ({
76
- date: unlock.date,
77
- amount: tokensToString(unlock.amount),
78
- })),
+ schedule: lock.schedule
+ .filter((unlock) => unlock.date > new Date())
+ .map((unlock) => ({
+ date: unlock.date,
79
+ amount: tokensToString(unlock.amount),
80
+ })),
81
},
82
};
83
}),
0 commit comments