<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Temiloluwa</title>
    <description>The latest articles on DEV Community by Temiloluwa (@temi0x).</description>
    <link>https://dev.to/temi0x</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F414270%2F2c400048-02cb-4aa9-910e-a8af59668e77.jpg</url>
      <title>DEV Community: Temiloluwa</title>
      <link>https://dev.to/temi0x</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/temi0x"/>
    <language>en</language>
    <item>
      <title>Bonding curves, simply</title>
      <dc:creator>Temiloluwa</dc:creator>
      <pubDate>Sat, 03 Aug 2024 02:53:40 +0000</pubDate>
      <link>https://dev.to/temi0x/bonding-curves-simply-3mm8</link>
      <guid>https://dev.to/temi0x/bonding-curves-simply-3mm8</guid>
      <description>&lt;p&gt;At first glance, bonding curves sound like some sort of fancy term for another abstract thing in computation, but bonding curves turn out to be a quite interesting thing in finance and mathematics.&lt;/p&gt;

&lt;p&gt;Bonding curves simply put, are a mathematical formula for the calculation of an asset's value, in relation to the supply of the said asset. &lt;/p&gt;

&lt;p&gt;Bonding curves are another mathematical model for asset valuation and pricing, in proportion to the asset supply and liquidity available for such assets. For better illustration, think of it as a line (or curve) on a graph that shows how the price of a token changes as more tokens are created or sold.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffvtho7hc147ma4p0ztid.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffvtho7hc147ma4p0ztid.png" alt="An example of a bonding curve (A linear bonding curve)&amp;lt;br&amp;gt;
"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Say we have a token (LCD), and we want to use a bonding curve to determine the value of 1 LCD, we can derive the price using the mathematical formula being used in the specific bonding curve. &lt;/p&gt;

&lt;p&gt;There are mainly two types of bonding curves;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Linear Bonding Curves&lt;/li&gt;
&lt;li&gt;Exponential bonding curves&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Linear Bonding Curves
&lt;/h3&gt;

&lt;p&gt;A linear bonding curve increases the price of an asset in a straight line as more units of the assets are created. This means the price increases at a constant rate for each additional asset, or the asset price is directly proportional to asset supply (P∝S).&lt;/p&gt;

&lt;p&gt;The formula for a linear bonding curve is: &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;P = m⋅S+b&lt;/strong&gt;&lt;br&gt;
where; &lt;/p&gt;

&lt;p&gt;&lt;em&gt;P = price of the asset&lt;br&gt;
m = slope of the curve (rate of price increase per asset)&lt;br&gt;
S = asset supply (number of existing assets)&lt;br&gt;
b = initial price (when supply = 0)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffvtho7hc147ma4p0ztid.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffvtho7hc147ma4p0ztid.png" alt="A sample graph showing a linear bonding curve&amp;lt;br&amp;gt;
"&gt;&lt;/a&gt;&lt;br&gt;
A sample graph showing a linear bonding curve. The straight slope shows a direct proportion of asset price to asset supply&lt;/p&gt;

&lt;h4&gt;
  
  
  How it Works
&lt;/h4&gt;

&lt;p&gt;Initial Price (b): This is the starting price of the asset when no assets have been issued yet.&lt;br&gt;
Slope (m): This determines how much the price increases with each new asset issued.&lt;br&gt;
Supply (S): As more assets are issued, the supply increases, and the price is recalculated.&lt;/p&gt;

&lt;p&gt;Example:&lt;/p&gt;

&lt;p&gt;Initial price (b) = $1&lt;br&gt;
Slope (m) = $0.10 per asset&lt;/p&gt;

&lt;p&gt;When no assets are issued: &lt;br&gt;
P=0.10⋅0+1=1&lt;/p&gt;

&lt;p&gt;When 1 asset is issued: &lt;br&gt;
P=0.10⋅1+1=1.10&lt;/p&gt;

&lt;p&gt;When 2 assets are issued: &lt;br&gt;
P=0.10⋅2+1=1.20&lt;/p&gt;

&lt;h3&gt;
  
  
  Exponential Bonding Curves
&lt;/h3&gt;

&lt;p&gt;An exponential bonding curve increases the price of an asset exponentially as more assets are issued. This means the price starts low but increases rapidly with each additional asset, or the asset value is exponentially proportional to the asset supply (P∝e^S)&lt;/p&gt;

&lt;p&gt;The formula for an exponential bonding curve is: &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;P = a⋅e^(b⋅S)&lt;/strong&gt;&lt;br&gt;
where: &lt;/p&gt;

&lt;p&gt;&lt;em&gt;P: Price of the asset&lt;br&gt;
S: Supply of the asset (number of existing assets)&lt;br&gt;
a: Initial price (starting multiplier)&lt;br&gt;
b: Exponential growth rate&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fc9v3gg5jcygeoe0rzd2m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fc9v3gg5jcygeoe0rzd2m.png" alt="A sample graph showing the slope of an exponential bonding curve"&gt;&lt;/a&gt;&lt;br&gt;
A sample graph showing an exponential bonding curve. The slope advances slowly, and then increases sharply, showing an exponential increase with further supply addition.&lt;/p&gt;

&lt;h4&gt;
  
  
  How it Works
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Initial Price (a): This is the starting multiplier for the price.&lt;/li&gt;
&lt;li&gt;Exponential Growth Rate (b): This determines how quickly the price increases as more tokens are issued.&lt;/li&gt;
&lt;li&gt;Supply (S): As more tokens are issued, the supply increases, and the price is recalculated using the exponential formula.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Example:&lt;br&gt;
Initial price (a) = $1&lt;br&gt;
Growth rate (b) = 0.1&lt;/p&gt;

&lt;p&gt;When no tokens are issued: &lt;br&gt;
P=1⋅e^(0.1⋅0) =1&lt;br&gt;
When 1 token is issued: &lt;br&gt;
P=1⋅e^(0.1⋅1) ≈ 1.105&lt;br&gt;
When 2 tokens are issued: &lt;br&gt;
P=1⋅e^(0.1⋅2) ≈ 1.221&lt;/p&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;Bonding curves provide a systematic way to manage the price and supply of assets. They ensure that early buyers are rewarded and that the asset price reflects demand. &lt;/p&gt;

&lt;p&gt;Bonding curves can be applied to DeFi, and used to reward early participants of token sales, or to maintain the price of decentralised assets while reflecting the demand. By understanding these curves, projects can create sustainable and fair economic models for their tokens.&lt;/p&gt;

</description>
      <category>web3</category>
    </item>
    <item>
      <title>Deploying a PHP app to cPanel</title>
      <dc:creator>Temiloluwa</dc:creator>
      <pubDate>Wed, 13 Jan 2021 22:16:02 +0000</pubDate>
      <link>https://dev.to/temi0x/deploying-a-php-app-to-cpanel-3n4e</link>
      <guid>https://dev.to/temi0x/deploying-a-php-app-to-cpanel-3n4e</guid>
      <description>&lt;p&gt;Deploying a PHP web-app can be stressful for beginners who are using cPanel hosting for the first time, or who aren't conversant with the interface. Most issues encountered would be related to improper uploads, server name issues, or database errors. &lt;/p&gt;

&lt;h1&gt;What is cPanel&lt;/h1&gt;

&lt;p&gt;cPanel is a web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site to the website owner or the "end-user".&lt;br&gt;
cPanel can be used to host various software, including WordPress, Python Apps, PHP apps, Node.js apps, etc.&lt;/p&gt;

&lt;h2&gt;Deploying to cPanel&lt;/h2&gt;

&lt;h3&gt;The cPanel interface&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fisnqbvlk1yfy3akmqhf8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fisnqbvlk1yfy3akmqhf8.png" alt="The cPanel Interfacet"&gt;&lt;/a&gt;&lt;br&gt;
This is the default cPanel interface, customizable to user's taste.&lt;/p&gt;

&lt;h3&gt;Locate the File Manager&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Flybvadc7z4swurnqeym0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Flybvadc7z4swurnqeym0.png" alt="Locate the file manager"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;Find the public_html folder&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fpkepgf4dba5ga2yakvka.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fpkepgf4dba5ga2yakvka.png" alt="The public_html folder"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;Locate the Upload button&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fyzwc6fgjdrcjr7wxs91p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fyzwc6fgjdrcjr7wxs91p.png" alt="Upload"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;Upload a &lt;b&gt;zipped folder&lt;/b&gt; of all the site files&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fx9q4dlh27gsbly93w79x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fx9q4dlh27gsbly93w79x.png" alt="Upload a zipped folder"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;Back to the file manager, and &lt;b&gt;extract&lt;/b&gt; the files.&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ft9s1993ix6at6lqbalp9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ft9s1993ix6at6lqbalp9.png" alt="Back to the file manager"&gt;&lt;/a&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fwaykhmwa0tpq0qrg95rv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fwaykhmwa0tpq0qrg95rv.png" alt="Extract the content of the zipped folder"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;Replace all necessary information, such as server name, username, and password, for connecting to your database&lt;/h3&gt;

&lt;p&gt;With this, your PHP app should be visible at the domain (&lt;a href="https://website.com" rel="noopener noreferrer"&gt;https://website.com&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;You could reach out to me on &lt;a href="https://twitter.com/temi0x" rel="noopener noreferrer"&gt;Twitter&lt;/a&gt; if you encounter any issues along the way&lt;/p&gt;

</description>
      <category>php</category>
      <category>cpanel</category>
    </item>
  </channel>
</rss>
