# PendleConnector incorrectly sends the redeemed PT tokens to the market

PendleConnector.burnLP passes the market as PT receiver to market.burn, donating redeemed PT tokens to the market instead of the connector, causing fund loss.

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

**Target:** PendleConnector.burnLP / Pendle market burn()
**Root cause:** burnLP calls market.burn(address(this), address(market), amount), setting the market itself as the PT receiver instead of the connector, so redeemed PT tokens are left/donated to the market.
**Steps:**
1. Call PendleConnector.burnLP(market, amount) as manager
2. Connector transfers LP to market and calls market.burn(address(this), address(market), amount)
3. PT output is sent to address(market) rather than the connector
4. market.skim() sweeps surplus to the market, permanently losing the PT value
**How found:** Code reading of burnLP against PendleMarket.burn signature: noticed the second receiver argument (receiverPt) was set to address(market) instead of address(this).
**Exploitation:** Manager-triggered burnLP misroutes PT tokens to the market; skim() then absorbs them, resulting in loss of the connector's redeemed PT value.
**Insight:** When wrapping external protocol calls, verify each receiver/recipient parameter against the protocol's function signature; multi-receiver functions (SY vs PT) are easy to misroute, and a following skim() can make the loss permanent.

## Proof of concept (copied exactly from the original report)

**burnLP sends PT to market instead of connector**

```
function burnLP(IPMarket market, uint256 amount) external onlyManager nonReentrant {
	IERC20(address(market)).safeTransfer(address(market), amount);
	// @audit -> address(market) should be address(this)
	market.burn(address(this), address(market), amount);
```

