Modified Exchange Rate
Mathematics Behind Providence.
Last updated
Mathematics Behind Providence.
Last updated
First define ฯ(t) to be a piecewise sigmoid function of time (t) (detailed in 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.
โข 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:
A function f(t) can be derived:
Combining this, the exchange rate between outcome i and j (Eij) is given:
A small swap fee as a percentage of the outcome tokens burned will be collected and automatically liquidated into USDC post-settlement.