# Modified Exchange Rate

First define *σ*(*t*) to be a piecewise sigmoid function of time (*t*) (*detailed in* [*Sigm*](https://providence-labs.gitbook.io/providence-labs/how-providence-works/markets/exchange-rate-adjustment/sigma)[*a* ](https://providence-labs.gitbook.io/providence-labs/how-providence-works/markets/exchange-rate-adjustment/sigma)*section*):

• Let *Nj* denote the number of outcome *j* tokens minted to the swapper.

• Let *Ni* denote the number of outcome *i* tokens burned by the swapper.&#x20;

• Let *Eij* denote the exchange rate between *i* and *j* outcome tokens.

• Let *Si* denote the total supply of outcome *i* tokens.

• Let Sj denote the total supply of outcome i tokens.

A term *P* is given by the reciprocal of the current unmodified exchange rate (*Si / Sj*).

And define a term *a*:&#x20;

<figure><picture><source srcset="https://646852516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW2oa9FDAHfE4qqpNR6MX%2Fuploads%2FmTxateLI8MXTPgFPoJin%2Fimage-32-removebg-preview.png?alt=media&#x26;token=7aff0aa9-c5d6-45c2-a2dc-073a148551db" media="(prefers-color-scheme: dark)"><img src="https://646852516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW2oa9FDAHfE4qqpNR6MX%2Fuploads%2FGsW1xQeZgP1grzjLa3kD%2FScreenshot%202024-06-17%20at%2011.49.28.png?alt=media&#x26;token=510969ca-847a-4dd7-8a2f-2bce4a80cafa" alt=""></picture><figcaption></figcaption></figure>

A function *f*(*t*) can be derived:

<figure><picture><source srcset="https://646852516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW2oa9FDAHfE4qqpNR6MX%2Fuploads%2FsqpO4LJ2orbeAsPuyj6h%2Fimage-33-removebg-preview-2.png?alt=media&#x26;token=9ab534f7-3f85-40e5-b16c-624d8acd52ad" media="(prefers-color-scheme: dark)"><img src="https://646852516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW2oa9FDAHfE4qqpNR6MX%2Fuploads%2Ffcs0QWoTeFLiR8cNIj3Z%2FScreenshot%202024-06-17%20at%2011.50.49.png?alt=media&#x26;token=83ac4071-8fb4-4ac3-80bc-458a0df58da4" alt=""></picture><figcaption></figcaption></figure>

Combining this, the exchange rate between outcome *i* and *j* (*Eij*) is given:

<figure><picture><source srcset="https://646852516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW2oa9FDAHfE4qqpNR6MX%2Fuploads%2F3u4IeWfO8E426Am6ddZI%2Fimage-34-removebg-preview.png?alt=media&#x26;token=011fc2ec-2d7a-4aa1-818f-a3969223dae2" media="(prefers-color-scheme: dark)"><img src="https://646852516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW2oa9FDAHfE4qqpNR6MX%2Fuploads%2Ftkd5FDqY7u9KAIzoqUJQ%2FScreenshot%202024-06-17%20at%2011.52.05.png?alt=media&#x26;token=bcf23eb1-b46e-4a24-b959-5044582b01e5" alt=""></picture><figcaption><p>Note that the reciprocal relation is given by Eji = σ(t) · p/f(t).</p></figcaption></figure>

<figure><picture><source srcset="https://646852516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW2oa9FDAHfE4qqpNR6MX%2Fuploads%2F7mhe9wthrNu6WlVu7uDZ%2Fimage-35.jpg?alt=media&#x26;token=7fa140e6-05f7-46a1-8436-e0ce75d0bf03" media="(prefers-color-scheme: dark)"><img src="https://646852516-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FW2oa9FDAHfE4qqpNR6MX%2Fuploads%2FNq66TgOaqPWL9QdEKkoo%2FScreenshot%202024-06-17%20at%2011.53.55.png?alt=media&#x26;token=5616be0e-3809-4f68-a1b8-926b95e8556b" alt=""></picture><figcaption><p>Figure 2: Visualization of the exchange rates <em>Eij</em>(<em>t</em>) and <em>Eji</em>(<em>t</em>) over time, based on <em>σ</em>(<em>t</em>) and <em>f</em>(<em>t</em>), assuming constant odds <em>p</em> and <em>Te</em> (expiry) of 10.</p></figcaption></figure>

A small swap fee as a percentage of the outcome tokens burned will be collected and automatically liquidated into USDC post-settlement.
