From abe95fdf23ae22dc2c70fec00f43a72e200a69bf Mon Sep 17 00:00:00 2001 From: SamuelQZQ Date: Mon, 8 Apr 2024 14:31:07 +0800 Subject: [PATCH] update readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d8775cd..b6806ee 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ SDK to get optimal swap routing for ThalaSwap. Currently, we support finding rou ## Examples ``` -const router = new ThalaswapRouter(API_URL); +const router = new ThalaswapRouter("https://fullnode.mainnet.aptoslabs.com/v1"); const fromToken = "0x1::aptos_coin::AptosCoin"; const toToken = "0xec84c05cc40950c86d8a8bed19552f1e8ebb783196bb021c916161d22dc179f7::asset::USDC"; const amountIn = 0.1; @@ -17,7 +17,7 @@ const route = await router.getRouteGivenExactInput( ); console.log("Route:", route); -console.log("Entry function payload with 0.5% slippage:", router.encodeRoute(route!, 0.5).rawPayload); +console.log("Entry function payload with 0.5% slippage:", router.encodeRoute(route!, 0.5)); ``` See `examples.ts` for more details