Skip to content

Commit

Permalink
fix: rename operating_cost to inflation_share_weight
Browse files Browse the repository at this point in the history
  • Loading branch information
shifty11 committed Oct 4, 2023
1 parent 149503d commit 2174309
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions x/bundles/keeper/keeper_suite_inflation_splitting_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down Expand Up @@ -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())
Expand Down Expand Up @@ -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())
Expand Down Expand Up @@ -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())
Expand Down Expand Up @@ -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())
Expand Down Expand Up @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion x/bundles/spec/04_begin_block.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
8 changes: 4 additions & 4 deletions x/pool/spec/06_events.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 2174309

Please sign in to comment.