Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback on Fairminters #2250

Open
droplister opened this issue Sep 24, 2024 · 0 comments
Open

Feedback on Fairminters #2250

droplister opened this issue Sep 24, 2024 · 0 comments

Comments

@droplister
Copy link
Contributor

Looking forward to mints, did not have time to review the spec until now. Here is some feedback:

commision:
I don't think it makes sense to set a max commission, but UI/UX developers should alert people if commission is 100%.

asset issued if soft cap unmet:
Does the asset get issued if soft cap is unmet? This makes sense, but it may be good to mention this somewhere.

max start and end block:
One of the issues I see with dispensers is they never expire which over time encumbers the network with maintaining their functionality indefinitely, as-is. We could lessen this impact for fairminters with a max start and end block, relative to the current block. (5-10 years?)

max soft and hard cap check:
Could make sense to check against config.MAX_INT like how issuance does.

asset_parent and {asset_parent}.{asset} concatenation:
This is unlike other parts of the codebase. I think people may accidentally issue "PARENT.PARENT.ASSET" with this setup.

if asset_parent != "":
asset_name = f"{asset_parent}.{asset}"

There is a parse_subasset_from_asset_name utility that could be used and then the compose fairminter call could accept just an asset like how an issuance works. I also think using subasset_parent instead of asset_parent would be more consistent. There may be other utils for subasset names that could be shared.

subasset_parent, subasset_longname = util.parse_subasset_from_asset_name(
asset, util.enabled("allow_subassets_on_numerics")
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants