syntax = "proto3";
package elys.leveragelp;

import "gogoproto/gogo.proto";
import "cosmos_proto/cosmos.proto";

option go_package = "github.com/elys-network/elys/x/leveragelp/types";

// Params defines the parameters for the module.
message LegacyParams {
  string leverage_max = 1 [
    (cosmos_proto.scalar) = "cosmos.Dec",
    (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
    (gogoproto.nullable) = false
  ];
  int64 max_open_positions = 2;
  string pool_open_threshold = 3 [
    (cosmos_proto.scalar) = "cosmos.Dec",
    (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
    (gogoproto.nullable) = false
  ];
  string safety_factor = 4 [
    (cosmos_proto.scalar) = "cosmos.Dec",
    (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
    (gogoproto.nullable) = false
  ];
  bool whitelisting_enabled = 5;
  int64 epoch_length = 6;
  bool fallback_enabled = 7;
  int64 number_per_block = 8; // Number of positions to process per block
}

// Params defines the parameters for the module.
message Params {
  string leverage_max = 1 [
    (cosmos_proto.scalar) = "cosmos.Dec",
    (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
    (gogoproto.nullable) = false
  ];
  int64 max_open_positions = 2;
  string pool_open_threshold = 3 [
    (cosmos_proto.scalar) = "cosmos.Dec",
    (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
    (gogoproto.nullable) = false
  ];
  string safety_factor = 4 [
    (cosmos_proto.scalar) = "cosmos.Dec",
    (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
    (gogoproto.nullable) = false
  ];
  bool whitelisting_enabled = 5;
  int64 epoch_length = 6;
  bool fallback_enabled = 7;
  int64 number_per_block = 8; // Number of positions to process per block
  repeated uint64 enabled_pools = 9;
  string exit_buffer = 10 [
    (cosmos_proto.scalar) = "cosmos.Dec",
    (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
    (gogoproto.nullable) = false
  ];
  bool stop_loss_enabled = 11;
}
