From 9d250d5a3ac9f0ea3baabeaa80d37718db6c05e1 Mon Sep 17 00:00:00 2001 From: Mat Milbury Date: Thu, 4 Apr 2024 16:10:13 +0200 Subject: [PATCH] Typo: 02-trading-from-a-smart-contract.md --- .../02-trading-from-a-smart-contract.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/contracts/v2/guides/smart-contract-integration/02-trading-from-a-smart-contract.md b/docs/contracts/v2/guides/smart-contract-integration/02-trading-from-a-smart-contract.md index 6170aa4c23..dc1b3d3921 100644 --- a/docs/contracts/v2/guides/smart-contract-integration/02-trading-from-a-smart-contract.md +++ b/docs/contracts/v2/guides/smart-contract-integration/02-trading-from-a-smart-contract.md @@ -11,7 +11,7 @@ _Read [safety considerations](#safety-considerations) for more._ The easiest way to safely swap tokens is to use the [router](../../reference/smart-contracts/router-02), which provides a variety of methods to safely swap to and from different assets. You'll notice that there is a function for each permutation of swapping to/from an exact amount of ETH/tokens. -First you must use an external price source to calculate the safety parameters for the function you'd like to call. This is either a minimum amount received when selling an exact input or the maximum amount you are willing to pay when a buying an exact output amount +First you must use an external price source to calculate the safety parameters for the function you'd like to call. This is either a minimum amount received when selling an exact input or the maximum amount you are willing to pay when buying an exact output amount. It is also important to ensure that your contract controls enough ETH/tokens to make the swap, and has granted approval to the router to withdraw this many tokens.