Trade market’s Principal Token (PT) for fixed yield.
PT is traded with a token of the user’s choice.
A sufficient allowance for the Pendle Router on the appropriate token contract must be set
beforehand. For action set to BUY, this is the token contract. For action set to SELL, this is the PT contract.
Required Allowances
In order to make this transaction, token allowances need to be set for the following contracts.
PendleRouterThe address of the market identifying which Principal Token (PT) you would like to trade.
"0x08a152834de126d2ef83d612ff36e4523fd0017f"
Specifies the direction of the PT trade. Valid values are BUY (to buy PT) or SELL (to sell PT).
BUY, SELL "BUY"
"SELL"
TThe symbol or address of the token to trade PT with. For action set to BUY, this is the token to buy PT with. For action set to SELL, this is the token to sell PT for.
"USDC"
"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
For action set to BUY, this is the amount in of token to buy PT with. For action set to SELL, this is the amount in of PT to sell for token.
x > 01.5
The maximum slippage allowed in percent. e.g. 1 means 1% slippage allowed.
0 <= x <= 100.5
arbitrum, base, ethereum The address of the transaction sender.
"0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B"
"PENDLE_TRADE_PT"Determines whether to estimate gas costs for transactions, also verifying that the transaction can be successfully executed.
Successful Response
The unsigned transaction data. User must sign and broadcast to network.
The estimated amount out for the transaction. The actual output amount for this transaction is guaranteed be within the acceptable threshold, defined by the max_slippage_percent, relative to this quote.