Cory
    • 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
    • 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
    • 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 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
  • 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
    # Min Fee Discussion March 16, 2021 ## Attendees - Sam Hart - Cory Levinson - Aleks Bezobchuck - Robert Zaremba - Zaki Manian - Ethan Buchman ## Agenda - Actionables from last time: - building sane default into the binary - Disallowing zero fee (except for specific operations like delegator withdraw) - Is this sufficient to address problems regen outlined? - Alternatives - fixed base fee that can be changed via governance - could this be used in conjunction with elasticity based on non-emty blocks? - Split between single denom / multi-denom - EIP-1559 solution space - Cornell solution (https://arxiv.org/pdf/1901.06830.pdf) - what kind of fees should be accepted - any? - whitelist by gov? - authz can blow up state - considering small bond amount for authz operations - zaki: ship single currency with sdk - creates ux issues for users --- March 9, 2021 ## Attendees - Sam Hart, Cory Levinson, Aleks Bezobchuck, Aditya Sripal, Jack Zampolin, Aaron C, Robert Zaremba, Marko Baricevic, John Adler, Zaki Manian ## Agenda - Framing: Min-fee (spam prevention) vs base-fee (price predictability + MEV harm reduction) - Upcoming changes to mempool + block execution - required before some fee models are possible - What risks do we face in the next 6-12m before this happens? (Hub + other zones) - What intermediate solutions are required in this timeframe? ## Notes - Sam: Context is there was a conversation in #economics channel in cosmos hub discord, but also this came up through an earlier issue raised by Regen Net - Regen Network is launching their chain and has specific concerns around spam prevention (mainly aimed at new chains without a significant amt of transaction demand) - There are fee models proposed in Eth ecosystem (https://eips.ethereum.org/EIPS/eip-1559) - We need to be aware of changes coming to tendermint & SDK so we know where we're going w/ fee models - Aaron: From our end, the requirement is that there's a way to ensure that there aren't high impact operations that can be performed with zero cost - e.g. state storage (0-fee transactions with msg's that bloat state) - Few weeks ago we had an architecture call to discuss one proposal: - There could be a block fulfilment threshold, and the fee would dynamically adjust based on wether threshold is reached - The issue is that if you're working w/ a low-volume chain, fees will drop to 0 as block fulfilment threshold would not get met - The other proposal was to have validators signal with a desired min-fee, and you take some median of that - A few of the newer modules (authz module) allows for you to create dummy accounts and give them all permissions (to do nothing) - On the Regen side, we allow for the creation of new denoms, or store arbitrary amounts of data on-chain. - Sam: Can someone speak to IBC concerns? - Aditya: IBC introduces a lot of state to the hub. Clients are going to be a big part of IBC (you're submitting headers and keeping track of consensus states...) - The concern that Aaron repeated is the same in IBC. IBC doesn't really care about fees but does want prevention of spamming / DOS vectors - Sam Hart: I've been thinking about long term changes to the fee model, and there's a bunch of things that we need to put in place before we can make more readical cahnges to how we're doing fees - Sunny: With more advanced fee models (EIP-1559) are designed for cases where there is full demand for block space - If there's no consistent demand for blockchain, fees go to 0 - From an economic standpoint, we still want to make sure there's some minimal fee - Sunny: We need a way to convert fees into the single base asset. - Marko: One question from my side - Are we talking about making a decision for everyone using the SDK? Or is this about allowing chain developers to provide their own fee models - Sunny: I think it has to be pluggable. But the default in the base repo is really bad. - Sam Hart: The validator signaling strategy -- can you fill in some more gaps here, Sunny? - Sunny: You'd have a medianizer where every validator can signal what they think the min-fee should be. How ever occasionally they want, a validator can update the min-fee. - Validators then would need to have something to update the min-fee at some regular interval (say every day it may update the min-fee based on atom price) - This script would require validators to have a hot key. So it may be valuable to utilize msg auth here. - You could also delegate that to a 3rd party. - Aaron: The one thing that isn't quite answered by this proposal, is how do you set quorum, and what do you do if you don't have a quorum? Lastly, do some votes become stale? - Sunny: Every validator should submit an initial min-fee with GenTx. - Maybe we can have something to determine min-fees as stale? - On the next upgrade, we can propose a reasonable min-fee - Sam: The thing that I dislike about this is multi-denom. It seems like a lot of mental overhead to be setting min fees for every - Aaron: I think the administrative overhead would be taken care of by some price feed API - Sam: And now you have a system where everyone is dependent on these price feeds - Sunny: This is what oracles are though. - Aaron: Do you have a sense of how may validators are setting min-fees? - Sunny: Some validators set to zero, for Sikka we rarely upgrade. Some users have complained that our fees are too high. I disagree and think fees should be raised right now. - Sam: Both of these proposals seem unreasonable to tackle within the scope of 6-12 months - Aaron: One option is, building into the binary, a sane default minimum. - Sunny: That sounds totally reasonable. - Sam: We could also disallow zero fees. So that they cannot be absolutely zero. - Aaron: One weird point that we've encountered, we realized that if we don't have 0 fees at genesis. So there's this weird thing that when you launch, you actually need 0 fees for a while at the beginning. - Sunny: You could also say that Delegate & Withdraw don't actually need fees. - Sunny: Two issues for per-node min fee configurations: - you can't actually query what the min-fee is - Full nodes filter based on their min-fee to determine how to propogate transactions in the network - Aaron: This points to how on the social level. We need to decide if we decidedly want to rely on social coordination for this. - Sunny: I'm 100% EIP-1559. If its something that takes a few months to implement, we should probably go for it. - John: With LazyLedger we are planning on using essentially the same thing as EIP-1559, as it gives a flexible blocksize cap. With a completely in-protocol adjustement of base fee. We are also doing single denom for the fee. - Zaki: There seem to be two camps here: - Multi denom fee maximalist for UX - Probably requires AMM / Oracle - Single denom fee maximalist for mechanism design - Can use EIP-1559 model - Sunny: This preference comes down to a chain preference. Cosmos Hub may prefer multi-denom, whereas Regen likely leans towards a single denom model. - Aaron: What if we explore a little more what sunny was brinigng up, in the current mem-pool design - Sam: what about client-side proof of work - Zaki: not great for mobile users Wrap-up - Two immediate actionables: - Builiding something into the node - Adding a sane default - Beyond that, we've identified this single denom v multi-denom paradigm - Aaron: Let's have a follow-up meeting and try to keep at having this conversation until there's more consensus about which approach we take ## Follow-up

    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