Skip to content

Instantly share code, notes, and snippets.

@adamkrellenstein
Created August 2, 2024 12:59
Show Gist options
  • Save adamkrellenstein/e21a38c643c5bf2f4dc58952becc6d7c to your computer and use it in GitHub Desktop.
Save adamkrellenstein/e21a38c643c5bf2f4dc58952becc6d7c to your computer and use it in GitHub Desktop.
Eliminate XCP Fee for Subasset Issuances

Eliminate XCP for Subasset Issuances

Motivation

XCP fees for issuances are principally an anti-squatting mechanism (since the BTC fee is sufficient in this case to prevent true SPAM). For subassets, which are namespaced by the parent asset, there’s no need to limit the number of issuances in any way.

Design

Fees are calculated in the issuances.validate() function.[1] A protocol change free_subassets will be added in the protocol_changes.json file. From this block on, the function issuances.validate() will return fee=0 for all subasset issuances.

API Changes

No API changes.

Database Changes

No database changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment