Skip to content

Commit

Permalink
fix: missing params
Browse files Browse the repository at this point in the history
  • Loading branch information
woodenfurniture committed Oct 31, 2024
1 parent 7e29f2f commit af051a5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/swapper/src/swappers/CowSwapper/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export const cowApi: SwapperApi = {
const { appData, appDataHash } = await getFullAppData(
slippageTolerancePercentageDecimal,
affiliateAppDataFragment,
'market',
)
// https://api.cow.fi/docs/#/default/post_api_v1_quote
const maybeQuoteResponse = await cowService.post<CowSwapQuoteResponse>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ describe('utils', () => {
const slippageTolerancePercentage = '0.005' // 0.5%
const affiliateAppDataFragment = {} // no affiliate fee

const result = await getFullAppData(slippageTolerancePercentage, affiliateAppDataFragment)
const result = await getFullAppData(
slippageTolerancePercentage,
affiliateAppDataFragment,
'market',
)

expect(result).toHaveProperty('appDataHash')
expect(result).toHaveProperty('appData')
Expand All @@ -60,7 +64,11 @@ describe('utils', () => {
},
}

const result = await getFullAppData(slippageTolerancePercentage, affiliateAppDataFragment)
const result = await getFullAppData(
slippageTolerancePercentage,
affiliateAppDataFragment,
'market',
)

expect(result).toHaveProperty('appDataHash')
expect(result).toHaveProperty('appData')
Expand Down

0 comments on commit af051a5

Please sign in to comment.