From a5babcd1b368c6e2ee6d3f4bd8ee0a24e6b1e44e Mon Sep 17 00:00:00 2001 From: skhomuti Date: Wed, 27 Nov 2024 19:33:47 +0500 Subject: [PATCH] take into account claimable shares from the previous reward trees --- tests/regression/test_csm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/regression/test_csm.py b/tests/regression/test_csm.py index 6b5ffe6f..15eeca47 100644 --- a/tests/regression/test_csm.py +++ b/tests/regression/test_csm.py @@ -77,10 +77,11 @@ def ref_slot(): def distribute_reward_tree(node_operator, ref_slot): consensus_version = contracts.cs_fee_oracle.getConsensusVersion() oracle_version = contracts.cs_fee_oracle.getContractVersion() + claimable_shares = contracts.cs_fee_distributor.totalClaimableShares() rewards = ETH(0.05) oracle_report(cl_diff=rewards) - distributed_shares = contracts.lido.sharesOf(contracts.cs_fee_distributor) + distributed_shares = contracts.lido.sharesOf(contracts.cs_fee_distributor) - claimable_shares assert distributed_shares > 0 report, report_hash, tree = prepare_csm_report({node_operator: distributed_shares}, ref_slot)