Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

Commit f6cb020

Browse files
committed
remove remote fees fetching
1 parent 40e5440 commit f6cb020

1 file changed

Lines changed: 3 additions & 10 deletions

File tree

fee_allocator/utils.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def get_block_by_ts(timestamp, chain: "CorePoolChain", before=False):
9999
return chain.subgraph.get_first_block_after_utc_timestamp(timestamp)
100100

101101
def fetch_collected_fees(start_date: str, end_date: str, fees_file_name: str = None, protocol_version: str = "v2") -> dict:
102-
# If fees_file_name is provided, use that directly
102+
# If fees_file_name is provided, use that directly, else derive it from the start and end date
103103
if fees_file_name:
104104
filename = fees_file_name
105105
else:
@@ -109,12 +109,5 @@ def fetch_collected_fees(start_date: str, end_date: str, fees_file_name: str = N
109109
if os.path.exists(local_path):
110110
with open(local_path) as f:
111111
return json.load(f)
112-
113-
v1_fees = f"https://raw.githubusercontent.com/BalancerMaxis/protocol_fee_allocator/main/fee_allocator/fees_collected/{filename}"
114-
response = requests.get(v1_fees)
115-
116-
if response.status_code == 200:
117-
print(f"fetched collected fees from: {v1_fees}")
118-
return response.json()
119-
120-
raise FileNotFoundError(f"Could not find fees file {filename} locally or remotely")
112+
113+
raise FileNotFoundError(f"Could not find fees file {filename}")

0 commit comments

Comments
 (0)