Skip to content

Commit

Permalink
fix: Optimise with respect to exposed gas value
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudh2 committed Apr 6, 2022
1 parent 67c7654 commit 28c6534
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AllocationOpt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ include("optimize.jl")

function optimize_indexer_to_csv!(;
id::String,
gas::Float64,
grtgas::Float64,
whitelist::Union{Nothing,Vector{String}},
blacklist::Union{Nothing,Vector{String}},
csv_write_path::String,
)
url = "https://api.thegraph.com/subgraphs/name/graphprotocol/graph-network-mainnet"
repository = snapshot(; url=url, indexer_query=nothing, subgraph_query=nothing)

alloc, filtered = optimize(id, repository, whitelist, blacklist)
alloc, filtered = optimize(id, repository, grtgas, whitelist, blacklist)

df = DataFrame(
"Subgraph ID" => collect(keys(alloc)), "Allocation in GRT" => collect(values(alloc))
Expand Down

0 comments on commit 28c6534

Please sign in to comment.