# The rebalancing system is broken when everclear bridge contract is used

EverclearBridge approves only the transfer amount, but Everclear FeeAdapter pulls amount+fee, so every cross-chain rebalance reverts.

- Payout: Audit contest
- Severity: medium
- Program: Malda
- Found by: 0xmechanic
- Disclosed: 2025-07-22
- Write-up quality: 6/10
- Original: https://github.com/sherlock-audit/2025-07-malda-judging/issues/304
- Library page: https://bugbountylibrary.com/r/sherlock%3A2025-07-malda%3AM-9
- Tags: area:web3 domain:web3 impact:dos kind:contest platform:sherlock sev:medium tech:evm tech:solidity technique:source-review vuln:accounting-error vuln:business-logic

**Target:** EverclearBridge.sendMsg / Everclear FeeAdapter.newIntent
**Root cause:** sendMsg safeApprove's only params.amount to the FeeAdapter, but FeeAdapter.newIntent pulls _amount + _feeParams.fee via _pullTokens, exceeding allowance.
**Steps:**
1. Rebalancer calls EverclearBridge.sendMsg with _extractedAmount > params.amount
2. Excess is returned to market; safeApprove(feeAdapter, params.amount)
3. everclearFeeAdapter.newIntent(...) calls _pullTokens(msg.sender, inputAsset, _amount + fee)
4. transferFrom exceeds allowance and reverts, aborting rebalance
**How found:** Code-reading of sendMsg's approval amount versus FeeAdapter.newIntent's _pullTokens(_amount + fee), noting fee is added on top rather than deducted.
**Insight:** When integrating third-party adapters, verify the exact pull amount (amount+fee) against your approval, not just the nominal transfer amount.

