Skip to content

Commit 021c62c

Browse files
committed
fix: added handler for new swap price hook
1 parent 16abeec commit 021c62c

File tree

2 files changed

+48
-68
lines changed

2 files changed

+48
-68
lines changed

packages/hooks/src/tests/handlers.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,30 @@ export const handlers = [
300300
)
301301
}),
302302

303+
http.post('*/getSwapPermit2Prices', async () => {
304+
return HttpResponse.json(
305+
{
306+
swapPermit2Prices: [
307+
{
308+
currencyAddress: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
309+
currencyBalance: '180000000000000',
310+
price: '7351402238115',
311+
maxPrice: '7718972350021',
312+
transactionValue: '0'
313+
},
314+
{
315+
currencyAddress: '0x0000000000000000000000000000000000000000',
316+
currencyBalance: '1478702455538610019',
317+
price: '64490918485610659',
318+
maxPrice: '67715464409891192',
319+
transactionValue: '67715464409891192'
320+
}
321+
]
322+
},
323+
{ status: 200 }
324+
)
325+
}),
326+
303327
http.post('*/GetSwapQuote', async () => {
304328
return HttpResponse.json(
305329
{

pnpm-lock.yaml

Lines changed: 24 additions & 68 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)