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

Add option to set allowance during mint #101

Open
hard-nett opened this issue Oct 24, 2024 · 3 comments
Open

Add option to set allowance during mint #101

hard-nett opened this issue Oct 24, 2024 · 3 comments

Comments

@hard-nett
Copy link

Multi-contract systems involving snip20's could benefit from having an optional field in the mint function to set an allowance for another wallet address.

@assafmo
Copy link
Member

assafmo commented Oct 24, 2024

what's the use case here? the minter is usually not the recipient of the funds, and if it is you can send a multi-message tx.

@hard-nett
Copy link
Author

what's the use case here? the minter is usually not the recipient of the funds, and if it is you can send a multi-message tx.

Theres a few:

  • non-custodial loans: An escrow contract can be granted allowance when new tokens are minted to automatically send itself the snip20 as collateral
  • distribution-gauges: create supply managed by results of custom gauges.
  • custom derivative policies: enforce various requirements on snip20 derivatives, similar to gauges.
  • game-fi: allow game creators to implement custom strategies while making use of snip20

@assafmo
Copy link
Member

assafmo commented Oct 24, 2024

gotcha, sounds interesting

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

No branches or pull requests

2 participants