Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Commit

Permalink
Merge pull request #477 from vegaprotocol/5278-lp-optional
Browse files Browse the repository at this point in the history
Commitment is optional
  • Loading branch information
EVODelavega committed Jun 30, 2022
2 parents ecf2441 + db02567 commit e8dae4c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions commands/proposal_submission.go
Original file line number Diff line number Diff line change
Expand Up @@ -865,9 +865,8 @@ func checkUpdateLogNormalRiskParameters(params *types.UpdateMarketConfiguration_

func checkLiquidityCommitment(commitment *types.NewMarketCommitment) Errors {
errs := NewErrors()

if commitment == nil {
return errs.FinalAddForProperty("proposal_submission.terms.change.new_market.liquidity_commitment", ErrIsRequired)
return errs
}

if len(commitment.CommitmentAmount) <= 0 {
Expand Down

0 comments on commit e8dae4c

Please sign in to comment.