# wrong calculation of amount of Ltokens to seize in liquidateCrossChain function

CrossChainRouter computes seize tokens for chain A collateral using chain B's exchange rate, causing wrong liquidation amounts across chains.

- Payout: Audit contest
- Severity: high
- Program: Lend Audit Contest
- Found by: ggg_ttt_hhh
- Disclosed: 2025-05-22
- Write-up quality: 6/10
- Original: https://github.com/sherlock-audit/2025-05-lend-audit-contest-judging/issues/321
- Library page: https://bugbountylibrary.com/r/sherlock%3A2025-05-lend-audit-contest%3AH-5
- Tags: area:web3 domain:web3 impact:funds-loss kind:contest platform:sherlock sev:high tech:evm tech:solidity technique:chained technique:source-review vuln:accounting-error vuln:liquidation vuln:oracle-manipulation

**Target:** CrossChainRouter.liquidateCrossChain / Lendtroller.liquidateCalculateSeizeTokens
**Root cause:** liquidateCalculateSeizeTokens is called on chain B with the chain-B lToken, so it uses chain B's exchangeRateStored to compute seizeTokens, but the collateral actually seized lives on chain A where the exchange rate differs.
**Steps:**
1. Borrower cross-borrows on chain B with collateral lTokenChainA on chain A
2. Borrower becomes undercollateralized
3. Liquidator calls `liquidateCrossChain(borrower, repayAmount, srcEid, lTokenToSeize=lTokenChainB, borrowedAsset)` on chain B
4. Router calls `LendtrollerInterfaceV2(lendtroller).liquidateCalculateSeizeTokens(borrowedlToken, params.lTokenToSeize, params.repayAmount)` using chain-B lToken
5. seizeTokens computed with chain-B exchangeRateStored, then used to seize chain-A collateral
**How found:** Code reading of the cross-chain liquidation path: noticed lTokenToSeize is the destination-chain lToken but is fed into a seize-token calculation whose exchange rate belongs to the source chain's collateral.
**Exploitation:** Liquidator triggers cross-chain liquidation; because exchange rates differ between chains, the seize amount is miscomputed, seizing too much or too little collateral or reverting the liquidation.
**Insight:** In cross-chain lending, any exchange-rate or price lookup must run on the chain that holds the collateral; passing a mirrored lToken from the destination chain silently substitutes the wrong exchange rate.

