Pricing – Harbor Docs
Skip to content

Pricing

When a Harbor market is presented with a bond to buy or sell, it makes use of an on-chain pricing algorithm which generates a quote based on the attributes of the bond, such as the amount of tokens locked up in the bond, the time to maturity, the issuer, and/or other attributes.

Let:

  • Pb(t)P_b(t): the buy price of the bond at time tt
  • Ps(t)P_s(t): the sell price at time tt
  • VV: the face value (redemption value) of the bond at maturity TT
  • P(t)P(t): the market price function returned by the pricing algorithm

Then, to guarantee profitability and arbitrage safety, the pricing algorithm should satisfy:

Pb(t)<Ps(t)<Vt<TP_b(t) < P_s(t) < V \quad \forall t < T

Additionally, prices must not decrease over time:

dP(t)dt0\frac{dP(t)}{dt} \geq 0

If a bond is purchased but not resold, the maximum profit is realized at redemption:

Π(t)=VPb(t)\Pi(t) = V - P_b(t)

where Π(t)\Pi(t) is the profit if the bond is held to maturity.

Consider the following Linear strategy.

Linear pricing strategy example showing bond price progression over time

Example Linear pricing strategy demonstrating how bond prices increase linearly from purchase price to face value over time