mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-04-03 11:38:09 +03:00
update swapinfo schema
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { z } from 'zod';
|
||||
import uppercasedNetworkCodes from '../../../constants/uppercasedNetworkCodes';
|
||||
|
||||
const orderInfoSchema = z.object({
|
||||
assetPair: z.string().toUpperCase(),
|
||||
@@ -50,6 +51,8 @@ const swapInfoBase = z.object({
|
||||
d: z.string().optional(), // difference in available amount in/out (USD) and market amount out/in (USD) in percentage
|
||||
}).optional(),
|
||||
autoSlippage: z.number().optional(),
|
||||
sourceChain: z.enum(uppercasedNetworkCodes).optional(),
|
||||
targetChain: z.enum(uppercasedNetworkCodes).optional(),
|
||||
});
|
||||
|
||||
const swapInfoByAmountIn = swapInfoBase.extend({
|
||||
|
||||
Reference in New Issue
Block a user