Giter Site home page Giter Site logo

Comments (1)

greenlucid avatar greenlucid commented on September 23, 2024

CHALLENGE_WINDOW ended up being important for the UX. Just like Uniswap (by itself, or wrappers) passes safeguard arguments to revert in case something goes wrong, here you need to pass the editionTimestamp in case the item gets accidentally (or, purposely) edited on the lapse of time between choosing the challenge, and the tx getting included.

If you are giving the challenger leeway to choose past editions, then they could choose to challenge old editions that don't matter anymore, just to obtain rewards. So you need to limit it somehow, like with this CHALLENGE_WINDOW.

Another topic I reflected about, why 4h for commit timeout? Isn't that excessive? 1h should be enough time to reveal under regular circumstances, and it would allow for either BURN_RATE or MIN_CHALLENGER_STAKE_RATIO to decrease significantly.

In that case, you could go with these settings and still get sniper to burn 10% stake for every item and day they perform sniping attacks:

uint16 public constant MIN_CHALLENGER_STAKE_RATIO = 2_083; // 20.83%
uint16 public constant BURN_RATE = 200; // 2%
uint32 public constant MAX_TIME_FOR_REVEAL = 1 hours;

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.