Token A Parameters
Slope (m
A
)
Intercept (b
A
)
Supply (S
A
)
Token B Parameters
Slope (m
B
)
Intercept (b
B
)
Supply (S
B
)
Current Prices
P
A
=
...
P
B
=
...
Exchange Rate (A→B)
1 A =
...
B
Instant Exchange
Amount of A to exchange:
You receive:
...
B