From 82f4db17a7c61a3ba3d7eb012f3039bd004f80cf Mon Sep 17 00:00:00 2001 From: HoseinBaseri Date: Sat, 28 Dec 2024 15:59:15 +0330 Subject: [PATCH] feat: add 'tonco' to Dex type and introduce DexDetails interface --- src/types/router.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/types/router.ts b/src/types/router.ts index 483f53a..0624232 100644 --- a/src/types/router.ts +++ b/src/types/router.ts @@ -1,4 +1,4 @@ -export type Dex = 'stonfi' | 'dedust'; +export type Dex = 'stonfi' | 'dedust' | 'tonco'; export interface BestRoute { selected_pool: SelectedPool; @@ -8,6 +8,7 @@ export interface BestRoute { export interface SelectedPool { router_address: string; dex: string; + dex_details: DexDetails; reserve0: string; reserve1: string; token0_address: string; @@ -15,6 +16,11 @@ export interface SelectedPool { fee: number; } +export interface DexDetails { + name: string; + icon_url: string; +} + export interface PoolData { router_address: string; pay: string;