Skip to content

Commit c0a2844

Browse files
authored
Merge branch 'main' into koen/fix-shown-data
2 parents e809d39 + 24b713b commit c0a2844

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lambda/supply_calculator.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ def calculate_supply():
4949
type_locked = {"LATP": 0, "MATP": 0, "NCATP": 0}
5050
type_names = {0: "LATP", 1: "MATP", 2: "NCATP"}
5151

52+
type_locked = {"LATP": 0, "MATP": 0, "NCATP": 0}
53+
type_names = {0: "LATP", 1: "MATP", 2: "NCATP"}
54+
5255
for a in atps:
5356
wts = a.get("withdrawal_ts")
5457
atp_type_name = type_names.get(a["atp_type"], "LATP")
@@ -101,6 +104,9 @@ def calculate_supply():
101104
actively_staked = data["actively_staked_rollup"]
102105

103106

107+
# Get current block
108+
block_number = retry(lambda: w3.eth.block_number)
109+
104110
# Format the response
105111
result = {
106112
"timestamp": datetime.now(timezone.utc).isoformat(),

0 commit comments

Comments
 (0)