mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-24 22:58:01 +03:00
fix cexPrices schema & ver up
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.19.80-rc",
|
||||
"version": "0.19.80-rc1",
|
||||
"description": "Orion Protocol SDK",
|
||||
"main": "./lib/index.cjs",
|
||||
"module": "./lib/index.js",
|
||||
|
||||
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
||||
|
||||
const cexPriceTickerInfoSchema = z.tuple([
|
||||
z.string(), // pair name
|
||||
z.string(), // lastPrice
|
||||
z.number(), // lastPrice
|
||||
]).transform(([pairName, lastPrice]) => ({
|
||||
pairName:pairName.toUpperCase(),
|
||||
lastPrice,
|
||||
|
||||
Reference in New Issue
Block a user