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

AdaPot implementation (WIP) #192

Draft
wants to merge 55 commits into
base: main
Choose a base branch
from
Draft

AdaPot implementation (WIP) #192

wants to merge 55 commits into from

Conversation

satran004
Copy link
Member

@satran004 satran004 commented Feb 4, 2024

#101

Capture following balances

  • Total deposits
  • Total utxo balance
  • Treasury (In progress)
  • Reserves (In progress)

Related tasks

  • Split reward table to reward (for member, leader, refund) and instant_reward (other rewards)
  • Split adapot table to adapot (to keep adapot at epoch boundary) and adapot_history (for real-time data like deposits, utxos etc)
  • Implement logic to fetch getSharedPoolRewardAddressesWithoutReward method
  • Tests
  • Test setup with Yaci DevKit
  • Verify Conway era specific changes which need to be considered for reward calculation (Drep, gov action deposits)
  • Verify and adjust reward table columns size
  • Refactor incremental fee aggregation per epoch to one-time fee snapshot
  • Refactor current instant_reward impl to instant_reward snapshot during epoch transition
  • Fix incorrect epoch param ([Epoch Store] Decentralization protocol param value in epoch 214 is not correct #307)
  • Add txIndex to all stake store tables (pool_registration, delegation etc). To fix incorrect delegated pool issue when a stake address delegates to two pools in two transactions, but same block. (Exp: stake1u84muf4xp84s2z3kqf3kmjdl430akjml00lts0xpx5mzlksm0xfq7 epoch: 229)
  • Handle PreEpochTransitionEvent when prevEpoch = null
  • Set the correct slots for records created during epoch transition events. (snapshots)
  • Pot transfer ?? reserves <--> treasury
  • Handle testnet stake address in reward account field of few pools (https://cardanoscan.io/pool/ae8ee8f5676a3c3aadefd0ee7adb57ebbd39dd7126c8517e718dc4c1)
  • Handle Pointer address during epoch_stake snapshot ([Reward] Handle the pointer address where the delegation part contains a pointer to the stake registration certificate. #340)
  • Sometime pool status is not updated correctly . Check pool `select * from pool where pool_id = '0f581255fdb8e8e88d3676a3cbede33e1f2456171cbe39266b3db679' epoch 235/237. Registration at epoch 235 is set as "Update".
  • Add jqwik tests

@satran004 satran004 marked this pull request as draft February 4, 2024 15:39
@satran004 satran004 self-assigned this Jul 12, 2024
satran004 and others added 21 commits July 12, 2024 23:29
chore: #307 Get PP with target epoch as previous epoch
…dded a debug log to output the deregistered stake address query, improving traceability.
Added support for processing transactions without collateral return in UtxoProcessor. Refactored tests to update the handling of spent and unspent UTXOs, including new test cases for scenarios with no collateral return.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant