Skip to content

Commit

Permalink
chore: allow simple risk model for spots
Browse files Browse the repository at this point in the history
  • Loading branch information
ze97286 committed Mar 20, 2024
1 parent 1d019df commit c4f8c7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/governance/market.go
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,10 @@ func validateRiskParameters(rp interface{}) (types.ProposalError, error) {
return validateLogNormalRiskParams(r.LogNormal)
case *types.UpdateMarketConfigurationLogNormal:
return validateLogNormalRiskParams(r.LogNormal)
case *types.NewSpotMarketConfigurationSimple:
return types.ProposalErrorUnspecified, nil
case *types.UpdateSpotMarketConfigurationSimple:
return types.ProposalErrorUnspecified, nil
case *types.NewSpotMarketConfigurationLogNormal:
return validateLogNormalRiskParams(r.LogNormal)
case *types.UpdateSpotMarketConfigurationLogNormal:
Expand Down

0 comments on commit c4f8c7e

Please sign in to comment.