This repository was archived by the owner on May 29, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 193193directory=" trader"
194194# This is a tested version that works well.
195195# Feel free to replace this with a different version of the repo, but be careful as there might be breaking changes
196- service_version=" v0.6.0"
196+ service_version=" v0.6.0.post1 "
197197service_repo=https://github.com/valory-xyz/$directory .git
198198if [ -d $directory ]
199199then
Original file line number Diff line number Diff line change 3232QUERY_BATCH_SIZE = 1000
3333DUST_THRESHOLD = 10000000000000
3434INVALID_ANSWER = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
35+ FPMM_CREATOR = "0x89c5cc945dd550bcffb72fe42bff002429f46fec"
3536
3637headers = {
3738 "Accept" : "application/json, multipart/mixed" ,
4344 """
4445 {
4546 fpmmTrades(
46- where: {type: Buy, creator: "${creator}"}
47+ where: {type: Buy, creator: "${creator}" fpmm_: {creator: "${fpmm_creator}"} }
4748 first: ${first}
4849 skip: ${skip}
4950 orderBy: creationTimestamp
@@ -168,7 +169,10 @@ def _query_omen_xdai_subgraph() -> dict[str, Any]:
168169 skip = 0
169170 while True :
170171 query = omen_xdai_trades_query .substitute (
171- creator = creator .lower (), first = QUERY_BATCH_SIZE , skip = skip
172+ creator = creator .lower (),
173+ fpmm_creator = FPMM_CREATOR .lower (),
174+ first = QUERY_BATCH_SIZE ,
175+ skip = skip
172176 )
173177 content_json = _to_content (query )
174178 res = requests .post (url , headers = headers , json = content_json )
You can’t perform that action at this time.
0 commit comments