Axel Cortes Cubero
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Collateral recovery opportunity vs network growth ## Introduction We generally expect that sector collateral decays over time. This creates generally an incentive to seal the shortes sectors possible, as long as the costs associated with terminating and resealing a sector are low enough. On the short term, however, the cost of collateral may behave in more unexpected ways, particularly if there is a sudden decrease in the network onboarding rate. Here we explore the precise relationship between network power and collateral recovery opportunity. ## Definitions We define $P(t)$ to be the total network QAP at time $t$. The onboarding rate is given by $O(t)=\frac{dP(t)}{dt}$. We define $R(t)$ as the total network *raw* power. The effective circulating supply, $C(t)$, is defined as the amount of FIL that has been minted, which has not been burned, or is not locked at time $t$. We define $B(t)$ to be a "burn rate" function, which characterize the percentage of circulating supply that is typically burned at a given time. We define $N(t)$ as the rate of token minting at time $t$. The circulating supply then satisfies the following differential equation, $$\frac{d C(t)}{dt}=N(R(t))-B(t)C(t)-\frac{d\mathcal{P}[C,P,R](t)}{dt},$$ where we have defined $\mathcal{P}[C,P,R](t)$ as the amount of tokens that are locked at a given time as pledged collateral, which depends on the history of C, P, and R. The cost of collateral at a given time, $\mathcal{L}(t)$, is given by the sum of consensus pledge and storage pledge: $$\mathcal{L}(t)=x\frac{C(t)}{{\rm max}(P_{\rm baseline}(t),P(t))}+{\rm BR}_{20d}(P(t),R(t)),$$ where $x=0.3$, $P_{\rm baseline}(t)$ is the baseline power, and the second term is the storage pledge, given by a prediction of the block reward for the next 20 days, based on current information about the raw power and QAP. We further define $S(t)$ as the cost associated with resealing a sector at time $t$. ## Tokens locked as collateral For our model, we make the following assumptions about storage provider behavior: 1) We assume providing storage is profitable, so all SP's want to continue storing and making profit. 2) All SP's are rational and will continue providing storage in the most profitable way. We assume all sectors are sealed with a lifetime, $T$. After the end of a sector's life, the SP may choose to either extend the sector, for another period of time, $T$, or to terminate the sector, release the collateral, and reseal the sector for another period $T$. This will be chosen if the value obtained from releasing the old collateral and resealing at a lower cost is enough to overcome the additional resealing costs. In other words, terminating and resealing will happen if $$V(\mathcal{L}(t)-\mathcal{L}(t-T))\ge S(t)$$, where $V(x)$ is the value gained by retrieving and making usable $x$ amount of locked funds. We further define the **collateral recovery opportunity** function $$L[C](t)\equiv\left\{\begin{array}{cc}\mathcal{L}(t)-\mathcal{L}(t-T),& {\rm if} \,\,\,\,V(\mathcal{L}(t)-\mathcal{L}(t-T))\ge S(t)\\ 0,&{\rm else.}\end{array}\right. $$ We explicitly note that $L[C](t)$ depends on the history of $C$, as this will be good to know later. We can now write an equation following the logic from [here](https://hackmd.io/@R02mDHrYQ3C4PFmNaxF5bw/r117DMU9Y), assuming every period $T$, an SP whoose sector is about to expire either extends, or terminates and reseal their, whichever is most profitable. The amount of token locked as pledge collateral, $\mathcal{P}(t)$ is then given by the equation, $$\frac{d\mathcal{P}(t)}{dt}=\mathcal{L}(t)O(t)+L[C](t)\sum_{n=1}^{\lfloor t/T\rfloor}O(t-nT).$$ This can now be plugged back into the differential equation of the circulating supply: $$\frac{dC(t)}{dt}=N(t)-B(t)C(t)-\mathcal{L}(t)O(t)-L[C](t)\sum_{n=1}^{\lfloor t/T\rfloor}O(t-nT).$$ ## Solving the differential equations The problem can then be solved the following way, 1) Discretize time, turn into a difference equation, $$C_{t+1}=f(C_t)$$ 1) Provide some input for the equation: this would involve some assumption about network growth, $P(t),R(t)$, as well as an initial condition for the circulating supply $C(0)$, and some assumptions about $B(t)$ and $S(t)$. 3) Start at $t=0$, and calculate $C_t$ time-step by time-step using the difference equation. 4) For every timestep now we can calculate the collateral recovery opportunity $L[C](t)$. To do: it is now possible to test some assumptions, for instance having network growth $P(t)$ be exponential until time $t^*$, and then become linearly growing, and see the impact on $L$.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully