Skip to content

Commit

Permalink
update the minimum value limit for minSelfDelegation
Browse files Browse the repository at this point in the history
  • Loading branch information
trestinlsd committed Sep 10, 2024
1 parent dcd4ed3 commit 1102f15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion precompiles/avs/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func (p Precompile) GetAVSParamsFromInputs(_ sdk.Context, args []interface{}) (*
avsParams.UnbondingPeriod = unbondingPeriod

minSelfDelegation, ok := args[9].(uint64)
if !ok || minSelfDelegation == 0 {
if !ok {
return nil, fmt.Errorf(exocmn.ErrContractInputParaOrType, 9, "uint64", minSelfDelegation)
}
avsParams.MinSelfDelegation = minSelfDelegation
Expand Down
6 changes: 3 additions & 3 deletions x/avs/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,9 @@ func (k Keeper) UpdateAVSInfo(ctx sdk.Context, params *types.AVSRegisterOrDeregi
if params.UnbondingPeriod > 0 {
avs.AvsUnbondingPeriod = params.UnbondingPeriod
}
if params.MinSelfDelegation > 0 {
avs.MinSelfDelegation = params.MinSelfDelegation
}

avs.MinSelfDelegation = params.MinSelfDelegation

if params.EpochIdentifier != "" {
avs.EpochIdentifier = params.EpochIdentifier
}
Expand Down

0 comments on commit 1102f15

Please sign in to comment.