Post
Topic
Board Announcements (Altcoins)
Re: [ANN] Token0x - Ethereum 2.0
by
blockstarter784
on 14/07/2018, 06:41:43 UTC
How refund is working?

The refund is applied to all transactions.
Does not matter you send it to smart-contract or single address. This is a core change of Ethereum EVM.
Refund is a property of the protocol but not a case of smart-contract
But smart-contracts are extended as well. Developers are able to check the level of trust

```

    
    function sendTo(string name) public payable {
        if (msg.refundDays == 0) {
            ...
        }
        else if (msg.refundDays == 1) {
            ...
        }
        else if (msg.refundDays == 10) {
            ...
        }
    }

```

If I did not answer please ask more questions. I am here to answer

But in case you sent refund period 0 then you will be not able to refund. Simple like in ETH