Skip to content

Commit b03a328

Browse files
committed
chore: proper capitalization and example
1 parent 5450fe7 commit b03a328

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# list obtained from: https://github.com/DefiLlama/chainlist/blob/main/constants/chainIds.js
22
# more chains can be added from: https://chainid.network/chains_mini.json
33
CHAIN_ID_TO_NETWORK = {
4-
1: "ethereum",
5-
10: "optimism",
6-
56: "bnb",
7-
137: "polygon",
8-
146: "sonic",
9-
5000: "mantle",
10-
8453: "base",
11-
42161: "arbitrum",
12-
534352: "scroll",
4+
1: "Ethereum",
5+
10: "Optimism",
6+
56: "BNB Chain",
7+
137: "Polygon",
8+
146: "Sonic",
9+
5000: "Mantle",
10+
8453: "Base",
11+
42161: "Arbitrum",
12+
534352: "Scroll",
1313
}

openagent/tools/pendle/market_analysis.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ async def setup(self, config: PendleMarketConfig) -> None:
160160
- Must be concise with 1 sentence per market, must include `symbol`, `protocol`, `chain`, `expiry`, `liquidity_change_24h`, `fixed_apy`, `fixed_apy_change_24h`
161161
- For new markets: add "New Pool"
162162
- Do not provide personal opinions or financial advice\
163+
Example: `symbol` (`protocol`) on `chain` until `expiry`, has `liquidity_change_24h` liquidity change and `fixed_apy_change_24h` APY change, now fixed APY is `fixed_apy`.\
163164
"""
164165
),
165166
input_variables=["data"],
@@ -220,11 +221,11 @@ def _process_market_data(results: dict) -> PendleMarketSnapshot:
220221
"""Process raw market data into a structured snapshot"""
221222

222223
def format_timestamp(timestamp: int) -> str:
223-
return datetime.fromtimestamp(timestamp).strftime('%Y-%m-%d')
224-
224+
return datetime.fromtimestamp(timestamp).strftime("%Y-%m-%d")
225+
225226
def to_percentage(value: float) -> float:
226227
return value * 100 if value is not None else 0.0
227-
228+
228229
# Create market list
229230
markets = [
230231
PendleMarketData(
@@ -298,7 +299,9 @@ def get_top_markets(
298299
return PendleMarketSnapshot(
299300
markets=filtered_markets,
300301
liquidity_increase_list=list(liquidity_increase_top_symbols),
301-
new_market_liquidity_increaseList=list(new_market_liquidity_increase_symbols),
302+
new_market_liquidity_increaseList=list(
303+
new_market_liquidity_increase_symbols
304+
),
302305
apy_increase_list=list(apy_increase_symbols),
303306
new_market_apy_increase_list=list(new_market_apy_increase_symbols),
304307
)

0 commit comments

Comments
 (0)