feat: add delegator to withdraw address (#15462)
This commit is contained in:
parent
a4a3c81d11
commit
176c61cf70
@ -93,6 +93,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
|
||||
* (x/staking) [#14590](https://github.com/cosmos/cosmos-sdk/pull/14590) Return undelegate amount in MsgUndelegateResponse.
|
||||
* (baseapp) [#15023](https://github.com/cosmos/cosmos-sdk/pull/15023) & [#15213](https://github.com/cosmos/cosmos-sdk/pull/15213) Add `MessageRouter` interface to baseapp and pass it to authz, gov and groups instead of concrete type.
|
||||
* (simtestutil) [#15305](https://github.com/cosmos/cosmos-sdk/pull/15305) Add `AppStateFnWithExtendedCb` with callback function to extend rawState.
|
||||
* (x/distribution) [#15462](https://github.com/cosmos/cosmos-sdk/pull/15462) Add delegator address to the event for withdrawing delegation rewards
|
||||
|
||||
### State Machine Breaking
|
||||
|
||||
|
||||
@ -206,6 +206,7 @@ func (k Keeper) withdrawDelegationRewards(ctx sdk.Context, val stakingtypes.Vali
|
||||
types.EventTypeWithdrawRewards,
|
||||
sdk.NewAttribute(sdk.AttributeKeyAmount, finalRewards.String()),
|
||||
sdk.NewAttribute(types.AttributeKeyValidator, val.GetOperator().String()),
|
||||
sdk.NewAttribute(types.AttributeKeyDelegator, del.GetDelegatorAddr().String()),
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
@ -11,4 +11,5 @@ const (
|
||||
|
||||
AttributeKeyWithdrawAddress = "withdraw_address"
|
||||
AttributeKeyValidator = "validator"
|
||||
AttributeKeyDelegator = "delegator"
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user