From 2f896b9ffd56f093cd0804de88f2622b1baf756e Mon Sep 17 00:00:00 2001 From: wmjae Date: Tue, 14 Jan 2025 15:10:21 +0800 Subject: [PATCH] repeat word --- app/app.go | 2 +- proto/babylon/btcstaking/v1/params.proto | 2 +- proto/babylon/incentive/rewards.proto | 2 +- x/btccheckpoint/keeper/keeper.go | 2 +- x/btcstaking/README.md | 2 +- x/btcstaking/types/params.pb.go | 2 +- x/incentive/keeper/reward_gauge.go | 2 +- x/incentive/types/rewards.pb.go | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/app.go b/app/app.go index ca1173dc5..10d04fb32 100644 --- a/app/app.go +++ b/app/app.go @@ -122,7 +122,7 @@ const ( appName = "BabylonApp" // Custom prefix for application environmental variables. - // From cosmos version 0.46 is is possible to have custom prefix for application + // From cosmos version 0.46 is possible to have custom prefix for application // environmental variables - https://github.com/cosmos/cosmos-sdk/pull/10950 BabylonAppEnvPrefix = "" diff --git a/proto/babylon/btcstaking/v1/params.proto b/proto/babylon/btcstaking/v1/params.proto index f3b38240b..fcafd21c2 100644 --- a/proto/babylon/btcstaking/v1/params.proto +++ b/proto/babylon/btcstaking/v1/params.proto @@ -22,7 +22,7 @@ message Params { int64 max_staking_value_sat = 4; // min_staking_time is the minimum lock time specified in staking output script uint32 min_staking_time_blocks = 5; - // max_staking_time_blocks is the maximum lock time time specified in staking output script + // max_staking_time_blocks is the maximum lock time specified in staking output script uint32 max_staking_time_blocks = 6; // PARAMETERS COVERING SLASHING // slashing_pk_script is the pk_script expected in slashing output ie. the first diff --git a/proto/babylon/incentive/rewards.proto b/proto/babylon/incentive/rewards.proto index c322e15b1..d9d31e8f4 100644 --- a/proto/babylon/incentive/rewards.proto +++ b/proto/babylon/incentive/rewards.proto @@ -62,7 +62,7 @@ message FinalityProviderCurrentRewards { // The finality provider address is ommitted here but should be part of the // key used to store this structure together with the BTC delegator address. message BTCDelegationRewardsTracker { - // StartPeriodCumulativeReward the starting period the the BTC delegator + // StartPeriodCumulativeReward the starting period the BTC delegator // made his last withdraw of rewards or modified his active staking amount // of satoshis. uint64 start_period_cumulative_reward = 1; diff --git a/x/btccheckpoint/keeper/keeper.go b/x/btccheckpoint/keeper/keeper.go index 0c9654480..0c4c62c16 100644 --- a/x/btccheckpoint/keeper/keeper.go +++ b/x/btccheckpoint/keeper/keeper.go @@ -274,7 +274,7 @@ func (k Keeper) OnTipChange(ctx context.Context) { // checkCheckpoints is the main function checking status of all submissions // on btc chain as viewed through btc light client. // Check works roughly as follows: -// 1. Iterate over epochs either from last finalized epoch or first epoch epoch +// 1. Iterate over epochs either from last finalized epoch or first epoch // ever, as for those epochs we do not need to check status of subbmissions of parent epoch. // // 2. For each epoch check status of every submissions: diff --git a/x/btcstaking/README.md b/x/btcstaking/README.md index 416241299..8eeab96de 100644 --- a/x/btcstaking/README.md +++ b/x/btcstaking/README.md @@ -170,7 +170,7 @@ message Params { int64 max_staking_value_sat = 4; // min_staking_time is the minimum lock time specified in staking output script uint32 min_staking_time_blocks = 5; - // max_staking_time_blocks is the maximum lock time time specified in staking output script + // max_staking_time_blocks is the maximum lock time specified in staking output script uint32 max_staking_time_blocks = 6; // PARAMETERS COVERING SLASHING // slashing_pk_script is the pk_script expected in slashing output ie. the first diff --git a/x/btcstaking/types/params.pb.go b/x/btcstaking/types/params.pb.go index 9373ef0d1..fc538369a 100644 --- a/x/btcstaking/types/params.pb.go +++ b/x/btcstaking/types/params.pb.go @@ -41,7 +41,7 @@ type Params struct { MaxStakingValueSat int64 `protobuf:"varint,4,opt,name=max_staking_value_sat,json=maxStakingValueSat,proto3" json:"max_staking_value_sat,omitempty"` // min_staking_time is the minimum lock time specified in staking output script MinStakingTimeBlocks uint32 `protobuf:"varint,5,opt,name=min_staking_time_blocks,json=minStakingTimeBlocks,proto3" json:"min_staking_time_blocks,omitempty"` - // max_staking_time_blocks is the maximum lock time time specified in staking output script + // max_staking_time_blocks is the maximum lock time specified in staking output script MaxStakingTimeBlocks uint32 `protobuf:"varint,6,opt,name=max_staking_time_blocks,json=maxStakingTimeBlocks,proto3" json:"max_staking_time_blocks,omitempty"` // PARAMETERS COVERING SLASHING // slashing_pk_script is the pk_script expected in slashing output ie. the first diff --git a/x/incentive/keeper/reward_gauge.go b/x/incentive/keeper/reward_gauge.go index 719e492a2..0652aff14 100644 --- a/x/incentive/keeper/reward_gauge.go +++ b/x/incentive/keeper/reward_gauge.go @@ -49,7 +49,7 @@ func (k Keeper) withdrawReward(ctx context.Context, sType types.StakeholderType, return withdrawableCoins, nil } -// accumulateRewardGauge accumulates the given reward of of a given stakeholder in a given type +// accumulateRewardGauge accumulates the given reward of a given stakeholder in a given type func (k Keeper) accumulateRewardGauge(ctx context.Context, sType types.StakeholderType, addr sdk.AccAddress, reward sdk.Coins) { // if reward contains nothing, do nothing if !reward.IsAllPositive() { diff --git a/x/incentive/types/rewards.pb.go b/x/incentive/types/rewards.pb.go index f026a5e11..3a8032e22 100644 --- a/x/incentive/types/rewards.pb.go +++ b/x/incentive/types/rewards.pb.go @@ -157,7 +157,7 @@ func (m *FinalityProviderCurrentRewards) GetPeriod() uint64 { // The finality provider address is ommitted here but should be part of the // key used to store this structure together with the BTC delegator address. type BTCDelegationRewardsTracker struct { - // StartPeriodCumulativeReward the starting period the the BTC delegator + // StartPeriodCumulativeReward the starting period the BTC delegator // made his last withdraw of rewards or modified his active staking amount // of satoshis. StartPeriodCumulativeReward uint64 `protobuf:"varint,1,opt,name=start_period_cumulative_reward,json=startPeriodCumulativeReward,proto3" json:"start_period_cumulative_reward,omitempty"`