From 2174309f87a9a60014f0ad3b71ed06b40bf2292e Mon Sep 17 00:00:00 2001 From: rapha Date: Wed, 4 Oct 2023 17:19:06 +0200 Subject: [PATCH] fix: rename operating_cost to inflation_share_weight --- .../keeper/keeper_suite_inflation_splitting_test.go | 12 ++++++------ x/bundles/spec/04_begin_block.md | 2 +- x/pool/spec/06_events.md | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/x/bundles/keeper/keeper_suite_inflation_splitting_test.go b/x/bundles/keeper/keeper_suite_inflation_splitting_test.go index 17250358..0d74148b 100644 --- a/x/bundles/keeper/keeper_suite_inflation_splitting_test.go +++ b/x/bundles/keeper/keeper_suite_inflation_splitting_test.go @@ -515,7 +515,7 @@ var _ = Describe("inflation splitting", Ordered, func() { // assert bundle reward uploader, _ := s.App().StakersKeeper.GetStaker(s.Ctx(), i.STAKER_0) - // the total payout is the operating cost plus the inflation payout + // the total payout is the inflation share weight plus the inflation payout totalPayout := pool.InflationShareWeight + payout networkFee := s.App().BundlesKeeper.GetNetworkFee(s.Ctx()) @@ -614,7 +614,7 @@ var _ = Describe("inflation splitting", Ordered, func() { // assert bundle reward uploader, _ := s.App().StakersKeeper.GetStaker(s.Ctx(), i.STAKER_0) - // the total payout is the operating cost plus the inflation payout + // the total payout is the inflation share weight plus the inflation payout totalPayout := pool.InflationShareWeight + payout networkFee := s.App().BundlesKeeper.GetNetworkFee(s.Ctx()) @@ -810,7 +810,7 @@ var _ = Describe("inflation splitting", Ordered, func() { // assert bundle reward uploader, _ := s.App().StakersKeeper.GetStaker(s.Ctx(), i.STAKER_0) - // the total payout is the operating cost plus the inflation payout + // the total payout is the inflation share weight plus the inflation payout totalPayout := 300 + payout networkFee := s.App().BundlesKeeper.GetNetworkFee(s.Ctx()) @@ -909,7 +909,7 @@ var _ = Describe("inflation splitting", Ordered, func() { // assert bundle reward uploader, _ := s.App().StakersKeeper.GetStaker(s.Ctx(), i.STAKER_0) - // the total payout is the operating cost plus the inflation payout + // the total payout is the inflation share weight plus the inflation payout totalPayout := 300 + payout networkFee := s.App().BundlesKeeper.GetNetworkFee(s.Ctx()) @@ -1105,7 +1105,7 @@ var _ = Describe("inflation splitting", Ordered, func() { // assert bundle reward uploader, _ := s.App().StakersKeeper.GetStaker(s.Ctx(), i.STAKER_0) - // the total payout is the operating cost plus the inflation payout + // the total payout is the inflation share weight plus the inflation payout totalPayout := (pool.InflationShareWeight / 2) + 200 + payout networkFee := s.App().BundlesKeeper.GetNetworkFee(s.Ctx()) @@ -1204,7 +1204,7 @@ var _ = Describe("inflation splitting", Ordered, func() { // assert bundle reward uploader, _ := s.App().StakersKeeper.GetStaker(s.Ctx(), i.STAKER_0) - // the total payout is the operating cost plus the inflation payout + // the total payout is the inflation share weight plus the inflation payout totalPayout := (pool.InflationShareWeight / 2) + 200 + payout networkFee := s.App().BundlesKeeper.GetNetworkFee(s.Ctx()) diff --git a/x/bundles/spec/04_begin_block.md b/x/bundles/spec/04_begin_block.md index cb7d4c17..7f0e8cb9 100644 --- a/x/bundles/spec/04_begin_block.md +++ b/x/bundles/spec/04_begin_block.md @@ -6,4 +6,4 @@ order: 4 BeginBlock is used to distribute the inflation split to the pools. All active pools are eligible for the inflation split. The distribution -between the pools are determined by the operating cost of each pool. +between the pools are determined by the inflation share weight of each pool. diff --git a/x/pool/spec/06_events.md b/x/pool/spec/06_events.md index 6ec5be6d..c26c3c51 100644 --- a/x/pool/spec/06_events.md +++ b/x/pool/spec/06_events.md @@ -114,9 +114,9 @@ message EventCreatePool { // upload_interval is the interval the pool should validate // bundles with uint64 upload_interval = 7; - // operating_cost is the fixed cost which gets paid out + // inflation_share_weight is the fixed cost which gets paid out // to every successful uploader - uint64 operating_cost = 8; + uint64 inflation_share_weight = 8; // min_delegation is the minimum amount of $KYVE the pool has // to have in order to produce bundles uint64 min_delegation = 9; @@ -256,9 +256,9 @@ message EventPoolUpdated { // upload_interval is the interval the pool should validate // bundles with uint64 upload_interval = 7; - // operating_cost is the fixed cost which gets paid out + // inflation_share_weight is the fixed cost which gets paid out // to every successful uploader - uint64 operating_cost = 8; + uint64 inflation_share_weight = 8; // min_delegation is the minimum amount of $KYVE the pool has // to have in order to produce bundles uint64 min_delegation = 9;