Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 64c565d

Browse files
authored
Merge pull request balancer#99 from balancer-labs/week59
Week59
2 parents c1352e8 + ddd12c8 commit 64c565d

11 files changed

+22821
-176
lines changed

bal-mining.ipynb

Lines changed: 31 additions & 174 deletions
Large diffs are not rendered by default.

bal-mining.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
REALTIME_ESTIMATOR = False
8-
WEEK = 58
8+
WEEK = 59
99

1010

1111
# In[ ]:
@@ -358,6 +358,16 @@ def v2_liquidity_mining(week,
358358

359359

360360
if REALTIME_ESTIMATOR:
361+
# zero previous week's velocity
362+
sql = f'''
363+
UPDATE {project_id}.bal_mining_estimates.lp_estimates_multitoken
364+
SET velocity = '0'
365+
WHERE week = {WEEK-1}
366+
'''
367+
client = bigquery.Client()
368+
query = client.query(sql)
369+
query.result();
370+
361371
try:
362372
sql = f'select * from bal_mining_estimates.lp_estimates_multitoken WHERE week = {WEEK}'
363373
prev_estimate = pd.read_gbq(sql,

config/redirect.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,10 @@
3131
"0x28CbF3348148B366E8076452179c01A387BF695e": "0x4B29444d24D30De6cE16616B32538224B3c41c7c",
3232
"0xa256d4bCDDC26376cFba0Fe0476098aAbD6EB7e4": "0x4B29444d24D30De6cE16616B32538224B3c41c7c",
3333
"0x321849C98b28756274443287653607Ec5D747b8F": "0xAB8fDe1e00aa24570e18c2B8DE0f529Bc5cA3F47",
34-
"0x275dFE03bc036257Cd0a713EE819Dbd4529739c8": "0x8f3c97DdC88D7A75b8c3f872b525B30932D3014c"
34+
"0x275dFE03bc036257Cd0a713EE819Dbd4529739c8": "0x8f3c97DdC88D7A75b8c3f872b525B30932D3014c",
35+
"0x12dB4A4C442944A10eD153Db64C500BEb006039f": "0x2941A48956A2bD476eac6671d76921B6b7e8C89b",
36+
"0x3860BD4f060C2F4b44596b537507FFeE9459B3F5": "0xc2c30cD4898b6004fbb82a8c7bD72d3b3734b5d1",
37+
"0xA10a749A5A2a2D3f0c0317a92c3e9159Df567E34": "0x06A2E6347353edd5653B240D70CdC97f37d080ee",
38+
"0x14e7a00109d95C6340799a108133F4427161d865": "0x83DDBb631595cC92Ca34b17e0CFC24e059093FA1",
39+
"0xd91b06CE5A57d271F605Bd58d31184B670032145": "0x857bE610838b6c16B51ffF8bfdd039FA3007C565"
3540
}

reports/59/__ethereum_0xba100000625a3754423978a60c9317c58a424e3d.json

Lines changed: 2462 additions & 0 deletions
Large diffs are not rendered by default.

reports/59/__polygon_0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270.json

Lines changed: 4214 additions & 0 deletions
Large diffs are not rendered by default.

reports/59/__polygon_0x580a84c73811e1839f75d86d75d88cca0c241ff4.json

Lines changed: 1967 additions & 0 deletions
Large diffs are not rendered by default.

reports/59/__polygon_0x9a71012b13ca4d3d0cdc72a177df3ef03b0e76a3.json

Lines changed: 4214 additions & 0 deletions
Large diffs are not rendered by default.

reports/59/__polygon_0xF501dd45a1198C2E1b5aEF5314A68B9006D842E0.json

Lines changed: 405 additions & 0 deletions
Large diffs are not rendered by default.

reports/59/_gasReimbursement.json

Lines changed: 411 additions & 0 deletions
Large diffs are not rendered by default.

reports/59/_totals.json

Lines changed: 2730 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)