Coder Social home page Coder Social logo

metrics's Introduction

metrics

Dune Analytics / Google BigQuery SQL Queries for OpenMEV/Sushi Relay

https://dune.xyz/manifold/Manifold-Finance

Arb Volume

https://dune.xyz/embeds/17821/36015/52b2257a-31b2-493e-be35-373313c1a39c

Anatomy of a Gas Rebate

Assumptions

maxPriorityFeePerGas= 2.5 Gwei

See Appendix 1 for how this is calculated

  maxPriorityFeePerGas = BigNumber.from("2500000000");
  • Miner Bribe = maxPriorityFeePerGas * 1.00175

  • Miner Fees: (original transaction gas fee) + [ Miner Tip (bribe) ]

  • User Eligible Rebate: (original transaction gas fee / 80% Confidence Gas Level )

  • Sushi Payouts = [ Miner Tip (bribe) ] + [User Eligible Rebate]

  • Gas Rebate Normalized Total Cost:

  • maxPrice
    Highest priced transaction in the mempool

  • currentBlockNumber
    Block number at the time of prediction

  • msSinceLastBlock
    Milliseconds since the last block was mined relative to when data was computed

  • blockNumber
    Block this prediction is for

  • baseFeePerGas
    Base fee per gas for current block in gwei. (Only type2 transactions Post EIP-1559 have this value and it's burned by the network upon transaction success).

  • estimatedTransactionCount
    Number of items we estimate will be included in next block based on mempool snapshot

  • confidence
    0-99 likelihood the next block will contain a transaction with a gas price >= to the listed price.

SushiSwap

{ 
  "contractCall.methodName": [ 
            "swapETHForExactTokens", 
            "swapExactETHForTokens", 
            "swapExactETHForTokensSupportingFeeOnTransferTokens",
            "swapExactTokensForETH", 
            "swapExactTokensForETHSupportingFeeOnTransferTokens",
            "swapExactTokensForTokens", 
            "swapExactTokensForTokensSupportingFeeOnTransferTokens", 
            "swapTokensForExactETH",
            "swapTokensForExactTokens"
  ] 
}

Appendix 1

[see hackmd]

metrics's People

Contributors

sambacha avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  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.