Spaces:
Runtime error
Runtime error
jiarongqiu commited on
Commit ·
9fdd010
1
Parent(s): de93b1d
tvl fix
Browse files- service/scheduler.py +2 -4
service/scheduler.py
CHANGED
|
@@ -21,16 +21,14 @@ class Scheduler:
|
|
| 21 |
price = api.get_filecoin_price()
|
| 22 |
deposit = api.get_filecoin_deposit()
|
| 23 |
# tvl = api.get_filecoin_tvl()
|
| 24 |
-
total_raw_bytes_power = api.get_fvm_storage()
|
| 25 |
active_deals_verified_bytes = api.get_fvm_active_deal()
|
| 26 |
text = """
|
| 27 |
The price of filecoin(FIL) is currently ${} USD.
|
| 28 |
The Total DeFi Net Deposits of filecoin(FIL) is {} FIL.
|
| 29 |
The Total Value Locked(TVL) of filecoin(FIL) is {} FIL.
|
| 30 |
-
The Network Raw Byte Power of the Filecoin Network is {} EiB.
|
| 31 |
-
The Data stored on the Filecoin Network is {} EiB.
|
| 32 |
The Total Active Filecoin Deals of the Filecoin Network is {} EiB.
|
| 33 |
-
""".format(price,deposit,deposit,
|
| 34 |
# print(f"Update {text}")
|
| 35 |
vector_store.upsert(text,"dataset_1",source='https://fvm.starboard.ventures/explorer/leaderboard?utm_source=Starboard-TLDR-HTS')
|
| 36 |
|
|
|
|
| 21 |
price = api.get_filecoin_price()
|
| 22 |
deposit = api.get_filecoin_deposit()
|
| 23 |
# tvl = api.get_filecoin_tvl()
|
| 24 |
+
# total_raw_bytes_power = api.get_fvm_storage()
|
| 25 |
active_deals_verified_bytes = api.get_fvm_active_deal()
|
| 26 |
text = """
|
| 27 |
The price of filecoin(FIL) is currently ${} USD.
|
| 28 |
The Total DeFi Net Deposits of filecoin(FIL) is {} FIL.
|
| 29 |
The Total Value Locked(TVL) of filecoin(FIL) is {} FIL.
|
|
|
|
|
|
|
| 30 |
The Total Active Filecoin Deals of the Filecoin Network is {} EiB.
|
| 31 |
+
""".format(price,deposit,deposit,active_deals_verified_bytes)
|
| 32 |
# print(f"Update {text}")
|
| 33 |
vector_store.upsert(text,"dataset_1",source='https://fvm.starboard.ventures/explorer/leaderboard?utm_source=Starboard-TLDR-HTS')
|
| 34 |
|