Skip to content

Commit

Permalink
refactor: lower default min_signal to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
hopeyen committed Sep 7, 2023
1 parent 4438cf5 commit c5596fd
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ frozenlist = []
pinnedlist = []
allocation_lifetime = 28
gas = 100
min_signal = 1000
min_signal = 100
verbose = true
num_reported_options = 2
execution_mode = "none"
Expand Down Expand Up @@ -81,7 +81,7 @@ opt_mode = "optimal"
the optimiser finds to be open. If unspecified, `28`
- `gas::Real`: The estimated gas cost in GRT to open/close allocations. If unspecified, `100`
- `min_signal::Real`: The minimum amount of signal in GRT that must be on a subgraph
in order for you to consider allocating to it. If unspecified, `1000`
in order for you to consider allocating to it. If unspecified, `100`
- `max_allocations::Integer`: The maximum number of new allocations you'd like the optimiser
to consider opening. If unspecified, `10`
- `num_reported_options::Integer`: The number of proposed allocation strategies to report.
Expand Down Expand Up @@ -121,7 +121,7 @@ frozenlist = []
pinnedlist = []
allocation_lifetime = 28
gas = 100
min_signal = 1000
min_signal = 100
verbose = true
num_reported_options = 2
execution_mode = "actionqueue"
Expand All @@ -143,7 +143,7 @@ frozenlist = []
pinnedlist = []
allocation_lifetime = 28
gas = 100
min_signal = 1000
min_signal = 100
verbose = true
num_reported_options = 2
execution_mode = "rules"
Expand All @@ -163,7 +163,7 @@ frozenlist = []
pinnedlist = []
allocation_lifetime = 28
gas = 100
min_signal = 1000
min_signal = 100
verbose = true
num_reported_options = 2
execution_mode = "none"
Expand Down Expand Up @@ -198,7 +198,7 @@ frozenlist = []
pinnedlist = []
allocation_lifetime = 28
gas = 100
min_signal = 1000
min_signal = 100
verbose = false
num_reported_options = 2
execution_mode = "none"
Expand Down Expand Up @@ -227,7 +227,7 @@ frozenlist = []
pinnedlist = []
allocation_lifetime = 28
gas = 100
min_signal = 1000
min_signal = 100
verbose = false
num_reported_options = 2
execution_mode = "none"
Expand Down
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ frozenlist = []
pinnedlist = []
allocation_lifetime = 28
gas = 100
min_signal = 1000
min_signal = 100
verbose = true
num_reported_options = 2
execution_mode = "none"
Expand Down
14 changes: 7 additions & 7 deletions docs/src/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ frozenlist = []
pinnedlist = []
allocation_lifetime = 28
gas = 100
min_signal = 1000
min_signal = 100
verbose = true
num_reported_options = 2
execution_mode = "none"
Expand Down Expand Up @@ -57,7 +57,7 @@ opt_mode = "fast"
the optimiser finds to be open. If unspecified, `28`
- `gas::Real`: The estimated gas cost in GRT to open/close allocations. If unspecified, `100`
- `min_signal::Real`: The minimum amount of signal in GRT that must be on a subgraph
in order for you to consider allocating to it. If unspecified, `1000`
in order for you to consider allocating to it. If unspecified, `100`
- `max_allocations::Integer`: The maximum number of new allocations you'd like the optimiser
to consider opening. If unspecified, `10`
- `num_reported_options::Integer`: The number of proposed allocation strategies to report.
Expand Down Expand Up @@ -97,7 +97,7 @@ frozenlist = []
pinnedlist = []
allocation_lifetime = 28
gas = 100
min_signal = 1000
min_signal = 100
verbose = true
num_reported_options = 2
execution_mode = "actionqueue"
Expand All @@ -119,7 +119,7 @@ frozenlist = []
pinnedlist = []
allocation_lifetime = 28
gas = 100
min_signal = 1000
min_signal = 100
verbose = true
num_reported_options = 2
execution_mode = "rules"
Expand All @@ -139,7 +139,7 @@ frozenlist = []
pinnedlist = []
allocation_lifetime = 28
gas = 100
min_signal = 1000
min_signal = 100
verbose = true
num_reported_options = 2
execution_mode = "none"
Expand Down Expand Up @@ -174,7 +174,7 @@ frozenlist = []
pinnedlist = []
allocation_lifetime = 28
gas = 100
min_signal = 1000
min_signal = 100
verbose = false
num_reported_options = 2
execution_mode = "none"
Expand Down Expand Up @@ -203,7 +203,7 @@ frozenlist = []
pinnedlist = []
allocation_lifetime = 28
gas = 100
min_signal = 1000
min_signal = 100
verbose = false
num_reported_options = 2
execution_mode = "none"
Expand Down
2 changes: 1 addition & 1 deletion docs/src/output.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ frozenlist = []
pinnedlist = []
allocation_lifetime = 28
gas = 100
min_signal = 1000
min_signal = 100
verbose = true
num_reported_options = 2
execution_mode = "rules"
Expand Down
8 changes: 4 additions & 4 deletions src/configuration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Set default values for the config dictionary if the value was not specified in t
the optimiser finds to be open. By default, `28`
- `gas::Real`: The estimated gas cost in GRT to open/close allocations. By default, `100`
- `min_signal::Real`: The minimum amount of signal in GRT that must be on a subgraph
in order for you to consider allocating to it. By default, `1000`
in order for you to consider allocating to it. By default, `100`
- `max_allocations::Integer`: The maximum number of new allocations you'd like the optimiser
to consider opening. By default, `10`
- `num_reported_options::Integer`: The number of proposed allocation strategies to report.
Expand Down Expand Up @@ -73,7 +73,7 @@ Dict{String, Any} with 16 entries:
"allocation_lifetime" => 28
"blacklist" => String[]
"verbose" => false
"min_signal" => 1000
"min_signal" => 100
"network_subgraph_endpoint" => "https://api.thegraph.com/subgraphs/name/graphprotocol/graph-network-mainnet"
"whitelist" => String[]
⋮ => ⋮
Expand All @@ -94,7 +94,7 @@ function configuredefaults!(config::AbstractDict)
setdefault!(config, "pinnedlist", String[])
setdefault!(config, "allocation_lifetime", 28)
setdefault!(config, "gas", 100)
setdefault!(config, "min_signal", 1000)
setdefault!(config, "min_signal", 100)
setdefault!(config, "max_allocations", 10)
setdefault!(config, "num_reported_options", 1)
setdefault!(config, "indexer_url", nothing)
Expand Down Expand Up @@ -143,7 +143,7 @@ Dict{String, Any} with 13 entries:
"allocation_lifetime" => 28
"blacklist" => Union{}[]
"verbose" => true
"min_signal" => 1000
"min_signal" => 100
"whitelist" => Union{}[]
"max_allocations" => 5
"frozenlist" => Union{}[]
Expand Down
2 changes: 1 addition & 1 deletion test/configuration.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@test config["pinnedlist"] == String[]
@test config["allocation_lifetime"] == 28
@test config["gas"] == 100
@test config["min_signal"] == 1000
@test config["min_signal"] == 100
@test config["max_allocations"] == 10
@test config["num_reported_options"] == 1
@test config["execution_mode"] == "none"
Expand Down

0 comments on commit c5596fd

Please sign in to comment.