--'SPLIT' so that fine with or without the ID, for later.
),
/*
Assumptions:
We have each block's total liquidity fees for each pool. (Check regarding asymmetric add/withdraw liquidity.)
We have each block's total block rewards (bond's rewards_events + pools' rewards_event_entries , negatives cancelling out).
We have each block's full share for bond of block rewards plus liquidity fees. (rewards_events)
Adding the first two and comparing to the third tells us the incentive pendulum ratio in that block.
Perhaps a more straightforward approach:
having the total liquidity fees and total rewards, we know the reward-to-liquidity-fee ratio, and can split each pool's inflow for that block according to it.
Check whether an asymmetric add_liquidity currently generates liquidity fees (of which nodes get their cut) or not: