mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-17 00:31:34 +03:00
fix: types
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@orionprotocol/sdk",
|
||||
"version": "0.20.24-rc1",
|
||||
"version": "0.20.24-rc2",
|
||||
"description": "Orion Protocol SDK",
|
||||
"main": "./lib/index.cjs",
|
||||
"module": "./lib/index.js",
|
||||
|
||||
@@ -45,7 +45,7 @@ const swapInfoBase = z.object({
|
||||
aao: z.number().optional(), // available amount out, USD
|
||||
mo: z.number(), // market amount out, USD
|
||||
mi: z.number().optional(), // market amount in, USD
|
||||
d: z.number().optional(), // difference in available amount in/out (USD) and market amount out/in (USD) in percentage
|
||||
d: z.string().optional(), // difference in available amount in/out (USD) and market amount out/in (USD) in percentage
|
||||
}).optional(),
|
||||
});
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ const swapInfoSchemaBase = baseMessageSchema.extend({
|
||||
aao: z.number().optional(), // available amount out, USD
|
||||
mo: z.number(), // market amount out, USD
|
||||
mi: z.number().optional(), // market amount in, USD
|
||||
d: z.number().optional(), // difference in available amount in/out (USD) and market amount out/in (USD) in percentage
|
||||
d: z.string().optional(), // difference in available amount in/out (USD) and market amount out/in (USD) in percentage
|
||||
}).optional(),
|
||||
});
|
||||
|
||||
|
||||
@@ -202,7 +202,7 @@ export type SwapInfoBase = {
|
||||
availableAmountOut?: number
|
||||
marketAmountIn: number
|
||||
marketAmountOut?: number
|
||||
difference: number
|
||||
difference: string
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user