From 4d257c9ae93d3095721054fa01ca29e6ceb68d74 Mon Sep 17 00:00:00 2001 From: beanintern <100470716+beanintern@users.noreply.github.com> Date: Fri, 31 Oct 2025 21:53:00 +1100 Subject: [PATCH] ETH Strategy ESPN TVL (#16387) --- projects/EthStrategy/index.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 projects/EthStrategy/index.js diff --git a/projects/EthStrategy/index.js b/projects/EthStrategy/index.js new file mode 100644 index 000000000..c84d68030 --- /dev/null +++ b/projects/EthStrategy/index.js @@ -0,0 +1,22 @@ +const USDS_CONTRACT_ADDRESS = '0xdC035D45d973E3EC169d2276DDab16f1e407384F'; +const ESPN_CONTRACT_ADDRESS = '0xb250C9E0F7bE4cfF13F94374C993aC445A1385fE'; + +const ESPN_ABI = { + totalAssets: "function totalAssets() view returns (uint256)", +}; + +async function tvl(api) { + const espnTotalAssets = await api.call({ + abi: ESPN_ABI.totalAssets, + target: ESPN_CONTRACT_ADDRESS, + }); + api.add(USDS_CONTRACT_ADDRESS, espnTotalAssets); + return api.getBalances(); +} + +module.exports = { + methodology: 'Calculates total USDS TVL from ESPN contract totalAssets() only.', + ethereum: { + tvl, + }, +};