Repository navigation
liquidium-cross-chain: native supply/debt, stablecoin metadata, folder rename - #3270
Conversation
…ereum, rename folder to slug Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
0xkr3p
left a comment
There was a problem hiding this comment.
hi @robin-liquidium, thanks for the changes
BTC, ETH, ICP and SOL stay on ICP as they were. If you'd rather keep the stablecoins on ICP, we can drop the chain change and keep the poolMeta and the URL.
Please keep stablecoins on ICP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks @0xkr3p, done: USDC and USDT stay on ICP with their ck ledgers as underlying tokens, and they keep the |
Brief
poolMetaand a link to its market page.configmigration (section 4). Pool ids are unchanged, so history is kept.src/adaptors/liquidium-cross-chain/index.js, in therayMulconversion and thefromEthereumbranch.npm run test --adapter=liquidium-cross-chainpasses 84/84 against live canister data. Supply and debt match the protocol's own database snapshot to within the stablecoin price (USDC $1.0756M / $1.0072M, USDT $768.9k / $708.7k).1. Scaled supply and debt converted to native amounts
The canister's
total_supply_at_last_syncandtotal_debt_at_last_syncare scaled share totals. The adapter used them as token amounts, which understated supply and debt by the interest accrued since each deposit or borrow. Utilization, and therefore both APYs, were off too.This matches the canister's own
utilization_rate()andavailable_liquidity(). The rate model is unchanged.2. SOL pool
The SOL pool added in #3190 is decoded and priced correctly. It holds about $18 today, below the $1k
tvlUsdDBminimum, so it doesn't reach/poolsyet. No code change is needed.3. USDC and USDT metadata
Per review, both pools stay on
ICPwith their ckUSDC/ckUSDT ledgers asunderlyingTokens. They get:4. Folder rename
Protocol 7478's slug is now
liquidium-cross-chain, so the adapter test failed on master: the folder name must match the slug. This PR renames the folder andproject, and adds aconfigmigration in the same format as #3237. If you prefer to do renames yourselves, I'll drop that part.🤖 Generated with Claude Code
Summary by CodeRabbit