mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-27 08:07:46 +03:00
fix: types
This commit is contained in:
@@ -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