GithubHelp home page GithubHelp logo

yolochain's Introduction

YoloChain

Its HOT(holochain) but it baits bots instead.

How it works

The token is a standard ERC20 token, modified to query a seperate, upgradable contract for true transfer amounts. Example

[Bob tries to transfer 100 YOT to Alice]

➥ [YOT] -> [FM3]

➥ [Transfer 100 YOT from Bob to Alice] returns (50)

➥ <End; Bob: 0, Alice: 50>

The external contract enforces the amount received by the receiving user, or can revert if the transaction shouldn't happen, but the full amount is removed from sender

Baiting bots that use FlashBots

Most bots that use flashbots dont double check tokens if theyre sellable or not, because the bundle wont be included unless miner coinbase is paid (typically in the trailing sell tx). However reverting transactions are able to be included, if the rest of the bundle is profitable. Knowing this, all we have to do is pay the miner instead of the frontrunning bot. However if we pay the miner regardless, the bundle will not be included because of profit switching (a non-flashbots block will be added if the flashbots block is less profitable). So we must make sure that we only pay the miner if it is apart of the bundle. This can be done via adding a tracker that will track if the token has been bought in that block. If it has, then allocate funds to coinbase, else just proceed as a normal tx.

Wen protecc? idk. good luck?

yolochain's People

Contributors

code0x2 avatar

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.