Skip to content
Business logic Audit finding Intermediate

Users will lose funds due to token decimal mismatches across chains

The protocol fails to normalise token decimals when processing cross-chain borrow requests, so a borrow amount is interpreted with the destination chain's decimals. A borrower could receive far more tokens than intended (or far fewer) when the same token has different decimals on the two chains.

Kirkeelee Follow with Sa1ntRobi, anchabadze and 3 others

Originally disclosed on Sherlock

Source: https://github.com/sherlock-audit/2025-05-lend-audit-contest-judging/issues/665

Found by

Kirkeelee, Sa1ntRobi, anchabadze, heavyw8t, yaioxy, zxriptor

Summary

The lack of decimal normalization in cross-chain token transfers will cause users to lose significant funds, as borrowers will receive incorrect amounts when borrowing across chains with different token decimals.

Root Cause

In CrossChainRouter.sol:_handleBorrowCrossChainRequest() and CoreRouter.sol:borrowForCrossChain(), the protocol assumes tokens have the same decimals across chains, but tokens like USDC have 6 decimals on Ethereum and 18 decimals on Base. The amount is passed directly through LayerZero without adjusting for these decimal differences, leading to incorrect borrow amounts.

Internal Pre-conditions

  1. User needs to call borrowCrossChain() with a token that has different decimals on source and destination chains
  2. The token must be whitelisted and supported on both chains
  3. User must have sufficient collateral on the source chain

External Pre-conditions

Token decimals must differ between chains (e.g. USDC with 6 decimals on Ethereum and 18 decimals on Base)

Attack Path

  1. User calls borrowCrossChain() on Chain A to borrow 1000 USDC (6 decimals)
  2. LayerZero delivers message to Chain B where USDC has 18 decimals
  3. _handleBorrowCrossChainRequest() processes the amount directly
  4. CoreRouter.borrowForCrossChain() transfers 1000 USDC (interpreted as 18 decimals)
  5. User receives 1000e18 instead of 1000e6 USDC on Chain B

Impact

The borrower receives 1000e18 instead of 1000e6 tokens, causing either:

  • Massive overborrowing if decimals increase across chains
  • Tiny underborrowing if decimals decrease across chains In both cases, users suffer significant financial losses.

PoC

No response

Mitigation

Add decimal normalization in CrossChainRouter._handleBorrowCrossChainRequest()

The original report as published on Sherlock, by Kirkeelee. Images and videos are our own copies; raw HTML is shown as text. View it on Sherlock.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the cross-chain borrow logic passes the raw token amount through LayerZero without adjusting for the difference in token decimals between the source and destination chains.

Impact

The borrower could receive 1000e18 instead of 1000e6 tokens, causing massive overborrowing or tiny underborrowing, and users could suffer significant financial losses.

What the attacker needed

Token whitelisted on both chains; token decimals differ between chains; user has sufficient collateral

The fix

Decimal normalisation should be added in CrossChainRouter._handleBorrowCrossChainRequest().

How it was found

  1. User calls borrowCrossChain() on Chain A to borrow 1000 USDC (6 decimals)
  2. LayerZero delivers the message to Chain B where USDC has 18 decimals
  3. _handleBorrowCrossChainRequest() processes the amount directly
  4. CoreRouter.borrowForCrossChain() transfers 1000 USDC interpreted as 18 decimals
  5. User receives 1000e18 instead of 1000e6 USDC on Chain B

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Tokens like USDC can have different numbers of decimal places on different blockchains. This protocol passes a borrow amount from one chain to another without converting it, so the receiving chain misreads the number. That can give the borrower a huge unintended amount or a tiny one.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by Kirkeelee

View all

6 more disclosed reports, best first.

More from LEND

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.