Git Product home page Git Product logo

Comments (2)

eth2353 avatar eth2353 commented on September 23, 2024

I haven't thought about that, mostly because I didn't need it myself so far and nobody else asked for it. Also I'm not doing very much with this repository, I'm more focused on bringing new features to the webapp available at ETH2.tax (especially more detailed validator performance statistics, but that's beside the point).

If you want to add some of those numbers (CB/STCG/LTCG) and append it to the end of the output CSV / console, I'm all for it! If you create a MR with the functionality, I'll take a look at it and merge it ASAP. Otherwise, it'll take me a while to get back to this myself, I'm a little overloaded at the moment.

If you do decide to create the MR, please make the parameters customizable (STCG_LIMIT_DAYS=365 or something like that).

from eth2-staking-rewards-calculator.

mrabino1 avatar mrabino1 commented on September 23, 2024

The biggest challenge turns into "wash sales" and cluster that is cost basis accounting when you are effectively buying every day ... and therefore your daily blended cast basis is actually decently easy to calc.. that is until you sell of the gains from that stake.. and then causes the gain event.. but not for all etc.. there many accounting packages that have been build for stock traders to compute this.. though of course none is open source! Hence my desire to add functionality to what has already been put together..

thought given my limitation on coding, I painfully forced to writing specs...

Thinking on that really is that we should have another input file that includes all of the external transactions Buys and/ or Sells that then spawn off the account cost basis clusters based on the validator(s) earnings. First impression is that the weighted average method is probably best used, though, FIFO / LIFO could also be done.. with the avg. each sale (if done after 365d) would then be include a portion that is stcg and the remainder ltcg..

the above isn't "easy" per se.. but should be the identical methodology used for stocks... so there is a reference point... but with a continuous buy (of ETH) from the validator...

No worries on timing.. happy to help where possible... and happy to discuss privately if you want.

from eth2-staking-rewards-calculator.

Related Issues (7)

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.