Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • Thank you very much for the answer! Thank makes a lot of sense to me. However, just one further question, can the "pre-committed" pattern be used to defeat potential TOD attack shown in my post? I updated my question. Commented Aug 4, 2019 at 15:13
  • To have a privileged account able to change important parameters at will is a different kind of attack. A solution used by exchanges is to submit a price range. If the price has varied a lot they will discard the operation. Commented Aug 4, 2019 at 15:56
  • thank you very much! I believe this is what I am looking for. Also, could you shed some lights on how exact the raffle contract works? Let's suppose a malicious actor intentionally fails other user's submission of 2 Ether, then would the 2 Ether be returned back to the victim user or not? Commented Aug 5, 2019 at 1:44
  • For failed ethereum transactions the ether is returned minus the fees (for auction type contract fees can be very high). An important cost to consider is the missed opportunity. Commented Aug 5, 2019 at 4:19
  • @Ismael, nice answer. Though, I'd love to hear your opinion on my question too: ethereum.stackexchange.com/questions/93727/… Commented Feb 20, 2021 at 20:33