We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e809d39 + 24b713b commit c0a2844Copy full SHA for c0a2844
1 file changed
lambda/supply_calculator.py
@@ -49,6 +49,9 @@ def calculate_supply():
49
type_locked = {"LATP": 0, "MATP": 0, "NCATP": 0}
50
type_names = {0: "LATP", 1: "MATP", 2: "NCATP"}
51
52
+ type_locked = {"LATP": 0, "MATP": 0, "NCATP": 0}
53
+ type_names = {0: "LATP", 1: "MATP", 2: "NCATP"}
54
+
55
for a in atps:
56
wts = a.get("withdrawal_ts")
57
atp_type_name = type_names.get(a["atp_type"], "LATP")
@@ -101,6 +104,9 @@ def calculate_supply():
101
104
actively_staked = data["actively_staked_rollup"]
102
105
103
106
107
+ # Get current block
108
+ block_number = retry(lambda: w3.eth.block_number)
109
110
# Format the response
111
result = {
112
"timestamp": datetime.now(timezone.utc).isoformat(),
0 commit comments