Skip to content

Commit

Permalink
Release sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-diamond committed Aug 28, 2024
1 parent 13407ed commit 5e09066
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "2.0.2",
"version": "2.0.3",
"sideEffects": false,
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ describe('parseExitRequests function', () => {

expect(result).toEqual({
total: 100n,
duration: 0,
duration: 1718536919,
positions: [],
withdrawable: 0n,
})
Expand All @@ -155,7 +155,7 @@ describe('parseExitRequests function', () => {
expect(result).toEqual({
positions: [],
total: 50n,
duration: 0,
duration: 1718536919,
withdrawable: 0n,
})
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ const parseExitRequests = async (values: ParseExitRequestsInput): Promise<ParseE
}
}

const duration = _getDuration(exitRequests)
const keeperContract = contracts.base.keeper
const vaultContract = contracts.helpers.createVault(vaultAddress)

Expand Down Expand Up @@ -145,7 +146,7 @@ const parseExitRequests = async (values: ParseExitRequestsInput): Promise<ParseE
// If there are no positions with an index greater than 0 or their timestamp has failed the 24-hour check.
// Then we can use totalShares from the subgraph to show total
return {
duration: 0,
duration,
positions: [],
withdrawable: 0n,
total: totalV1QueuedAssets + queuedAssets,
Expand Down Expand Up @@ -195,8 +196,6 @@ const parseExitRequests = async (values: ParseExitRequestsInput): Promise<ParseE

const total = withdrawableAssets + queuedAssets

const duration = _getDuration(exitRequests)

return {
total,
duration,
Expand Down

0 comments on commit 5e09066

Please sign in to comment.