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

MintAndBurnReplyUpdate #294

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ItsJackAnton
Copy link

@ItsJackAnton ItsJackAnton commented Jul 15, 2024

This update allows the implementation of extension handlers that listen to Minting and Burning tokens.

Example: I am building a lending protocol that implements my lending blueprint and the token's blueprint. I want to allow lenders to deposit "X" tokens in my lending process and get back temporally tokens that they can later use to claim back their deposited tokens. So, I need a way to listen when my lending process mint new tokens to instantly transfer them to the lender who made a deposit.

Now with this update, I can write handlers to listen to "Mint-Notice" and "Burn-Notice" to do further logic.

This update allows the implementation of extension handlers that listen to Minting and Burning tokens.

Example: I am building a lending protocol that implements my lending blueprint and the token's blueprint. I want to allow lenders to deposit "X" tokens in my lending process and get back temporally tokens that they can later use to claim back their lended tokens. So, I need a way to listen when my lending process mint new tokens to instantly transfer them to the lender who made a deposit.

Now with this update, I can write handlers to listen to "Mint-Notice" and "Burn-Notice" to do further logic.
@ItsJackAnton ItsJackAnton force-pushed the ItsJackAnton/TokenBlueprint/MintAndBurnReplyUpdate branch from 15475ad to 66e1acb Compare July 15, 2024 19:48
Implementing forwarding tags to mint and burn notice allows to pass arguments to extension handlers that are listening to the mint and burn notice.

An example of this could be executing the mint action with a forwarding tag that contains a recipient you want to transfer the tokens right after minting the tokens.

Another example could be executing the burn action that allows you to do some specific tasks based on the forwarding tags you specify
The title is self explanatory :)
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

Successfully merging this pull request may close these issues.

1 participant