Add efixDI adapter (Base + Polygon) with lock-and-mint bridge de-dup#20036
Add efixDI adapter (Base + Polygon) with lock-and-mint bridge de-dup#20036Ernesto711 wants to merge 1 commit into
Conversation
|
Error while running adapter at :
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds a DeFiLlama TVL adaptor for efixDI+ that aggregates Base and Polygon supply, subtracts Polygon bridge-locked tokens, prices the circulating supply through an on-chain oracle, and exports the standard Base adaptor configuration. ChangesefixDI+ TVL calculation
Estimated code review effort: 3 (Moderate) | ~15 minutes Sequence Diagram(s)sequenceDiagram
participant tvl as tvl(api)
participant base as Base token contract
participant polygon as Polygon token contract
participant adapter as Polygon OFT adapter
participant oracle as NAV/BRL oracle
participant api as api.addUSDValue
tvl->>base: totalSupply()
tvl->>polygon: totalSupply()
tvl->>adapter: locked balance
tvl->>oracle: getQuote(1 token, token, USDC)
base-->>tvl: Base supply
polygon-->>tvl: Polygon supply
adapter-->>tvl: Locked balance
oracle-->>tvl: USDC quote
tvl->>api: addUSDValue(circulating supply, USD value)
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed. For unrecoverable errors, disable the tool in CodeRabbit configuration. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…edes projects/efix)
|
Rebased onto current main so the diff is a single file (projects/efixdi/index.js). The earlier CI flag about api.getLogs came from stale-base drift in the previous branch state, not from this adapter, which makes no log queries. Local test run: total ~3.06k USD (base 2.60k / polygon 462), with the Polygon side already net of the 235 efixDI locked in the OFTAdapter. Supersedes #18113. |
92bcdb4 to
a852435
Compare
|
The adapter at projects/efixdi exports TVL: |
efixDI+ — tokenized Brazilian DI money-market fund
Adds a TVL adapter for efixDI+, a permissionless ERC-20 backed 1:1 by cotas of a BTG Pactual DI money-market fund (Brazilian fixed income tracking the CDI rate, ~15% p.a.), issued under a CVM-registered securitizer (Act 23.635/2025). Website: https://efix.finance
Methodology
circulating = baseSupply + polygonSupply − OFTAdapterLocked(Verified on-chain 2026-07-14: adapter locks 235 efixDI; Base supply is otherwise native treasury issuance.)
NAV(BRL) × Chainlink BRL/USD(the same oracle used by the efixDI/USDC Euler v2 market) — reported viaaddUSDValue.Notes
node test.js projects/efixdi/index.jspasses cleanly (~$3.05k current TVL).Summary by CodeRabbit