BlockScience Team
      • 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
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee
    • 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
    • Engagement control
    • Transfer ownership
    • Delete this note
    • 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 Sharing URL Help
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
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee
  • 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
    # Introduction The BlockScience team ran 4800 monte carlo simulations across a wide variety of both parameter constellations as well as behavioral signals to stress test aspects of the lending program. Below is the distillation of the much larger report that can be found [here](https://gitlab.com/thorchain/misc/cadcad-thorchain/-/blob/main/research/20230731%20Report.ipynb?ref_type=heads). # KPIs The following KPIs were utilized in evaluation of the system success for different simulations. ## Circuit Breaker KPI The circuit breaker KPI is marked as true if at no point during the simulation there is a period where the circuitbreaker is hit. ## Liability Management KPI The liability management KPI finds all the period liabilities (based on what value of RUNE would be if a loan were to close minus the cost to close) and determines if at any point during the simulation this value is 110% of the burned RUNE available. If the swap fees came in at 10% or less, the circuit breaker would be triggered from these loans closing. Of course it is unlikely all closes at once, but it is meant to be a flag for potential danger especially if conditions worsen. A value of 1 means that at no point were liabilities at this level or greater. ## Minimum Haircut KPI The minimum haircut KPI is meant to represent the importance of the borrower stakeholders. It finds the average of the collateral amount received on loan close divided by the collateral amount given at loan initiation and tests whether this number is less than 10%. A value of 1 means that on the average borrowers are taking no less than a 10% haircut on the collateral they put into the system. ## Net Burn KPI The net burn KPI measures whether or not the inflation KPI indicator is negative at the end of the simulation timeframe. It is important to note that this version does NOT include the liability on the other side from unclosed loans. A value of 1 means there was a negative inflation value. ## Net Rune Burn w/ Liability This KPI is the same as the net burn KPI except it includes the current liability. A value of 1 means there is a negative value for inflation + current liability on loans. ## Liability Management 2 This KPI takes the original liability management KPI a step further. It checks if at any point the net burned rune plus the liability were ever greater than 2/3 of the starting net burned rune. A value of 1 means that at no point was the liability + net burned rune greater than or equal to 2/3 of the starting burned rune. ## Success Criteria 1 The first success criteria is the less conservative one which is a success if all the following KPIs are also a success: 1. Circuit Breaker KPI 2. Liability Management KPI 3. Minimum Haircut KPI 4. Net Burn KPI ## Success Criteria 2 The second success cirteria is a success if all the following KPIs are also a success: 1. Circuit Breaker KPI 2. Liability Management KPI 3. Minimum Haircut KPI 4. Net Burn KPI 5. Net Rune Burn w/ Liability 6. Liability Management 2 # Conclusion 1: The Influence of Behaviors & Price Changes From a KPI perspective, the biggest driver of success or failure comes from outside influences on the system. But it is not just the directionality of signals such as price changes, but more importantly the volatility of the signals that drives much of the impacts. It is important to remember that the loans share some similar behaviors with an option, including one-sided risk (there is a finite amount of deflation that could happen from a loan open, but an infinite amount of inflation based on how collateral outperforms RUNE). Thus volatility has a negative correlation with system success in many ways. As well, worst case scenarios or black swan events are very hard to prepare for. Put simply, if collateral goes 10X up and RUNE goes to 1/3 its starting value over a period, the lending lever needed to contain that doomsday loss is so small it would be unreasonable. To summarize, outside factors will have a very large impact on system success, and specifically the volatility of outside factors such as price changes will have large impacts. # Conclusion 2: Derived Pool Parameter Tradeoff There is an interesting tradeoff that occurs for the derived pool parameters. The more conservative versions favor most of the KPIs and have a large influence on them, but the minimum haircut KPI has a negative correlation to more conservative parameters because it means that more often the implied fees are higher. The maximum anchor slip is the parameter that is important to discuss in this context. When it is lower, the haircuts that borrowers take become larger. When it is higher, there is a much less pronounced steepness with which haircuts begin to become large. One can view these parameters as the counter-balance to much of the risk that the lending program brings. Similar to insurance policies, premiums are taken out on each trade in anticipation of potential loan closes that go against the lending protocol's deflation. Because of the both the positive and the negative influences on the KPIs for derived pool parameters, decisions on the level of conservatism to use must be preceded by defining the importance to assign to each KPI. # Conclusion 3: Impacts of the Lending Lever and Collateralization Ratio The lending lever can be seen to amplify total volatility for both the inflation and inflation with liability metric. As it becomes larger and relaxes more the ability to open loans, the volatility of simulation inflation/liabilities grows with it. The collateralization ratio has effects that might be of interest for more studying. Overall, however, the likely explanation is that in these scenarios, the higher maximum collateralization ratio is leading to a less volatile but higher liability. The lower volatility makes sense because as the "strike price" on closing the loan goes down, it makes the liability more and more often in the money. It begins to approach modeling exactly price risk without the optionality component. The higher overall liability makes sense because the average price increase in these simulations is positive. A higher collateralization ratio means there is a larger overall exposure to increase. # Parameter Recommendations | Parameter | Value | | -------- | -------- | | Lending Lever| 1/4-1/3 | |Minimum Collateralization Ratio | 2 | | Maximum Collateralization Ratio| 3-5 | |Derived Depth bp| 10000 | |Max Anchor Blocks| 300 | | Max Anchor Slip| 6000 | | Derived Minimum Depth| 1000 | Overall, the parameter recommendations are meant to balance different stakeholder groups in the ecosystem. The lending lever provides a range where larger dislocations between collateral price appreciation and RUNE price appreciation won't be catastrophic because the system is not highly leveraged. The maximum collateralization ratio can be set higher or lower depending on preferences... a lower one provides more stability against price movements (the parameter exploration notebook details why this may be), but a higher one provides more stability in reducing demand when the program is near capacity. The derived depth parameters came out of discussions about how to ensure high enough haircuts were applied on collateral to avoid bank run scenarios + earn premiums for risk while still allowing for users to receive a fair amount of their collateral back during normal times. All of these recommendations are meant to be just that, recommendations. In any cases where the general community or 9R team disagrees, it may be sensible to ignore in favor of other parameter values. All of these parameters hold within their own tradeoffs... on a pure risk perspective, having a lending lever close to 0 would reduce almost all risk, but that ignores the very real consideration of program success and revenues that a higher lending lever allows for.

    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