From c50ec46fd875dd637c205d0bf99effd8cf996663 Mon Sep 17 00:00:00 2001 From: nickkelly1 Date: Mon, 23 Sep 2024 18:43:29 -0500 Subject: [PATCH] chore: types --- packages/swap/src/providers/jupiter/types.ts | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/packages/swap/src/providers/jupiter/types.ts b/packages/swap/src/providers/jupiter/types.ts index 6848441fb..c776f6c14 100644 --- a/packages/swap/src/providers/jupiter/types.ts +++ b/packages/swap/src/providers/jupiter/types.ts @@ -121,10 +121,19 @@ export type JupiterSwapResponse = { computeUnitLimit?: number; prioritizationType?: { computeBudget?: { - microLamports: 71428; - estimatedMicroLamports: 142856; + /** @example 71428 */ + microLamports: number; + /** @example 142856 */ + estimatedMicroLamports: number; }; }; - dynamicSlippageReport: null; + // TODO: Narrow down + dynamicSlippageReport: null | { + slippageBps?: null | string | number; + otherAmount?: null | string | number; + simulatedIncurredSlippageBps?: null | string | number; + amplificationRatio?: null | string | number; + }; + // TODO: Type simulationError: null; };