Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paris support - fix #703 #704

Merged
merged 14 commits into from
Jun 28, 2024
Merged

Paris support - fix #703 #704

merged 14 commits into from
Jun 28, 2024

Commits on Jun 3, 2024

  1. Paris support - fix #703

    Bare Minimum Barely tested code for now.
    
    * look at `delegatedBalance` instead of `balance` in the TzKT API query
      results
    * do not include bakers' fees as reward as discussed in issue
    nicolasochem committed Jun 3, 2024
    Configuration menu
    Copy the full SHA
    16d6147 View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2024

  1. fixes after reading tzkt documentation

    delegatedBalance is deprecated, need to sum up `own` and `external`
    instead
    
    also made a note that `currentDelegatedBalance` of delegators is also
    deprecated
    nicolasochem committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    e12e343 View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2024

  1. Configuration menu
    Copy the full SHA
    1cf9e3c View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2024

  1. modify the Reward model to pass own + external delegated

    TzKT offers own_delegated and external_delegated values. We pass them
    both to the reward calculation function.
    
    OWNER_PARENT is the baker's reward. It's named this way because it can
    split into children rewards when the bakery has several "owners" and
    "founders" (maybe we should also deprecate this functionality). Now, we
    populate this value straight from tzkt.
    
    We also use it to calculate the ratio. There is a sanity function that
    ensures that the sum of itemized balances and the total from tzkt are
    "almost equal". This apparently is still passing.
    
    With these changes, I see more realistic values in my caculations:
    values are lower than with main branch, which makes sense, because the
    stake has now increased.
    
    Also, for my baker, almost all balance is staked, so I only keep an
    amount of delegation rewards approx. equal to my delegation fee. In
    contrast, before AI, I would keep my fee plus my own rewards, which now
    go almost exclusively to the staking balance.
    nicolasochem committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    f4381e0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4e59753 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    790acbb View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a57dbe5 View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2024

  1. Configuration menu
    Copy the full SHA
    78d6576 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0e0c67d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    24113d6 View commit details
    Browse the repository at this point in the history
  4. lint: fix black

    nicolasochem committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    76a1268 View commit details
    Browse the repository at this point in the history
  5. fix reward type error

    nicolasochem committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    6c0ffa9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    eaad513 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2024

  1. suppress pytest CI

    nicolasochem committed Jun 28, 2024
    Configuration menu
    Copy the full SHA
    c9e3882 View commit details
    Browse the repository at this point in the history