Bonding curve
Last updated
Was this helpful?
Last updated
Was this helpful?
To determine the price of hASSET per asset we use an exponential bonding curve.
Because of the curve it gets exponentially expensive to add assets to the curve. For a total of 50 hAsset there needs to be 50*50 = 2500 Assets in the contract. To have another 50 hAssets there needs to be 100*100 = 10000 Assets in the contract. Meaning an additional 50 hAsset deposit costs 7500 Assets (3 times the initial cost). For an overview see the curve below and for the implementation see Hedgehog.sol under architecture.