Manage liquidity in a Pendle Market.
Liquidity is supplied to or withdrawn from the market with a token of the user’s choice.
Representation of the liquidity provided is in the form of market’s Liquidity Provider Token (LP) received by the user.
A sufficient allowance for the Pendle Router on the appropriate token contract must be set
beforehand. For action set to SUPPLY, this is the token contract. For action set to WTIHDRAW, this is the market contract (LP).
Required Allowances
In order to make this transaction, token allowances need to be set for the following contracts.
PendleRouterThe address identifying which Pendle Market you would like to add liquidity to.
"0x08a152834de126d2ef83d612ff36e4523fd0017f"
Specifies the direction of the liquidity operation for the Pendle market. Valid values are SUPPLY (to add liquidity) or WITHDRAW (to remove liquidity).
SUPPLY, WITHDRAW "SUPPLY"
"WITHDRAW"
The symbol or address of the token to manage liquidity with. For action set to SUPPLY, this is the token to add as liquidity. For action set to WITHDRAW, this is the token to remove from liquidity.
"USDC"
"0xaf88d065e77c8cC2239327C5EDb3A432268e5831"
For action set to SUPPLY, this is the amount in of token to add as liquidity in exchange for Liquidity Provider (LP) tokens. For action set to WITHDRAW, this is the amount in of LP tokens to redeem 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_MANAGE_LIQUIDITY"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.