Skip to content

Commit 400b2c8

Browse files
authored
fix: dynamic tranch count (#857)
1 parent 7a116fe commit 400b2c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@superfluid-finance/dashboard",
3-
"version": "33.0.0",
3+
"version": "34.0.0",
44
"private": true,
55
"type": "module",
66
"scripts": {

src/pages/api/agora.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ export default async function handler(
365365
}()
366366
const tranchDuration = 1 * UnitOfTime.Month;
367367

368-
const tranchCount = round === 'rf7' ? 6 : 4;
368+
const tranchCount = Math.max(currentTranchCount, round === 'rf7' ? 6 : 5);
369369
const tranchPlan: TranchPlan = {
370370
tranchCount,
371371
currentTranchCount,

0 commit comments

Comments
 (0)