Giter Site home page Giter Site logo

Comments (2)

greenlucid avatar greenlucid commented on June 17, 2024

right now flash withdrawals are allowed on the contract level, in order to avoid people from engaging with these shenanigans. It just requires accepting the big burn (dispute burn)
flash withdrawals could be removed, but i need to reconsider

from stake-curate.

greenlucid avatar greenlucid commented on June 17, 2024

Flash Withdrawal was removed. It cleared bytecode, and there's a design reason for it's removal.
With Flash Withdrawal, snipers could guarantee a maximum loss of burnRate if they manage to frontrun the challenge reveal.
Without it, and in the current design, snipers need to fight:

  • Regular frontrunning war. All the following info and expenses are futile if sniper cannot get their challenge reveal to process first when it matters.
  • Prepare challenge commits. Commits can be revealed within a period, so, if there's no revealed challenge to snipe within this period, the commit can solve in three different ways:
    • If they get revoked (like, timed out) they endure a burnRate.
    • If they get revealed and are successful, regular burnRate applies.
    • If they get revealed and fail, all repeatable conditions for making challenge reveals fail, will trigger a smallBurnRate.
    • If they get revealed and fail due to a non-repeatable condition, a full refund is issued, but those should only happen accidentally.
  • Many commits would be needed to guarantee being able to frontrun a reveal, which will turn this strategy unfeasible long term. This means there are also continuous gas expenses to prepare commits, replicate conditions to make the reveals fail before they timeout.
  • Finally, MEV bribing expenses may need to be taken into account, in order to get the frontrun to succeed when it needs to.

from stake-curate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.