3

So I'm trying to make a faucet for my blockchain. What I'm doing is creating a faucet account with a lot of balances (with the set_balance method from the sudo pallet). When there's a drip request, I transfer some balance from this faucet account to the requested account. Am I doing it right? If not, how should I do it?

2
  • 1
    Sounds about right to me.
    – kianenigma
    Feb 15, 2022 at 9:19
  • 1
    I would do it the same way. Feb 15, 2022 at 13:39

1 Answer 1

1

I do the same thing as you. And AFAIK it may be the right way to do the faucet.

And also, you can improve your plan with a small balance in the faucet account at first, for example 1000 $XX, and set a low watermark warning threshold, when the balance arrives there, add more balance to the faucet account. In this way, you didn't lock too much token in the faucet account, and can act as a great faucet at the same time.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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