If you're looking for a smart-contract implementing a linear bonding curve, consider using Fairmint's fully documented, specified & tested continuous organization smart-contract.
Fairmint helps growth-oriented companies raise non-dilutive capital at public market valuation using a novel offering: the CSO, which stands for Continuous Securities Offering. This post is a high-level explanation of how a CSO works.
Launch your CSO to get financing at public market valuation. Anyone in the world who supports your product & mission will be able to invest, while you retain full ownership of your company and stay focused on what matters most: developing your business!