I'm trying create a smart contract that allows customers to refund there ethereums if the pre-order of the token is unsuccessful.
Is it possible to create a function in the contract to be used by the investors for refunding, so that the gas is for the refund transaction is payed by the investors. And if so how can one achieve that.
The main goal is to have a refund build into the smart contract but to avoid the creator of the ICO to pay a lot of fees for refunding.