feat: add APY computation to AH SubQuery, clean relay SubQuery from AH pool logic

This commit is contained in:
2026-02-18 06:00:45 +03:00
parent 5447579477
commit a7d11ce6a2
3 changed files with 109 additions and 58 deletions
+12
View File
@@ -61,6 +61,18 @@ dataSources:
filter:
module: nominationPools
method: UnbondingPoolSlashed
# Era changes on AH (staking pallet lives here) - old format
- handler: handleAHNewEra
kind: substrate/EventHandler
filter:
module: staking
method: StakingElection
# Era changes on AH - new format (Polkadot 2.0)
- handler: handleAHStakersElected
kind: substrate/EventHandler
filter:
module: staking
method: StakersElected
# Native transfers
- handler: handleTransfer
kind: substrate/EventHandler