Skip to content

Commit

Permalink
do not show OP yet
Browse files Browse the repository at this point in the history
  • Loading branch information
diewland committed Feb 24, 2024
1 parent 7871b5f commit 2cb4c80
Show file tree
Hide file tree
Showing 2 changed files with 29,290 additions and 5 deletions.
10 changes: 5 additions & 5 deletions 1_craft_from_snapshot.py → calc_from_snapshot.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import math
from web3.utils.address import to_checksum_address
from pprint import pprint as pp
from config import *
from common import *
from pprint import pprint as pp
import os, time, math
from web3.utils.address import to_checksum_address

chunk = {}

Expand Down Expand Up @@ -61,11 +61,11 @@

# 9) print output (header)
fields = ','.join([ title for (title, _, _) in CONFIG_COL ])
print("no,address,OP,points,{}".format(fields))
print("#,Address,OP,Points,{}".format(fields))

# 10) print output (body)
for c in chunk:
op = math.floor(c['op'] * 1_000) / 1_000 # floor 3 digits
op = 'TBA' #math.floor(c['op'] * 1_000) / 1_000 # floor 3 digits
fields = ','.join([ str(c.get(title) or 0) for (title, _, _) in CONFIG_COL ])
print('{},{},{},{},{}'.format(
c['no'], # no
Expand Down
Loading

0 comments on commit 2cb4c80

Please sign in to comment.