mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-24 22:58:01 +03:00
Merge remote-tracking branch origin/main into remove-exactReceive
This commit is contained in:
@@ -12,6 +12,8 @@ const exchangeContractStep = z.object({
|
||||
assetIn: z.string(),
|
||||
assetOut: z.string(),
|
||||
factory: z.string(),
|
||||
assetAddressIn: z.string(),
|
||||
assetAddressOut: z.string(),
|
||||
});
|
||||
|
||||
const swapInfoBase = z.object({
|
||||
|
||||
@@ -514,6 +514,9 @@ class AggregatorWS {
|
||||
assetIn: path.ai,
|
||||
assetOut: path.ao,
|
||||
factory: path.f,
|
||||
assetAddressIn: path.aai,
|
||||
assetAddressOut: path.aao,
|
||||
fee: path.fee,
|
||||
})),
|
||||
poolOptimal: json.po,
|
||||
...(json.oi) && {
|
||||
|
||||
@@ -40,6 +40,9 @@ const swapInfoSchemaBase = baseMessageSchema.extend({
|
||||
ai: z.string().toUpperCase(), // asset in
|
||||
ao: z.string().toUpperCase(), // asset out
|
||||
f: factorySchema, // factory
|
||||
aai: z.string(), // asset address in
|
||||
aao: z.string(), // asset address out
|
||||
fee: z.number().optional(), // fee
|
||||
})),
|
||||
usd: z.object({ // USD info of this swap, nullable
|
||||
aa: z.number().optional(), // available amount in, USD
|
||||
|
||||
Reference in New Issue
Block a user