# Including Swap Fees

_**In-Given-Out**_

$$
A_{i} = A_{sent} \ * \ (1- Swap \ Fee)
$$

Our prior equation can now be utilized in place of Ai to determine the actual amount we must spend to receive the 1000 WMATIC we desire. We must now consider Ai to be our initial value as paying our swap fee will increase the Amount-IN required.

TEL/USDC/WMATIC 60/20/20:

![](https://1883099587-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZjjyawYFIHU1QE6T7Y7j%2Fuploads%2Fgit-blob-a1156e1eede4d966c097566ca606ef1abbda012a%2FScreen%20Shot%202022-04-01%20at%207.58.37%20PM.png?alt=media)

WMATIC/USDC/WETH/BAL 25/25/25/25:

![](https://1883099587-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZjjyawYFIHU1QE6T7Y7j%2Fuploads%2Fgit-blob-509d9290c79a7c689c89ac408065be5de2488101%2FScreen%20Shot%202022-04-01%20at%207.58.59%20PM.png?alt=media)

We can then determine the break-even swap fee for the WMATIC/USDC/WETH/BAL 25/25/25/25 pool below.

![](https://1883099587-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZjjyawYFIHU1QE6T7Y7j%2Fuploads%2Fgit-blob-11ce7d3a64fb2b1d26594339eb5e95c53bd2cb4f%2FScreen%20Shot%202022-04-01%20at%207.59.24%20PM.png?alt=media)
