The protocol follows the invariant:
k = x Γ y
Where:
x = SHM reserve
y = coin reserve
k = constant
The price of the coin at any moment is determined by the ratio between the reserves.
As trades occur, the reserves change while maintaining the invariant.