From 0f17219af4cecea7493e1b34cd8bc4e6807701cf Mon Sep 17 00:00:00 2001 From: Aleksandr Kraiz Date: Tue, 31 May 2022 07:51:34 +0400 Subject: [PATCH] Fix docs --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index f246137..25c1a1f 100644 --- a/README.md +++ b/README.md @@ -163,15 +163,15 @@ const pairsList = await simpleFetch(orionUnit.orionAggregator.getPairsList)(); ### Get swap info ```ts -import { simpleFetch } from '@orionprotocol/sdk'; +import { simpleFetch } from "@orionprotocol/sdk"; const swapInfo = await simpleFetch(orionUnit.orionAggregator.getSwapInfo)( // Use 'exactSpend' when 'amount' is how much you want spend. Use 'exactReceive' otherwise - type: 'exactSpend', - assetIn: 'ORN', - assetOut: 'USDT', - amount: 6.23453457, - exchanges: ['ORION_POOL'] // OPTIONAL! Specify ['ORION_POOL'] if you want "pool only" swap execution + "exactSpend", // type + "ORN", // asset in + "USDT", // asset out + 6.23453457, // amount + ["ORION_POOL"] // Exchanges. OPTIONAL! Specify ['ORION_POOL'] if you want "pool only" swap execution ); ```