# Base tokens like USDT, USDC having different decimals on different chains can have their TVL updated incorrectly

Cross-chain TVL update from BSC sends 18-decimal USDT/USDC value unscaled to Base's 6-decimal accounting, inflating totalAssets by 1e12 and breaking share minting.

- Payout: Audit contest
- Severity: high
- Program: NOYA
- Found by: MrPotatoMagic
- Disclosed: 2025-02-17
- Write-up quality: 6/10
- Original: https://github.com/code-423n4/2024-04-noya-findings/issues/1438
- Library page: https://bugbountylibrary.com/r/c4%3A2024-04-noya%3AH-02
- Tags: area:web3 domain:web3 impact:integrity kind:contest platform:code4rena sev:high tech:evm tech:solidity technique:source-review vuln:accounting-error vuln:precision-loss

**Target:** OmnichainManagerNormalChain/BaseChain cross-chain TVL accounting
**Root cause:** updateTVL on the base chain stores the raw TVL received from the normal chain without scaling for differing token decimals (18 on BSC vs 6 on Base), so the holding position records a value 1e12 too large.
**Steps:**
1. Manager calls `updateTVLInfo()` on OmnichainManagerNormalChain (BSC); `getTVL()` returns value in 18 decimals.
2. LZHelperSender.updateTVL sends cross-chain message with 18-decimal tvl.
3. LZHelperReceiver._lzReceive calls `OmnichainManagerBaseChain.updateTVL(chainId, tvl, updateTime)` which stores `abi.encode(tvl)` as-is via `registry.updateHoldingPostionWithTime`.
4. AccountingManager.totalAssets() -> TVLHelper.getTVL sums holding positions, returning value 1e12 larger than actual 6-decimal amount.
5. Vault share minting/accounting uses inflated totalAssets.
**How found:** Noticed USDT/USDC have 18 decimals on BSC but 6 on Base, then traced the cross-chain TVL update path to confirm no decimal scaling occurs on receipt.
**Exploitation:** No direct theft path shown; incorrect TVL corrupts ERC4626 share pricing and vault accounting, enabling mispriced deposits/withdrawals.
**Insight:** When auditing omnichain accounting, compare the same token's decimals across every supported chain and verify the receive-side handler rescales before storing into shared TVL/position state.

