Skip to content

Commit

Permalink
Merge pull request #80 from clober-dex/fix/currency-sort
Browse files Browse the repository at this point in the history
fix: sort for `getMarketId` function
  • Loading branch information
graykode authored Jul 15, 2024
2 parents cbba884 + b6bb78e commit acf8ba7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@clober/v2-sdk",
"version": "0.0.56",
"version": "0.0.57",
"description": "🛠 An SDK for building applications on top of Clober V2",
"files": [
"dist"
Expand Down
2 changes: 1 addition & 1 deletion src/utils/market.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const getMarketId = (
if (tokenAddresses.length !== 2) {
throw new Error('Invalid token pair')
}
tokenAddresses = tokenAddresses.map((address) => getAddress(address))
tokenAddresses = tokenAddresses.map((address) => getAddress(address)).sort()

// include stable coin
const stable = tokenAddresses.find((address) => {
Expand Down

0 comments on commit acf8ba7

Please sign in to comment.