Pendle · Schema

PendleSwapDtoV2

Web3DeFiYield TokenizationCryptoPrincipal TokensYield TokensAMMLiquidity Pools

Properties

Name Type Description
receiver string The address to receive the output of the action
inputs array
tokenOut string Output token address
slippage number Max slippage accepted. A value from 0 to 1 (0.01 is 1%)
aggregators string List of aggregator names to use for the swap. If not provided, all aggregators will be used.List of supported aggregator can be found at: [getSupportedAggregators](#/SDK/SdkController_getSupportedAggr
View JSON Schema on GitHub

JSON Schema

PendleSwapDtoV2.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "PendleSwapDtoV2",
  "type": "object",
  "properties": {
    "receiver": {
      "type": "string",
      "description": "The address to receive the output of the action"
    },
    "inputs": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/PendleSwapInput"
      }
    },
    "tokenOut": {
      "type": "string",
      "description": "Output token address"
    },
    "slippage": {
      "type": "number",
      "description": "Max slippage accepted. A value from 0 to 1 (0.01 is 1%)"
    },
    "aggregators": {
      "type": "string",
      "description": "List of aggregator names to use for the swap. If not provided, all aggregators will be used.List of supported aggregator can be found at: [getSupportedAggregators](#/SDK/SdkController_getSupportedAggregators)",
      "example": "kyberswap,okx"
    }
  },
  "required": [
    "inputs",
    "tokenOut",
    "slippage"
  ]
}