Skip to content

Commit

Permalink
fix distribution epoch 10 (#1908)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeifuChen authored Jan 25, 2023
1 parent dc7271d commit 66b84f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/services/kwentaToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export default class KwentaTokenService {
vKwentaBalance: wei(vKwentaBalance),
vKwentaAllowance: wei(vKwentaAllowance),
kwentaAllowance: wei(kwentaAllowance),
epochPeriod: Number(epochPeriod) - 1,
epochPeriod: Number(epochPeriod) - 2,
veKwentaBalance: wei(veKwentaBalance),
veKwentaAllowance: wei(veKwentaAllowance),
};
Expand Down Expand Up @@ -379,7 +379,7 @@ export default class KwentaTokenService {
const responses: EpochData[] = await Promise.all(
fileNames.map(async (fileName, index) => {
const response = await client.get(fileName);
const period = index >= 5 ? index + 1 : index;
const period = index >= 5 ? (index >= 10 ? index + 2 : index + 1) : index;
return { ...response.data, period };
})
);
Expand Down

0 comments on commit 66b84f0

Please sign in to comment.