From 99f15dccbf7feb993761bf9ad8919ff15c86ecfc Mon Sep 17 00:00:00 2001 From: brucedonovan Date: Mon, 25 Sep 2023 11:04:05 +0100 Subject: [PATCH] update uniswap widget to include slippage --- knowledge_base/widgets.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/knowledge_base/widgets.yaml b/knowledge_base/widgets.yaml index acb20f3..849340a 100644 --- a/knowledge_base/widgets.yaml +++ b/knowledge_base/widgets.yaml @@ -558,7 +558,9 @@ an amount to sell, OR 2.) A token to sell, a token to buy, the transaction keyword "BUYAMOUNT", and - an amount to buy.' + an amount to buy. + + Optionally, users can specify a paricular slippage tolerance for the swap transaction, if is none provided, the default is 0.5' parameters: properties: amount: @@ -571,6 +573,9 @@ tokenToSell: description: Token to sell in the swap transaction. type: string + slippage: + description: Slippage tolerance for the swap transaction. + type: string transactionKeyword: description: Either SELLAMOUNT if amount refers to token to sell or BUYAMOUNT if amount refers to token to buy. @@ -580,6 +585,7 @@ - tokenToBuy - transactionKeyword - amount + - slippage type: object return_value_description: '' - _name_: fetch_nfts_owned_by_address_or_domain