{"protocolVersion":"2025-06-18","capabilities":{"tools":{"listChanged":false}},"agentGuidance":{"description":"General guidance for external AI agents using this MCP server. Read before selecting a project endpoint, requesting tool schemas, or calling protocol tools.","skillUrl":"https://erc8004.heyanon.ai/mcp/skill.md"},"serverInfo":{"name":"heyanon-erc8004-curve-llamalend","version":"1.0.0"},"tools":[{"name":"getSupportedChains","description":"List supported chains and chain IDs for Curve LlamaLend, LlamaLend v1, v2 and crvUSD mint loans. Check product availability on each network.","inputSchema":{"type":"object","properties":{},"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"type":"object","properties":{"protocol":{"type":"string"},"chains":{"type":"array","items":{"type":"object","properties":{"chainName":{"type":"string"},"chainId":{"type":"integer","minimum":0,"maximum":9007199254740991},"products":{"type":"array","items":{"type":"string"}}},"required":["chainName","chainId","products"],"additionalProperties":false}}},"required":["protocol","chains"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getDescription","description":"Explain Curve LlamaLend workflows and function usage.","inputSchema":{"type":"object","properties":{},"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"type":"object","properties":{"description":{"type":"string"}},"required":["description"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getMarketAddresses","description":"Find Curve LlamaLend and crvUSD mint markets by tokens, rates, TVL, liquidity, utilization, LTV, type and version. Returns eligible controller addresses, tokens and comparison metrics. Use getMarketsInfo for details at known addresses.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","optimism","arbitrum"],"description":"Network to search."},"collateralTokenAddress":{"anyOf":[{"type":"string","description":"Required nullable collateral token selector. Native-token addresses match wrapped-native collateral. Preserve native payment intent by passing that native address as collateralTokenAddress in quotes and loan actions. Required selector; send null for all matching markets."},{"type":"null"}]},"borrowedTokenAddress":{"anyOf":[{"type":"string","description":"Required nullable borrowed-token selector. For lending, this is the asset supplied. Native-token addresses match wrapped-native debt. For native supply, pass that native address as tokenAddress in quotes and supply. Required selector; send null for all matching markets."},{"type":"null"}]},"minBorrowAprPercent":{"type":"number","minimum":0,"description":"Minimum borrow APR in percent. Omission disables this bound."},"maxBorrowAprPercent":{"type":"number","minimum":0,"description":"Maximum borrow APR in percent. Omission disables this bound."},"minSupplyAprPercent":{"type":"number","minimum":0,"description":"Minimum supply APR in percent, excluding incentives. Omission disables this bound."},"maxSupplyAprPercent":{"type":"number","minimum":0,"description":"Maximum supply APR in percent, excluding incentives. Omission disables this bound."},"minTvlUsd":{"type":"number","minimum":0,"description":"Minimum TVL in USD using Curve market-list calculations. Omission disables this bound."},"maxTvlUsd":{"type":"number","minimum":0,"description":"Maximum TVL in USD using Curve market-list calculations. Omission disables this bound."},"minAvailableLiquidityUsd":{"type":"number","minimum":0,"description":"Minimum available liquidity in USD. Omission disables this bound."},"maxAvailableLiquidityUsd":{"type":"number","minimum":0,"description":"Maximum available liquidity in USD. Omission disables this bound."},"minUtilizationPercent":{"type":"number","minimum":0,"description":"Minimum utilization in percent. Omission disables this bound."},"maxUtilizationPercent":{"type":"number","minimum":0,"description":"Maximum utilization in percent. Omission disables this bound."},"minLtvPercent":{"type":"number","minimum":0,"maximum":100,"description":"Lower bound for the market's maximum LTV, in percent. Omission disables this bound."},"maxLtvPercent":{"type":"number","minimum":0,"maximum":100,"description":"Upper bound for the market's maximum LTV, in percent. Omission disables this bound."},"marketType":{"anyOf":[{"type":"string","enum":["mint","lending"],"description":"Mint or lending markets. Null searches both. Required selector; send null for all matching markets."},{"type":"null"}]},"marketVersion":{"anyOf":[{"type":"string","enum":["v1","v2"],"description":"LlamaLend version filter. A version selects lending markets only. Null searches all supported versions and mint markets. Ethereum and Optimism support v1/v2. Arbitrum supports v1. Mint controller versions are separate. Required selector; send null for all matching markets."},{"type":"null"}]},"offset":{"type":"integer","minimum":0,"maximum":20000,"description":"Offset after all filters. Omission starts at zero."},"limit":{"type":"integer","minimum":1,"maximum":50,"description":"Page size. Follow nextOffset. Omission uses the default."}},"required":["chainName","collateralTokenAddress","borrowedTokenAddress","marketType","marketVersion"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"type":"object","properties":{"chainName":{"type":"string"},"blockNumber":{"type":"string","description":"Integer base units as a decimal string."},"appliedFilters":{"type":"object","properties":{"collateralTokenAddress":{"anyOf":[{"type":"string"},{"type":"null"}]},"borrowedTokenAddress":{"anyOf":[{"type":"string"},{"type":"null"}]},"marketType":{"anyOf":[{"type":"string"},{"type":"null"}]},"marketVersion":{"anyOf":[{"type":"string"},{"type":"null"}]},"minBorrowAprPercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxBorrowAprPercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"minSupplyAprPercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxSupplyAprPercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"minTvlUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxTvlUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"minAvailableLiquidityUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxAvailableLiquidityUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"minUtilizationPercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxUtilizationPercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"minLtvPercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxLtvPercent":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["collateralTokenAddress","borrowedTokenAddress","marketType","marketVersion","minBorrowAprPercent","maxBorrowAprPercent","minSupplyAprPercent","maxSupplyAprPercent","minTvlUsd","maxTvlUsd","minAvailableLiquidityUsd","maxAvailableLiquidityUsd","minUtilizationPercent","maxUtilizationPercent","minLtvPercent","maxLtvPercent"],"additionalProperties":false},"nativeLookupNote":{"anyOf":[{"type":"string"},{"type":"null"}]},"markets":{"type":"array","items":{"type":"object","properties":{"product":{"type":"string","enum":["crvusd","llamalend-v1","llamalend-v2"]},"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"controllerAddress":{"type":"string"},"vaultAddress":{"anyOf":[{"type":"string"},{"type":"null"}]},"ammAddress":{"type":"string"},"collateralToken":{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["address","symbol","decimals"],"additionalProperties":false},"borrowedToken":{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["address","symbol","decimals"],"additionalProperties":false},"marketType":{"type":"string","enum":["mint","lending"]},"marketVersion":{"anyOf":[{"type":"string","enum":["v1","v2"]},{"type":"null"}]},"metrics":{"type":"object","properties":{"borrowAprPercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"supplyAprPercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"tvlUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"availableLiquidityUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"utilizationPercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxLtvPercent":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["borrowAprPercent","supplyAprPercent","tvlUsd","availableLiquidityUsd","utilizationPercent","maxLtvPercent"],"additionalProperties":false},"solvencyPercent":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["product","index","controllerAddress","vaultAddress","ammAddress","collateralToken","borrowedToken","marketType","marketVersion","metrics","solvencyPercent"],"additionalProperties":false}},"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"ambiguous":{"type":"boolean"},"offset":{"type":"integer","minimum":0,"maximum":9007199254740991},"limit":{"type":"integer","minimum":0,"maximum":9007199254740991},"nextOffset":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"discoveryErrors":{"type":"array","items":{"type":"object","properties":{"product":{"type":"string"},"index":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"error":{"type":"string"}},"required":["product","index","error"],"additionalProperties":false}},"metricErrors":{"type":"array","items":{"type":"object","properties":{"product":{"type":"string"},"error":{"type":"string"}},"required":["product","error"],"additionalProperties":false}},"missingMetrics":{"type":"array","items":{"type":"object","properties":{"controllerAddress":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}}},"required":["controllerAddress","fields"],"additionalProperties":false}},"partial":{"type":"boolean"},"metricSources":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"fetchedAtUtc":{"type":"string"},"cachedAtUtc":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["url","fetchedAtUtc","cachedAtUtc"],"additionalProperties":false}},"supportedLendingVersions":{"type":"array","items":{"type":"string","enum":["v1","v2"]}},"note":{"type":"string"}},"required":["chainName","blockNumber","appliedFilters","nativeLookupNote","markets","total","ambiguous","offset","limit","nextOffset","discoveryErrors","metricErrors","missingMetrics","partial","metricSources","supportedLendingVersions","note"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getMarketsInfo","description":"Get market details for known controller addresses: version, debt, assets, oracle price, rates, solvency and deprecation status. Use getMarketAddresses to discover markets.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","optimism","arbitrum"],"description":"Network of the selected markets."},"controllerAddresses":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"},"description":"Known controller addresses supplied by the user or returned by getMarketAddresses or getPositions. Each identifies one fixed collateral/debt pair and is verified against the supported factories."}},"required":["chainName","controllerAddresses"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"type":"object","properties":{"chainName":{"type":"string"},"blockNumber":{"type":"string","description":"Integer base units as a decimal string."},"markets":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"product":{"type":"string","const":"crvusd"},"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"controllerAddress":{"type":"string"},"vaultAddress":{"type":"null"},"ammAddress":{"type":"string"},"collateralToken":{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["address","symbol","decimals"],"additionalProperties":false},"borrowedToken":{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["address","symbol","decimals"],"additionalProperties":false},"metrics":{"type":"object","properties":{"borrowAprPercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"supplyAprPercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"tvlUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"availableLiquidityUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"utilizationPercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxLtvPercent":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["borrowAprPercent","supplyAprPercent","tvlUsd","availableLiquidityUsd","utilizationPercent","maxLtvPercent"],"additionalProperties":false},"solvencyPercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"deprecated":{"type":"boolean"},"controllerVersion":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}]},{"type":"null"}]},"totalDebt":{"type":"object","properties":{"value":{"anyOf":[{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},{"type":"null"}]},"raw":{"anyOf":[{"type":"string","description":"Integer base units as a decimal string."},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["value","raw","error"],"additionalProperties":false},"loanDiscount":{"type":"object","properties":{"value":{"anyOf":[{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},{"type":"null"}]},"raw":{"anyOf":[{"type":"string","description":"Integer base units as a decimal string."},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["value","raw","error"],"additionalProperties":false},"liquidationDiscount":{"type":"object","properties":{"value":{"anyOf":[{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},{"type":"null"}]},"raw":{"anyOf":[{"type":"string","description":"Integer base units as a decimal string."},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["value","raw","error"],"additionalProperties":false},"oraclePrice":{"type":"object","properties":{"value":{"anyOf":[{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},{"type":"null"}]},"raw":{"anyOf":[{"type":"string","description":"Integer base units as a decimal string."},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["value","raw","error"],"additionalProperties":false,"description":"Oracle price in borrowed-token units per whole collateral token, in human-readable decimals such as \"1.5\"."},"borrowRatePerSecond":{"type":"object","properties":{"value":{"anyOf":[{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},{"type":"null"}]},"raw":{"anyOf":[{"type":"string","description":"Integer base units as a decimal string."},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["value","raw","error"],"additionalProperties":false},"borrowApr":{"anyOf":[{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},{"type":"null"}]}},"required":["product","index","controllerAddress","vaultAddress","ammAddress","collateralToken","borrowedToken","metrics","solvencyPercent","deprecated","controllerVersion","totalDebt","loanDiscount","liquidationDiscount","oraclePrice","borrowRatePerSecond","borrowApr"],"additionalProperties":false},{"type":"object","properties":{"product":{"type":"string","enum":["llamalend-v1","llamalend-v2"]},"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"controllerAddress":{"type":"string"},"vaultAddress":{"type":"string"},"ammAddress":{"type":"string"},"collateralToken":{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["address","symbol","decimals"],"additionalProperties":false},"borrowedToken":{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["address","symbol","decimals"],"additionalProperties":false},"metrics":{"type":"object","properties":{"borrowAprPercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"supplyAprPercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"tvlUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"availableLiquidityUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"utilizationPercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"maxLtvPercent":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["borrowAprPercent","supplyAprPercent","tvlUsd","availableLiquidityUsd","utilizationPercent","maxLtvPercent"],"additionalProperties":false},"solvencyPercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"deprecated":{"type":"boolean"},"controllerVersion":{"anyOf":[{"anyOf":[{"type":"string"},{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}]},{"type":"null"}]},"totalDebt":{"type":"object","properties":{"value":{"anyOf":[{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},{"type":"null"}]},"raw":{"anyOf":[{"type":"string","description":"Integer base units as a decimal string."},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["value","raw","error"],"additionalProperties":false},"loanDiscount":{"type":"object","properties":{"value":{"anyOf":[{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},{"type":"null"}]},"raw":{"anyOf":[{"type":"string","description":"Integer base units as a decimal string."},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["value","raw","error"],"additionalProperties":false},"liquidationDiscount":{"type":"object","properties":{"value":{"anyOf":[{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},{"type":"null"}]},"raw":{"anyOf":[{"type":"string","description":"Integer base units as a decimal string."},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["value","raw","error"],"additionalProperties":false},"oraclePrice":{"type":"object","properties":{"value":{"anyOf":[{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},{"type":"null"}]},"raw":{"anyOf":[{"type":"string","description":"Integer base units as a decimal string."},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["value","raw","error"],"additionalProperties":false,"description":"Oracle price in borrowed-token units per whole collateral token, in human-readable decimals such as \"1.5\"."},"borrowRatePerSecond":{"type":"object","properties":{"value":{"anyOf":[{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},{"type":"null"}]},"raw":{"anyOf":[{"type":"string","description":"Integer base units as a decimal string."},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["value","raw","error"],"additionalProperties":false},"borrowApr":{"anyOf":[{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},{"type":"null"}]},"totalAssets":{"type":"object","properties":{"value":{"anyOf":[{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},{"type":"null"}]},"raw":{"anyOf":[{"type":"string","description":"Integer base units as a decimal string."},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["value","raw","error"],"additionalProperties":false},"lendApr":{"type":"object","properties":{"value":{"anyOf":[{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},{"type":"null"}]},"raw":{"anyOf":[{"type":"string","description":"Integer base units as a decimal string."},{"type":"null"}]},"error":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["value","raw","error"],"additionalProperties":false}},"required":["product","index","controllerAddress","vaultAddress","ammAddress","collateralToken","borrowedToken","metrics","solvencyPercent","deprecated","controllerVersion","totalDebt","loanDiscount","liquidationDiscount","oraclePrice","borrowRatePerSecond","borrowApr","totalAssets","lendApr"],"additionalProperties":false}]}},"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"metricSources":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"fetchedAtUtc":{"type":"string"},"cachedAtUtc":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["url","fetchedAtUtc","cachedAtUtc"],"additionalProperties":false}},"metricErrors":{"type":"array","items":{"type":"object","properties":{"product":{"type":"string"},"error":{"type":"string"}},"required":["product","error"],"additionalProperties":false}},"missingMetrics":{"type":"array","items":{"type":"object","properties":{"controllerAddress":{"type":"string"},"fields":{"type":"array","items":{"type":"string"}}},"required":["controllerAddress","fields"],"additionalProperties":false}},"discoveryErrors":{"type":"array","items":{"type":"object","properties":{"product":{"type":"string"},"index":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"error":{"type":"string"}},"required":["product","index","error"],"additionalProperties":false}},"marketErrors":{"type":"array","items":{"type":"object","properties":{"controllerAddress":{"type":"string"},"error":{"type":"string"}},"required":["controllerAddress","error"],"additionalProperties":false}},"partial":{"type":"boolean"},"rateNote":{"type":"string"},"source":{"type":"string"}},"required":["chainName","blockNumber","markets","total","metricSources","metricErrors","missingMetrics","discoveryErrors","marketErrors","partial","rateNote","source"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getPositions","description":"Discover supplied-wallet Curve LlamaLend loans, liquid lending shares and gauge-staked shares. Omit pagination to scan all supported markets at one internal snapshot. Returns debt, collateral, health, liquidationThresholdPrice with liquidationPriceUnit, soft-liquidation state, redeemable shares and individual failures. Show the threshold when explaining liquidation risk; it marks soft-liquidation entry, not hard liquidation. Unknown reads remain explicit.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","optimism","arbitrum"]},"controllerAddresses":{"anyOf":[{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string"},"description":" Required selector; send null for all matching markets."},{"type":"null"}]},"offset":{"type":"integer","minimum":0,"maximum":20000},"limit":{"type":"integer","minimum":1,"maximum":50},"userAddress":{"type":"string"}},"required":["chainName","controllerAddresses","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"type":"object","properties":{"chainName":{"type":"string"},"walletAddress":{"type":"string"},"blockNumber":{"type":"string","description":"Integer base units as a decimal string."},"gaugeMetadata":{"anyOf":[{"type":"object","properties":{"source":{"type":"string"},"fetchedAtUtc":{"type":"string"}},"required":["source","fetchedAtUtc"],"additionalProperties":false},{"type":"null"}]},"positions":{"type":"array","items":{"type":"object","properties":{"product":{"type":"string","enum":["crvusd","llamalend-v1","llamalend-v2"]},"index":{"type":"integer","minimum":0,"maximum":9007199254740991},"controllerAddress":{"type":"string"},"vaultAddress":{"anyOf":[{"type":"string"},{"type":"null"}]},"ammAddress":{"type":"string"},"collateralToken":{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["address","symbol","decimals"],"additionalProperties":false},"borrowedToken":{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["address","symbol","decimals"],"additionalProperties":false},"hasLoan":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"loan":{"anyOf":[{"type":"object","properties":{"collateral":{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991},"amount":{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},"amountRaw":{"type":"string","description":"Integer base units as a decimal string."}},"required":["address","symbol","decimals","amount","amountRaw"],"additionalProperties":false},"convertedBorrowed":{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991},"amount":{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},"amountRaw":{"type":"string","description":"Integer base units as a decimal string."}},"required":["address","symbol","decimals","amount","amountRaw"],"additionalProperties":false},"debt":{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991},"amount":{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},"amountRaw":{"type":"string","description":"Integer base units as a decimal string."}},"required":["address","symbol","decimals","amount","amountRaw"],"additionalProperties":false},"bands":{"anyOf":[{"type":"array","items":{"type":"string","description":"Integer base units as a decimal string."}},{"type":"null"}]},"activeBand":{"anyOf":[{"type":"string","description":"Integer base units as a decimal string."},{"type":"null"}]},"bandCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"healthPercent":{"anyOf":[{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},{"type":"null"}]},"liquidationThresholdPrice":{"anyOf":[{"type":"string","description":"Borrowed-token units per whole collateral token, for example \"1.5\"."},{"type":"null"}]},"liquidationPriceUnit":{"type":"string"},"softLiquidation":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["collateral","convertedBorrowed","debt","bands","activeBand","bandCount","healthPercent","liquidationThresholdPrice","liquidationPriceUnit","softLiquidation"],"additionalProperties":false},{"type":"null"}]},"lender":{"anyOf":[{"type":"object","properties":{"liquidShares":{"anyOf":[{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991},"amount":{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},"amountRaw":{"type":"string","description":"Integer base units as a decimal string."}},"required":["address","symbol","decimals","amount","amountRaw"],"additionalProperties":false},{"type":"null"}]},"stakedShares":{"anyOf":[{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991},"amount":{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},"amountRaw":{"type":"string","description":"Integer base units as a decimal string."}},"required":["address","symbol","decimals","amount","amountRaw"],"additionalProperties":false},{"type":"null"}]},"liquidSharesRaw":{"anyOf":[{"type":"string","description":"Integer base units as a decimal string."},{"type":"null"}]},"stakedSharesRaw":{"anyOf":[{"type":"string","description":"Integer base units as a decimal string."},{"type":"null"}]},"assetsEstimate":{"anyOf":[{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991},"amount":{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},"amountRaw":{"type":"string","description":"Integer base units as a decimal string."}},"required":["address","symbol","decimals","amount","amountRaw"],"additionalProperties":false},{"type":"null"}]},"redeemableWalletShares":{"anyOf":[{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991},"amount":{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},"amountRaw":{"type":"string","description":"Integer base units as a decimal string."}},"required":["address","symbol","decimals","amount","amountRaw"],"additionalProperties":false},{"type":"null"}]},"redeemableWalletSharesRaw":{"anyOf":[{"type":"string","description":"Integer base units as a decimal string."},{"type":"null"}]},"withdrawableWalletAssets":{"anyOf":[{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991},"amount":{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},"amountRaw":{"type":"string","description":"Integer base units as a decimal string."}},"required":["address","symbol","decimals","amount","amountRaw"],"additionalProperties":false},{"type":"null"}]},"gaugeAddress":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["liquidShares","stakedShares","liquidSharesRaw","stakedSharesRaw","assetsEstimate","redeemableWalletShares","redeemableWalletSharesRaw","withdrawableWalletAssets","gaugeAddress"],"additionalProperties":false},{"type":"null"}]},"errors":{"type":"array","items":{"type":"string"}}},"required":["product","index","controllerAddress","vaultAddress","ammAddress","collateralToken","borrowedToken","hasLoan","loan","lender","errors"],"additionalProperties":false}},"scannedMarkets":{"type":"integer","minimum":0,"maximum":9007199254740991},"totalMarkets":{"type":"integer","minimum":0,"maximum":9007199254740991},"automaticDiscovery":{"type":"boolean"},"nextOffset":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"warnings":{"type":"array","items":{"type":"string"}},"partial":{"type":"boolean"}},"required":["chainName","walletAddress","blockNumber","gaugeMetadata","positions","scannedMarkets","totalMarkets","automaticDiscovery","nextOffset","warnings","partial"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getLoanQuote","description":"Preview opening a Curve LlamaLend loan, changing collateral, borrowing more or repaying. Returns resolved amounts, maximum capacity, resulting health and wallet spending cap. Amounts use each token decimals. Exact \"-1\" requests the documented maximum. Full repayment includes current debt. Bands apply when opening.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","optimism","arbitrum"]},"controllerAddress":{"type":"string","description":"Verified controllerAddress returned by getMarketAddresses, getMarketsInfo or getPositions."},"collateralTokenAddress":{"type":"string","description":"Collateral payment address. Pass the SDK native-token address to pay ETH. Verified payable controllers receive ETH directly; other controllers use an ordered wrap, approve and loan batch. Omission uses the market collateral token. Native all reserves gas. Native collateral payment applies to open, addCollateral and borrowMore; omit for removal or repayment."},"action":{"type":"string","enum":["open","addCollateral","removeCollateral","borrowMore","repay"]},"collateralAmount":{"anyOf":[{"type":"string","description":"Decimal collateral token amount. Exact \"-1\" uses the wallet balance for adding, or the amount above the controller minimum for removing. Required selector; send null for the inactive amount. Human-readable decimal units, for example \"1.5\"."},{"type":"null"}]},"debtAmount":{"anyOf":[{"type":"string","description":"Decimal borrowed-token amount. Exact \"-1\" uses maximum available borrowing capacity for borrowing or full current debt for repayment. Required selector; send null for the inactive amount. Human-readable decimal units, for example \"1.5\"."},{"type":"null"}]},"bands":{"type":"integer","minimum":4,"maximum":50,"description":"Bands when opening a loan. Omission uses 10."},"userAddress":{"type":"string"}},"required":["chainName","controllerAddress","action","collateralAmount","debtAmount","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"type":"object","properties":{"action":{"type":"string","enum":["open","addCollateral","removeCollateral","borrowMore","repay"]},"chainName":{"type":"string"},"controllerAddress":{"type":"string"},"product":{"type":"string","enum":["crvusd","llamalend-v1","llamalend-v2"]},"controllerVersion":{"anyOf":[{"type":"string","enum":["v2","v1-early"]},{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}]},"blockNumber":{"type":"string","description":"Integer base units as a decimal string."},"collateral":{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991},"amount":{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},"amountRaw":{"type":"string","description":"Integer base units as a decimal string."}},"required":["address","symbol","decimals","amount","amountRaw"],"additionalProperties":false},"debt":{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991},"amount":{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},"amountRaw":{"type":"string","description":"Integer base units as a decimal string."}},"required":["address","symbol","decimals","amount","amountRaw"],"additionalProperties":false},"maximumBorrowable":{"anyOf":[{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991},"amount":{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},"amountRaw":{"type":"string","description":"Integer base units as a decimal string."}},"required":["address","symbol","decimals","amount","amountRaw"],"additionalProperties":false},{"type":"null"}]},"walletSpendingCap":{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991},"amount":{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},"amountRaw":{"type":"string","description":"Integer base units as a decimal string."}},"required":["address","symbol","decimals","amount","amountRaw"],"additionalProperties":false},"payment":{"anyOf":[{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991},"amount":{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},"amountRaw":{"type":"string","description":"Integer base units as a decimal string."}},"required":["address","symbol","decimals","amount","amountRaw"],"additionalProperties":false},{"type":"null"}]},"nativeGasReserve":{"anyOf":[{"type":"object","properties":{"gasUnits":{"type":"string","description":"Integer base units as a decimal string."},"maxFeePerGasWei":{"type":"string","description":"Integer base units as a decimal string."},"amountRaw":{"type":"string","description":"Integer base units as a decimal string."},"amount":{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."}},"required":["gasUnits","maxFeePerGasWei","amountRaw","amount"],"additionalProperties":false},{"type":"null"}]},"fundingMode":{"type":"string","enum":["direct-native","wrap-then-call","erc20"]},"fullRepayment":{"type":"boolean"},"healthPercent":{"anyOf":[{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},{"type":"null"}]},"bands":{"type":"integer","minimum":0,"maximum":9007199254740991},"maximumActiveBand":{"type":"string","description":"Integer base units as a decimal string."},"note":{"type":"string"}},"required":["action","chainName","controllerAddress","product","controllerVersion","blockNumber","collateral","debt","maximumBorrowable","walletSpendingCap","payment","nativeGasReserve","fundingMode","fullRepayment","healthPercent","bands","maximumActiveBand","note"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"openLoan","description":"Prepare ordered unsigned transactions; no signing, broadcast or receipt confirmation. Open a Curve LlamaLend loan using collateral and borrowed assets in the selected market. Exact \"-1\" uses all wallet collateral or maximum borrowing capacity.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","optimism","arbitrum"]},"controllerAddress":{"type":"string","description":"Verified controllerAddress returned by getMarketAddresses, getMarketsInfo or getPositions."},"collateralTokenAddress":{"type":"string","description":"Collateral payment address. Pass the SDK native-token address to pay ETH. Verified payable controllers receive ETH directly; other controllers use an ordered wrap, approve and loan batch. Omission uses the market collateral token. Native all reserves gas. Native collateral payment applies to open, addCollateral and borrowMore; omit for removal or repayment."},"collateralAmount":{"type":"string","description":"Decimal collateral token amount. Exact \"-1\" uses the wallet balance for adding, or the amount above the controller minimum for removing. Human-readable decimal units, for example \"1.5\"."},"debtAmount":{"type":"string","description":"Decimal borrowed-token amount. Exact \"-1\" uses maximum available borrowing capacity for borrowing or full current debt for repayment. Human-readable decimal units, for example \"1.5\"."},"bands":{"type":"integer","minimum":4,"maximum":50,"description":"Bands when opening a loan. Omission uses 10."},"userAddress":{"type":"string"}},"required":["chainName","controllerAddress","collateralAmount","debtAmount","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false}}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"addCollateral","description":"Prepare ordered unsigned transactions; no signing, broadcast or receipt confirmation. Add collateral to an active Curve LlamaLend loan. Exact \"-1\" uses all wallet collateral.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","optimism","arbitrum"]},"controllerAddress":{"type":"string","description":"Verified controllerAddress returned by getMarketAddresses, getMarketsInfo or getPositions."},"collateralTokenAddress":{"type":"string","description":"Collateral payment address. Pass the SDK native-token address to pay ETH. Verified payable controllers receive ETH directly; other controllers use an ordered wrap, approve and loan batch. Omission uses the market collateral token. Native all reserves gas. Native collateral payment applies to open, addCollateral and borrowMore; omit for removal or repayment."},"collateralAmount":{"type":"string","description":"Decimal collateral token amount. Exact \"-1\" uses the wallet balance for adding, or the amount above the controller minimum for removing. Human-readable decimal units, for example \"1.5\"."},"userAddress":{"type":"string"}},"required":["chainName","controllerAddress","collateralAmount","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false}}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"removeCollateral","description":"Prepare ordered unsigned transactions; no signing, broadcast or receipt confirmation. Remove collateral from an eligible LlamaLend v1/v2 or crvUSD mint loan after checking resulting health. Exact \"-1\" uses collateral above the current controller minimum.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","optimism","arbitrum"]},"controllerAddress":{"type":"string","description":"Verified controllerAddress returned by getMarketAddresses, getMarketsInfo or getPositions."},"collateralAmount":{"type":"string","description":"Decimal collateral token amount. Exact \"-1\" uses the wallet balance for adding, or the amount above the controller minimum for removing. Human-readable decimal units, for example \"1.5\"."},"userAddress":{"type":"string"}},"required":["chainName","controllerAddress","collateralAmount","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false}}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"borrowMore","description":"Prepare ordered unsigned transactions; no signing, broadcast or receipt confirmation. Borrow additional tokens against an active Curve LlamaLend loan, optionally adding collateral. Exact \"-1\" requests maximum available borrowing capacity.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","optimism","arbitrum"]},"controllerAddress":{"type":"string","description":"Verified controllerAddress returned by getMarketAddresses, getMarketsInfo or getPositions."},"collateralTokenAddress":{"type":"string","description":"Collateral payment address. Pass the SDK native-token address to pay ETH. Verified payable controllers receive ETH directly; other controllers use an ordered wrap, approve and loan batch. Omission uses the market collateral token. Native all reserves gas. Native collateral payment applies to open, addCollateral and borrowMore; omit for removal or repayment."},"debtAmount":{"type":"string","description":"Decimal borrowed-token amount. Exact \"-1\" uses maximum available borrowing capacity for borrowing or full current debt for repayment. Human-readable decimal units, for example \"1.5\"."},"collateralAmount":{"type":"string","description":"Decimal collateral token amount. Exact \"-1\" uses the wallet balance for adding, or the amount above the controller minimum for removing. Human-readable decimal units, for example \"1.5\"."},"userAddress":{"type":"string"}},"required":["chainName","controllerAddress","debtAmount","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false}}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"repay","description":"Prepare ordered unsigned transactions; no signing, broadcast or receipt confirmation. Repay Curve LlamaLend debt. Exact \"-1\" requests full repayment including accrued interest. The caller checks receipts, remaining assets and loan closure.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","optimism","arbitrum"]},"controllerAddress":{"type":"string","description":"Verified controllerAddress returned by getMarketAddresses, getMarketsInfo or getPositions."},"debtAmount":{"type":"string","description":"Decimal borrowed-token amount. Exact \"-1\" uses maximum available borrowing capacity for borrowing or full current debt for repayment. Human-readable decimal units, for example \"1.5\"."},"userAddress":{"type":"string"}},"required":["chainName","controllerAddress","debtAmount","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false}}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getLendingQuote","description":"Preview a LlamaLend v1/v2 supply or lending-share redemption. Supply amount is in borrowed-asset units. Redemption amount is in vault-share units. Exact \"-1\" uses the available wallet balance within vault limits. Returns estimated assets and shares with their own decimals.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","optimism","arbitrum"]},"controllerAddress":{"type":"string","description":"Verified controllerAddress returned by getMarketAddresses, getMarketsInfo or getPositions."},"tokenAddress":{"type":"string","description":"Payment token address for supply. Pass the SDK native-token address to supply ETH through one atomic wrap, approve and deposit multicall. Omission uses the market borrowed token. Native all reserves gas. Redeem returns the market asset."},"action":{"type":"string","enum":["supply","redeem"]},"amount":{"type":"string","description":"Decimal asset amount for supply, decimal vault shares for redeem, or exact \"-1\" for the currently available maximum. Human-readable decimal units, for example \"1.5\"."},"userAddress":{"type":"string"}},"required":["chainName","controllerAddress","action","amount","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"type":"object","properties":{"action":{"type":"string","enum":["supply","redeem"]},"chainName":{"type":"string"},"controllerAddress":{"type":"string"},"vaultAddress":{"type":"string"},"blockNumber":{"type":"string","description":"Integer base units as a decimal string."},"assets":{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991},"amount":{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},"amountRaw":{"type":"string","description":"Integer base units as a decimal string."}},"required":["address","symbol","decimals","amount","amountRaw"],"additionalProperties":false},"payment":{"anyOf":[{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991},"amount":{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},"amountRaw":{"type":"string","description":"Integer base units as a decimal string."}},"required":["address","symbol","decimals","amount","amountRaw"],"additionalProperties":false},{"type":"null"}]},"nativeGasReserve":{"anyOf":[{"type":"object","properties":{"gasUnits":{"type":"string","description":"Integer base units as a decimal string."},"maxFeePerGasWei":{"type":"string","description":"Integer base units as a decimal string."},"amountRaw":{"type":"string","description":"Integer base units as a decimal string."},"amount":{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."}},"required":["gasUnits","maxFeePerGasWei","amountRaw","amount"],"additionalProperties":false},{"type":"null"}]},"atomicNativeSupply":{"type":"boolean"},"shares":{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991},"amount":{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},"amountRaw":{"type":"string","description":"Integer base units as a decimal string."}},"required":["address","symbol","decimals","amount","amountRaw"],"additionalProperties":false},"maximum":{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991},"amount":{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},"amountRaw":{"type":"string","description":"Integer base units as a decimal string."}},"required":["address","symbol","decimals","amount","amountRaw"],"additionalProperties":false},"note":{"type":"string"}},"required":["action","chainName","controllerAddress","vaultAddress","blockNumber","assets","payment","nativeGasReserve","atomicNativeSupply","shares","maximum","note"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getStakeRewards","description":"Read supplied-wallet CRV emissions and separate external lender gauge rewards, with token symbols and individual failures.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","optimism","arbitrum"]},"controllerAddress":{"type":"string","description":"Verified controllerAddress returned by getMarketAddresses, getMarketsInfo or getPositions."},"userAddress":{"type":"string"}},"required":["chainName","controllerAddress","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"anyOf":[{"type":"object","properties":{"chainName":{"type":"string"},"controllerAddress":{"type":"string"},"gaugeAddress":{"type":"null"},"note":{"type":"string"}},"required":["chainName","controllerAddress","gaugeAddress","note"],"additionalProperties":false},{"type":"object","properties":{"chainName":{"type":"string"},"controllerAddress":{"type":"string"},"gaugeAddress":{"type":"string"},"gaugeMetadata":{"type":"object","properties":{"source":{"type":"string"},"fetchedAtUtc":{"type":"string"}},"required":["source","fetchedAtUtc"],"additionalProperties":false},"walletAddress":{"type":"string"},"blockNumber":{"type":"string","description":"Integer base units as a decimal string."},"crv":{"anyOf":[{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991},"amount":{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},"amountRaw":{"type":"string","description":"Integer base units as a decimal string."}},"required":["address","symbol","decimals","amount","amountRaw"],"additionalProperties":false},{"type":"null"}]},"external":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"address":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"decimals":{"type":"integer","minimum":0,"maximum":9007199254740991},"amount":{"type":"string","description":"Amount in human-readable decimal units, for example \"1.5\"."},"amountRaw":{"type":"string","description":"Integer base units as a decimal string."}},"required":["address","symbol","decimals","amount","amountRaw"],"additionalProperties":false},{"type":"object","properties":{"address":{"type":"string"},"amount":{"type":"null"},"error":{"type":"string"}},"required":["address","amount","error"],"additionalProperties":false}]}},"errors":{"type":"array","items":{"type":"string"}},"partial":{"type":"boolean"}},"required":["chainName","controllerAddress","gaugeAddress","gaugeMetadata","walletAddress","blockNumber","crv","external","errors","partial"],"additionalProperties":false}]}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"claimStakeRewards","description":"Prepare ordered unsigned transactions; no signing, broadcast or receipt confirmation. Claim supplied-wallet CRV emissions and external lender rewards through their verified contracts in one ordered transaction batch. Returns available unsigned claims and warnings for unavailable sources.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","optimism","arbitrum"]},"controllerAddress":{"type":"string","description":"Verified controllerAddress returned by getMarketAddresses, getMarketsInfo or getPositions."},"userAddress":{"type":"string"}},"required":["chainName","controllerAddress","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false}}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"supply","description":"Prepare ordered unsigned transactions; no signing, broadcast or receipt confirmation. Supply the borrowed asset into a LlamaLend v1/v2 vault and receive lending shares. Exact \"-1\" uses available wallet assets within vault capacity. Direct ERC-4626 output varies with share conversion.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","optimism","arbitrum"]},"controllerAddress":{"type":"string","description":"Verified controllerAddress returned by getMarketAddresses, getMarketsInfo or getPositions."},"tokenAddress":{"type":"string","description":"Payment token address for supply. Pass the SDK native-token address to supply ETH through one atomic wrap, approve and deposit multicall. Omission uses the market borrowed token. Native all reserves gas. Redeem returns the market asset."},"amount":{"type":"string","description":"Decimal borrowed-asset amount, or exact \"-1\" for all available assets within the vault cap. Human-readable decimal units, for example \"1.5\"."},"userAddress":{"type":"string"}},"required":["chainName","controllerAddress","amount","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false}}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"redeem","description":"Prepare ordered unsigned transactions; no signing, broadcast or receipt confirmation. Redeem liquid LlamaLend v1/v2 vault shares for the borrowed asset. Exact \"-1\" uses currently redeemable wallet shares. Unstake gauge shares first.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","optimism","arbitrum"]},"controllerAddress":{"type":"string","description":"Verified controllerAddress returned by getMarketAddresses, getMarketsInfo or getPositions."},"amount":{"type":"string","description":"Decimal vault-share amount, or exact \"-1\" for currently redeemable wallet shares. Human-readable decimal units, for example \"1.5\"."},"userAddress":{"type":"string"}},"required":["chainName","controllerAddress","amount","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false}}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"stakeShares","description":"Prepare ordered unsigned transactions; no signing, broadcast or receipt confirmation. Stake wallet-held LlamaLend v1/v2 vault shares in the verified lender gauge. Exact \"-1\" uses all wallet shares.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","optimism","arbitrum"]},"controllerAddress":{"type":"string","description":"Verified controllerAddress returned by getMarketAddresses, getMarketsInfo or getPositions."},"amount":{"type":"string","description":"Decimal vault-share amount or exact \"-1\" for all wallet shares. Human-readable decimal units, for example \"1.5\"."},"userAddress":{"type":"string"}},"required":["chainName","controllerAddress","amount","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false}}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"unstakeShares","description":"Prepare ordered unsigned transactions; no signing, broadcast or receipt confirmation. Withdraw supplied-wallet LlamaLend v1/v2 lender gauge stake as liquid vault shares. Exact \"-1\" uses the full stake. Redeem shares separately to recover assets.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","enum":["ethereum","optimism","arbitrum"]},"controllerAddress":{"type":"string","description":"Verified controllerAddress returned by getMarketAddresses, getMarketsInfo or getPositions."},"amount":{"type":"string","description":"Decimal staked-share amount or exact \"-1\" for the full gauge stake. Human-readable decimal units, for example \"1.5\"."},"userAddress":{"type":"string"}},"required":["chainName","controllerAddress","amount","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"transactions":{"type":"array","items":{"type":"object","properties":{"chainId":{"type":"number","description":"EVM chain ID"},"transaction":{"type":"object","properties":{"target":{"type":"string","description":"Target contract address"},"data":{"type":"string","description":"ABI-encoded calldata"},"value":{"description":"Native token value in wei","type":"string"}},"required":["target","data"],"additionalProperties":false,"description":"EVM transaction parameters"}},"required":["chainId","transaction"],"additionalProperties":false}}},"required":["project","operation","transactions"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string","const":"curve-llamalend"},"operation":{"type":"string"},"note":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}}]}