1

Is it possible to create a token that you can mint on demand?

Some possibilities might be to allow a specific wallet to execute the minting command, or to set the price ahead of time, or to use other data on the blockchain to set the price.

My assumption is that this would be too expensive with current ERC-20 contracts, since most of them mint all the tokens at once and issue them over time.

One possible workaround might be to issue the tokens all at once, then send them to a smart contract which will sell them based on a formula built into the code.

2

It is not rare, farming tokens create token on demand. OpenZeppelin's contracts has a mint functionality that can be made callable under certain circumstances.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.