Skip to content

Commit

Permalink
Added pair to forex exclude inverse list (#3128)
Browse files Browse the repository at this point in the history
  • Loading branch information
amit-momin authored Jan 3, 2024
1 parent 5a5d777 commit 118ccca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/short-waves-travel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/finage-test-adapter': patch
---

Added pair to the forex endpoint exclude inverse list
2 changes: 1 addition & 1 deletion packages/sources/finage-test/src/endpoint/forex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ On receiving FOO/USD request, if FOO is on the list of assets that are queried i
excludesMap includes currency pairs {quote: [base ...]} which should not be inverted.
*/
const excludesMap: Record<string, string[]> = {
USD: ['EUR', 'GBP', 'AUD', 'NZD', 'XAG', 'XAU', 'XPT', 'XPD', 'XCU'],
USD: ['EUR', 'GBP', 'AUD', 'NZD', 'XAG', 'XAU', 'XPT', 'XPD', 'XCU', 'PLN'],
}

export const forexReqTransformer = (
Expand Down

0 comments on commit 118ccca

Please sign in to comment.