Skip to content

Commit

Permalink
return default activePrice
Browse files Browse the repository at this point in the history
  • Loading branch information
canonbrother committed Nov 19, 2024
1 parent 683e75f commit db9c495
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,14 @@ describe('list', () => {
symbol: expect.any(String),
symbolKey: expect.any(String),
tradeable: true
}
},
// activePrice: undefined
activePrice: {
active: null,
next: null,
isLive: false,
block: expect.any(Object)
}
})
})

Expand Down Expand Up @@ -195,8 +201,14 @@ describe('get', () => {
symbol: 'AAPL',
symbolKey: expect.any(String),
tradeable: true
}
},
// activePrice: undefined
activePrice: {
active: null,
next: null,
isLive: false,
block: expect.any(Object)
}
}
)
})
Expand Down
21 changes: 10 additions & 11 deletions apps/whale-api/src/module.api/__defid__/poolpairs.defid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,18 +189,17 @@ it('should show aggregated swaps for 24h and 30d', async () => {
bucket: expect.any(Number),
id: expect.any(String),
key: '11-86400'
},
{
aggregated: {
amounts: {},
usd: 0
},
block: expect.any(Object),
bucket: expect.any(Number),
id: expect.any(String),
key: '11-86400'
}
// no point to preview the default
// {
// aggregated: {
// amounts: {},
// usd: 0
// },
// block: expect.any(Object),
// bucket: expect.any(Number),
// id: expect.any(String),
// key: '11-86400'
// }
])

const { data: hourAggregated } = await controller.listPoolSwapAggregates('11', PoolSwapAggregatedInterval.ONE_HOUR, { size: 3 })
Expand Down

0 comments on commit db9c495

Please sign in to comment.