Skip to main content

createSellYtInstruction

Builds a raw instruction to sell YT tokens for SY. This instruction buys PT from the pool, merges the PT and YT back into SY, and returns the net SY to the trader. The process leverages the PT/SY AMM to determine the conversion ratio.

Usage

Accounts

Args

Returns

TransactionInstruction — a transaction instruction ready to be added to a transaction.