mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-29 09:07:59 +03:00
fix: change asset names to asset addresses
This commit is contained in:
@@ -506,6 +506,8 @@ class AggregatorWS {
|
||||
assetIn: path.ai,
|
||||
assetOut: path.ao,
|
||||
factory: path.f,
|
||||
assetAddressIn: path.aai,
|
||||
assetAddressOut: path.aao,
|
||||
})),
|
||||
poolOptimal: json.po,
|
||||
...(json.oi) && {
|
||||
|
||||
@@ -40,6 +40,8 @@ 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
|
||||
})),
|
||||
usd: z.object({ // USD info of this swap, nullable
|
||||
aa: z.number().optional(), // available amount in, USD
|
||||
|
||||
Reference in New Issue
Block a user