mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-17 00:31:34 +03:00
fix: types
This commit is contained in:
@@ -526,6 +526,13 @@ class AggregatorWS {
|
||||
availableAmountOut: item.aao,
|
||||
})),
|
||||
assetsNameMapping: json.anm,
|
||||
usdInfo: json.usd && {
|
||||
availableAmountIn: json.usd.aa,
|
||||
availableAmountOut: json.usd.aao,
|
||||
marketAmountOut: json.usd.mo,
|
||||
marketAmountIn: json.usd.mi,
|
||||
difference: json.usd.d,
|
||||
},
|
||||
};
|
||||
|
||||
switch (json.k) { // kind
|
||||
|
||||
@@ -199,10 +199,10 @@ export type SwapInfoBase = {
|
||||
assetsNameMapping?: Partial<Record<string, string>> | undefined
|
||||
usdInfo?: {
|
||||
availableAmountIn: number
|
||||
availableAmountOut?: number
|
||||
marketAmountIn: number
|
||||
marketAmountOut?: number
|
||||
difference: string
|
||||
availableAmountOut: number | undefined
|
||||
marketAmountOut: number
|
||||
marketAmountIn: number | undefined
|
||||
difference: string | undefined
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user