|
10 | 10 |
|
11 | 11 | from src.apps.treasury.util.constants import BCT_ERC20_CONTRACT, KLIMA_GREEN
|
12 | 12 | from src.apps.treasury.data.protocol_metrics import \
|
13 |
| - sg, last_metric, get_last_asset_price_by_address, protocol_metrics_subgraph |
| 13 | + sg, last_metric, get_last_asset_price_by_address |
14 | 14 |
|
15 | 15 | ILLIQUID_ASSETS_GSHEET = 'https://docs.google.com/spreadsheets/d/1beNgV2Aemu01I-iyTsfOvHDTSevb0dj8GWXqo5KDShk'
|
16 | 16 |
|
@@ -140,14 +140,14 @@ def query_last_metric():
|
140 | 140 | # TODO: add logic to sum up balances until all KLIMA tokens are backed
|
141 | 141 |
|
142 | 142 | carbon_backing_usd = klima_supply * lowest_carbon_price
|
143 |
| -treasury_value -= carbon_backing_usd |
| 143 | +total_treasury_value -= (carbon_backing_usd + treasury_usdc) |
144 | 144 |
|
145 | 145 | # TODO: add descriptive tooltips to each label on the pie chart
|
146 | 146 | green_ratio_data = [
|
147 | 147 | {"bucket": "Op Ex", "value": total_usdc, "target": 0.1},
|
148 | 148 | {"bucket": "Carbon Forwards", "value": total_forwards, "target": 0.22},
|
149 | 149 | {"bucket": "Carbon Backing", "value": carbon_backing_usd, "target": 0.2},
|
150 |
| - {"bucket": "Treasury Holdings", "value": treasury_value, "target": 0.48} |
| 150 | + {"bucket": "Treasury Holdings", "value": total_treasury_value, "target": 0.48} |
151 | 151 | ]
|
152 | 152 | green_ratio_df = pd.DataFrame.from_records(green_ratio_data)
|
153 | 153 | order = [
|
|
0 commit comments