diff --git a/package.json b/package.json index a0676f4..24683c5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.20.83-rc2", + "version": "0.20.83-rc3", "description": "Orion Protocol SDK", "main": "./lib/index.cjs", "module": "./lib/index.js", diff --git a/src/services/BlockchainService/index.ts b/src/services/BlockchainService/index.ts index cef2ce6..c368d15 100644 --- a/src/services/BlockchainService/index.ts +++ b/src/services/BlockchainService/index.ts @@ -11,8 +11,8 @@ import { type PairStatusEnum, pairStatusSchema, pricesWithQuoteAssetSchema, + referralDataSchema, pmmSchema, - dueLiabilityEstimateSchema } from './schemas/index.js'; import type redeemOrderSchema from '../Aggregator/schemas/redeemOrderSchema.js'; import { sourceAtomicHistorySchema, targetAtomicHistorySchema } from './schemas/atomicHistorySchema.js'; @@ -272,13 +272,13 @@ class BlockchainService { getReferralData = (walletAddress: string) => fetchWithValidation( `${this.apiUrl}/api/referral-data/${walletAddress}`, - z.number().nonnegative(), + referralDataSchema, { headers: this.basicAuthHeaders } ); getDueLiabilityEstimate = ({ asset, amount }: DueLiabilityEstimateProps) => fetchWithValidation( `${this.apiUrl}/api/due-liability-estimate/${asset}/${amount}`, - dueLiabilityEstimateSchema, + z.number().nonnegative(), { headers: this.basicAuthHeaders } );