Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,6 @@ Pipfile*
MaxiOps/merkl/cache*
MaxiOps/merkl/airdrops/**-dry.json
temp/

# Auto-generated report files
*.report.txt
2 changes: 1 addition & 1 deletion config/partner_fee_share.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{
"name": "EZKL",
"multisig_address": "0xB7aadD330A64088A85e500874DCDcFB7F253fEB4",
"active": true,
"active": false,
"pool_types": ["EZKL"],
"fee_allocations": {
"core_with_gauge": {
Expand Down
16 changes: 15 additions & 1 deletion tools/python/aura_snapshot_voting/review_votes.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,17 @@ def review_votes(week_string):
f"\n### Vote Preparation\n❌ Error simulating vote preparation: {str(e)}"
)
vote_check = False
prop = None

round_live_check = prop is not None and prop["state"] == "active"
if prop:
round_live_detail = (
f"Proposal: {prop['title']}\n"
f"- State: `{prop['state']}`\n"
f"- Snapshot round is live: {'✅' if round_live_check else '❌'}"
)
else:
round_live_detail = "Could not fetch proposal from Snapshot"

vote_df = vote_df.dropna(subset=["Gauge Address", "Label", "Allocation %"])

Expand Down Expand Up @@ -103,11 +114,14 @@ def review_votes(week_string):

{vote_prep}

### Snapshot Round Check
- {round_live_detail}

### Vote Summary

{vote_df[["Chain", "Label", "Gauge Address", "Allocation %"]].to_markdown(index=False)}

{"### ✅ All checks passed!" if (allocation_check and snapshot_label_check and vote_check and duplicate_check) else "### ❌ Some checks failed - please review the issues above"}
{"### ✅ All checks passed!" if (allocation_check and snapshot_label_check and vote_check and duplicate_check and round_live_check) else "### ❌ Some checks failed - please review the issues above"}
"""

with open("review_output.md", "w") as f:
Expand Down
Loading