3

This question already has an answer here:

I would like my customers to send a custom token without thinking of a certain amount of ether for gas. So I've tried the standard-token at ethereum.org. There's a way described to auto refill the sender address:

Then, add this line to the transfer function so that the sender is refunded:

/* Send coins */
function transfer(address _to, uint256 _value) {
    ...
    if(msg.sender.balance<minBalanceForAccounts)
        sell((minBalanceForAccounts-msg.sender.balance)/sellPrice);
}

But that only works if the sender got ether at least once, as a zero amount of ether will prevent the first token tx.

Is there any way, that my customers don't need to care about ether when they exchange my Dentacoin token?

(I could add a contract, that sends ether to all addresses listed in the token address mapping, but that contract would be drained very soon, right?)

I appreciate any ideas!

marked as duplicate by soc1c Oct 19 '16 at 12:26

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.