Sell
Sell

Pendle · Acts onchain

Swaps a Pendle market's PT or YT for SY through the router. The socket resolves the sold token from the market, approves the router, and calls swapExactPtForSy or swapExactYtForSy for the chosen kind, enforcing the min_out floor; the call returns the SY received and the SY fee paid. Both tokens share the SY's decimals. Reach for it to exit a fixed yield or a yield exposure into SY ahead of maturity, coiling the SY out into a redemption to the accounting asset or a swap.