---
description: >-
  Two examples of calculating price impact with the incorporation of swap fees
  in single asset deposit scenarios.
---

# Price Impact; 10,000 BAL

Now let’s assume we are depositing into the BAL/WETH 80/20 Pool with 10,000 BAL and no WETH. We will be charged swap fees on the portion of our investment which is “off-balance”. In this case 20% of our pool is not in the form of BAL, therefore that is the taxed portion. As referenced from the[ trading with swap fees section](../../../spot-and-effective-price/price-impact-with-swap-fees).

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

The calculation follows as:

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

The current pool traits are as follows:

* _**Swap fee: 0.05%**_
* _**BAL: 5,691,640**_
* _**WETH: 6,194.1921**_
* _**BPT: 2,891,789.44800306**_

Using the known amount for A(t) we can calculate the amount of pool tokens we will be issued for this deposit.\\

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

We can see on the user interface completing this transaction will yield a price impact of 0.03% (0.18% for the larger interaction). What exactly does this mean for an investor? Well in short from price impact for trading we can note that the ratio between assets change as supply and demand shifts during an exchange. In this case we are essentially exchanging BAL for Pool tokens and in doing so Pool tokens are becoming more expensive in reference to BAL. This is a bit more complex than comparing prices of individual assets in a pool, but we will focus on the current example to start. The spot price of a pool token and effective price of a pool token are the variables we need to calculate to determine our price impact from an investment.

![10,000 BAL Price Impact](https://1883099587-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZjjyawYFIHU1QE6T7Y7j%2Fuploads%2Fgit-blob-8eacdc9d876223b514a1a9393255e11e4a6bfda1%2F0?alt=media) ![100,000 BAL Price Impact](https://1883099587-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZjjyawYFIHU1QE6T7Y7j%2Fuploads%2Fgit-blob-bf8ed0d260255fe24c7e6c411de325ccb426132b%2F1?alt=media)

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

Pool token spot price (Assume A(t) = 1 BAL):

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

Next, we must calculate the ratio of the pool’s invariant before and after the exchange of 10,000 BAL.

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

Using the invariant ratio, we can determine the new total number of pool tokens and in the same stroke, calculate the amount of pool tokens which we received for the exchange.

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

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

Knowing the amount of BAL, we needed to invest and the pool tokens we received in exchange we can determine the effective price of a pool token to compare with our spot price:

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