Coder Social home page Coder Social logo

l2-fees's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

l2-fees's Issues

Loopring's Swap Token Column displays not enough information

Summary

Currently it shows that Loopring (see image) cost 0.39 dollar cent for each swaps. Which is not the problem, but swapping through orderbook on the platform can cost the end user nothing. They could even earn additional money by using this feature.

image

What I expect

Would be nice if we could optionally show additional information within the Swap Token column for each Protocol. Just like how l2Beat.com shows more information for each protocol.

So in this case for Loopring, the swap cell will be seperated in two different columns:
|$0.39 / $-0.20(through orderbook)|

Add raw L1 gas cost per tx

For example zkSync uses about 400 L1 gas per transaction and optimistic rollups use about 4000 L1 gas per transaction. It could be interesting to know for people who are choosing a rollup or just starting out their research

sources: https://zksync.io/faq/tokens.html
" for every zkSync block, the validator must pay Ethereum gas to verify the SNARK, plus additionally ~0.4k gas per transaction to publish the state"

https://community.optimism.io/docs/users/fees-2.0.html#frontmatter-title
"l1GasUsed is calculated as 1.5*(2750 gas + calldataGas)"

L2Fees - Sort by 'Swap Tokens'?

Hi, starting a discussion.

Today, L2fees.info sorts L2 tx fees by Send ETH. It seems like L2s relative rankings on fees to Send ETH vs fees to Swap Tokens vary quite a bit.

What are thoughts on sorting by 'Swap Tokens' instead? By a rough estimate, Optimism and Arbitrum both do 8x the amount of transactions for DEX trades than for ETH transfers: https://dune.com/queries/2617904

Suggestion: use a rolling average instead of real-time prices

L2Fees currently uses real-time prices. However, rollup prices fluctuate quite heavily with time (since L1 fees fluctuate heavily) and it's likely that the price that the user will pay by the time they execute a transaction is quite different than the price displayed by L2Fees.

There's also the issue of accurate comparison: L2 prices update at different rates and I'll often see one network with a much higher cost than another for a few minutes and then refresh the page to see that the rates have equalized. A user who views the page during this time window might have a very unrealistic view of the average costs of different networks. Since L2Fees is mainly being used to compare overall costs (not for estimating real-time costs), I think it makes more sense to use a rolling average over some short time window (maybe 24 hours?).

Add GitPOAP to this repo!

Since this project is so web3 it could be a good idea to install GitPOAP!
form here: https://www.gitpoap.io/#suggest

Recognize, nurture, and grow your community of contributors through the distribution of GitPOAPs & help them build an unbiased record of their work.

Updates for Optimism Bedrock

Hi, I was looking at the Optimism fees adapters & they reference subgrapghs that don't seem to be public. I wanted to make sure the appropriate changes got in before Bedrock migration on June 6.

L2 Transaction Fees:

L1 Data Costs

The formula to calculate costs per transaction should not change, but see https://www.optimism.io/bedrock-upgrade for more information!

Optimism Security Costs - Missing CTC Submitter

Optimism 'One Day Security Costs' are only showing costs for the State Commitment Chain (SCC) Submitter, but it is missing fees payed by the Canonical Transaction Chain (CTC) Submitter (i.e. it shows $39k for June 2, 2022 when the actual value is 78.7 ETH ~$143k)

Adding costs paid by Canonical Transaction Chain 0x6887246668a3b87F54DeB3b94Ba47a6f63F32985 submissions would resolve the issue.

Charts for Reference: https://dune.com/optimismpbc/optimism-l1-batch-submission-fees-security-costs

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.