Skip to content

Commit 2d8e548

Browse files
authored
refactor: ♻️ Simplify Last look pricing checks (#66)
* manual impl * tidy * pr comments
1 parent 9641b26 commit 2d8e548

File tree

14 files changed

+915
-208
lines changed

14 files changed

+915
-208
lines changed

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@ TQ Oracle performs read smart contract READ calls through a registry of protocol
88

99
For detailed system architecture and integration with Mellow Finance flexible-vaults, see [ARCHITECTURE.md](ARCHITECTURE.md).
1010

11-
## Known Limitations & Assumptions
12-
13-
> [!WARNING]
14-
> **stETH/ETH Peg Assumption**: The wstETH price adapter assumes a 1:1 peg between stETH and ETH when calculating wstETH prices. This assumption is **not validated** against market prices.
15-
>
16-
> **Impact**: During stETH depeg events (e.g., market stress, liquidity crises), the oracle will report inaccurate TVL for vaults holding wstETH. The reported value will reflect the stETH/wstETH exchange rate multiplied by an assumed 1:1 stETH/ETH rate, not the actual market value.
17-
1811
## Running without installing
1912

2013
You can run this CLI without any git cloning, directly with `uv`

src/tq_oracle/abi.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
ERC20_ABI_PATH = ABIS_DIR / "ERC20.json"
1616
GNOSIS_SAFE_ABI_PATH = ABIS_DIR / "SafeL2.json"
1717
WSTETH_ABI_PATH = ABIS_DIR / "WstETH.json"
18+
FEE_MANAGER_ABI_PATH = ABIS_DIR / "FeeManager.json"
1819

1920

2021
def load_abi(path: str | Path) -> list[dict]:
@@ -52,6 +53,11 @@ def load_vault_abi() -> list[dict]:
5253
return load_abi(VAULT_ABI_PATH)
5354

5455

56+
def load_fee_manager_abi() -> list[dict]:
57+
"""Load the Fee Manager ABI."""
58+
return load_abi(FEE_MANAGER_ABI_PATH)
59+
60+
5561
def load_aggregator_abi() -> list[dict]:
5662
"""Load the Aggregator ABI."""
5763
return load_abi(AGGREGATOR_ABI_PATH)

0 commit comments

Comments
 (0)