Pricing of services on the zap platform is determined via a pricing mechanism set by the provider known as a Bonding Curve. This section details how a user can setup their bonding curve.
NOTE: If you're using Zap tools like the web-admin or cli, you wont need to know how to parse our curve encodings but a brief breakdown follows where encode/decode a few examples. Tldr; we provide some examples at the bottom of this page
Curve Encoding
Zap curves are piece-wise functions where each piece-wise segment is a sum-of-powers polynomial.
c0x0+c1x1+c2x2+...
So if you have a function like 2+x^2, you'd want to put it in the form
2+2x2=>2x0+0x1+2x2
If you just wanted a stable price, you'd just stick a constant, ala 3
3=>3x0
Since Zap bonding curves are piece-wise functions, our curves are encoded via integer encoded as follows