Consider allowing faucets to issue multiple fungible assets #3075
PhilippGackstatter
started this conversation in
General
Replies: 1 comment 2 replies
Could we not just introduce a new procedure? Something like: This would be a pure addition. All old code remains as it was (and so already deployed faucets are not affected), but new faucets will be able to use the new code to create a broader set of assets. Or am I missing something here? |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary: Consider changing fungible asset validation to not require that asset ID limbs are set to zero. This would effectively allow a faucet to issue multiple fungible assets.
Originally posted by @bobbinth in #2630
At the protocol level we can technically allow this later, but it would be an invasive change nonetheless: We'd need a second variant of the
create_fungible_keyprocedure that takes an asset ID as input. All procedures that call that procedure would have to gain a second variant as well, which ripples quite far. Note that changing the original procedure is not possible after mainnet, since it would break its MAST root.By my read, this would, for example, affect the agglayer's
unlock_and_send, which callsasset::create_fungible_asset. This agglayer code path seems to only store the faucet ID for fungible assets, and so adding support for fungible assets with arbitrary asset IDs seems to require breaking changes at that level.I mention this now while we still have time to potentially prepare for this change.
All reactions