{"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-yield-basis","version":"1.0.0"},"tools":[{"name":"getStakePositions","description":"Get the supplied wallet's staked Yield Basis positions: gauge shares, equivalent yb-LP, underlying asset value and USD total, including legacy stakes. Use gaugeShares as the amount for unstake. Claimable YB is returned by getStakeRewards.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","const":"ethereum"},"userAddress":{"type":"string"}},"required":["chainName","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"type":"object","properties":{"chain":{"type":"string"},"wallet":{"type":"string"},"blockNumber":{"type":"string"},"positions":{"type":"array","items":{"type":"object","properties":{"market":{"type":"string"},"status":{"type":"string"},"asset":{"type":"string"},"assetAddress":{"type":"string"},"gaugeToken":{"type":"object","properties":{"symbol":{"type":"string"},"address":{"type":"string"}},"required":["symbol","address"],"additionalProperties":false},"ybLpToken":{"type":"object","properties":{"symbol":{"type":"string"},"address":{"type":"string"}},"required":["symbol","address"],"additionalProperties":false},"gaugeShares":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."},"ybLp":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."},"valueAtPricePerShare":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."},"usd":{"type":"number"}},"required":["market","status","asset","assetAddress","gaugeToken","ybLpToken","gaugeShares","ybLp","valueAtPricePerShare","usd"],"additionalProperties":false}},"totalUsd":{"type":"number"},"notes":{"type":"array","items":{"type":"string"}}},"required":["chain","wallet","blockNumber","positions","totalUsd","notes"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getDescription","description":"Get the Yield Basis interaction guide: markets, staked vs unstaked yb-LP, deposits and withdrawals, YB rewards, veYB locks, votes and fees, with the tool for each step. Call it for how-to questions before answering.","inputSchema":{"type":"object","properties":{},"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"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"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getSupportedChains","description":"List the chain, markets, tokens and contracts this Yield Basis integration supports.","inputSchema":{"type":"object","properties":{},"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"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":"number"}},"required":["chainName","chainId"],"additionalProperties":false}},"markets":{"type":"array","items":{"type":"object","properties":{"market":{"type":"string"},"factoryIndex":{"type":"number"},"status":{"type":"string"},"asset":{"type":"object","properties":{"symbol":{"type":"string"},"address":{"type":"string"},"decimals":{"type":"number"}},"required":["symbol","address","decimals"],"additionalProperties":false},"ybLpToken":{"type":"object","properties":{"symbol":{"type":"string"},"address":{"type":"string"},"decimals":{"type":"number"}},"required":["symbol","address","decimals"],"additionalProperties":false},"gauge":{"type":"string"}},"required":["market","factoryIndex","status","asset","ybLpToken","gauge"],"additionalProperties":false}},"contracts":{"type":"object","properties":{"depositZap":{"type":"string"},"stakeZap":{"type":"string"},"veYB":{"type":"string"},"gaugeController":{"type":"string"},"feeDistributor":{"type":"string"}},"required":["depositZap","stakeZap","veYB","gaugeController","feeDistributor"],"additionalProperties":false},"tokens":{"type":"object","properties":{"YB":{"type":"object","properties":{"symbol":{"type":"string"},"address":{"type":"string"},"decimals":{"type":"number"}},"required":["symbol","address","decimals"],"additionalProperties":false},"crvUSD":{"type":"object","properties":{"symbol":{"type":"string"},"address":{"type":"string"},"decimals":{"type":"number"}},"required":["symbol","address","decimals"],"additionalProperties":false}},"required":["YB","crvUSD"],"additionalProperties":false},"note":{"type":"string"}},"required":["protocol","chains","markets","contracts","tokens","note"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getMarkets","description":"Read the Yield Basis markets live: TVL, deposit room left under the cap, price per share (fair value) and what one yb token pays in a withdrawal now, whether deposits are open, and unstaked trading-fee APY (last 30 days as the app shows it, last week, last day and all time; can be negative). Show last30Days first. Also returns YB staking APR separately; do not add staking APR to liquidity APY.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","const":"ethereum"},"includeLegacy":{"description":"Include exit-only legacy markets; omit or false for current markets.","type":"boolean"}},"required":["chainName"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"type":"object","properties":{"chain":{"type":"string"},"blockNumber":{"type":"string"},"markets":{"type":"array","items":{"type":"object","properties":{"stakedYbAprPercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"stakedAprUpdatedAtUtc":{"anyOf":[{"type":"string"},{"type":"null"}]},"unstakedFeeApyPercent":{"type":"object","properties":{"last30Days":{"anyOf":[{"type":"number"},{"type":"null"}]},"lastWeek":{"anyOf":[{"type":"number"},{"type":"null"}]},"lastDay":{"anyOf":[{"type":"number"},{"type":"null"}]},"allTime":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["last30Days","lastWeek","lastDay","allTime"],"additionalProperties":false},"apyUpdatedAtUtc":{"anyOf":[{"type":"string"},{"type":"null"}]},"market":{"type":"string"},"status":{"type":"string"},"asset":{"type":"string"},"ybLpToken":{"type":"string"},"pricePerShare":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."},"withdrawPayoutPerShare":{"anyOf":[{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."},{"type":"null"}]},"withdrawalDifferencePercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"totalAssets":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."},"tvlUsd":{"type":"number"},"depositRoomUsd":{"anyOf":[{"type":"number"},{"type":"null"}]},"depositsOpen":{"type":"boolean"},"killed":{"type":"boolean"},"assetPriceUsd":{"type":"number","description":"USD price per whole asset in human-readable decimal format, e.g. 1.5."},"poolPolicy":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["stakedYbAprPercent","stakedAprUpdatedAtUtc","unstakedFeeApyPercent","apyUpdatedAtUtc","market","status","asset","ybLpToken","pricePerShare","withdrawPayoutPerShare","withdrawalDifferencePercent","totalAssets","tvlUsd","depositRoomUsd","depositsOpen","killed","assetPriceUsd","poolPolicy"],"additionalProperties":false}},"apySource":{"type":"string"},"stakingAprSource":{"type":"string"},"warnings":{"type":"array","items":{"type":"string"}},"notes":{"type":"array","items":{"type":"string"}}},"required":["chain","blockNumber","markets","apySource","stakingAprSource","warnings","notes"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getDepositQuote","description":"Quote a Yield Basis deposit without sending: shares received, minimum shares, value at price per share, what withdrawing them right away would pay, the deposit cap and whether the wallet covers it.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","const":"ethereum"},"userAddress":{"type":"string"},"market":{"type":"string","enum":["WBTC","cbBTC","tBTC","WETH"]},"amount":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; \"-1\" uses the available wallet balance."},"stake":{"description":"Omit or false for unstaked LP; true for deposit-and-stake.","type":"boolean"},"native":{"description":"True pays ETH on the WETH market; omit or false pays the ERC-20 asset.","type":"boolean"},"slippagePercent":{"description":"Slippage percentage, e.g. \"0.5\". Omit for 0.1%; at most 3%, with up to two decimals.","type":"string"}},"required":["chainName","userAddress","market","amount"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"type":"object","properties":{"chain":{"type":"string"},"market":{"type":"string"},"deposit":{"type":"object","properties":{"symbol":{"type":"string"},"amount":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."},"usd":{"type":"number"}},"required":["symbol","amount","usd"],"additionalProperties":false},"staked":{"type":"boolean"},"expectedShares":{"type":"object","properties":{"symbol":{"type":"string"},"amount":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."}},"required":["symbol","amount"],"additionalProperties":false},"minimumShares":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."},"slippagePercent":{"type":"number"},"valueAtPricePerShare":{"type":"object","properties":{"symbol":{"type":"string"},"amount":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."}},"required":["symbol","amount"],"additionalProperties":false},"valueVsDepositPercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"withdrawableNow":{"anyOf":[{"type":"object","properties":{"symbol":{"type":"string"},"amount":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."}},"required":["symbol","amount"],"additionalProperties":false},{"type":"null"}]},"roundTripPercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"walletBalance":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."},"walletCovers":{"type":"boolean"},"gasReserve":{"anyOf":[{"type":"object","properties":{"gasUnits":{"type":"number"},"maxFeePerGasWei":{"type":"string"},"reservedEth":{"type":"string"}},"required":["gasUnits","maxFeePerGasWei","reservedEth"],"additionalProperties":false},{"type":"null"}]},"note":{"type":"string"}},"required":["chain","market","deposit","staked","expectedShares","minimumShares","slippagePercent","valueAtPricePerShare","valueVsDepositPercent","withdrawableNow","roundTripPercent","walletBalance","walletCovers","gasReserve","note"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getWithdrawQuote","description":"Quote a Yield Basis withdrawal without sending: asset received, minimum, fair value and withdrawalDifferencePercent (positive: premium; negative: discount). Warns when the discount exceeds 0.5%.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","const":"ethereum"},"userAddress":{"type":"string"},"market":{"type":"string","enum":["WBTC","cbBTC","tBTC","WETH","WBTC-v2","cbBTC-v2","tBTC-v2","WETH-v2","WBTC-v1","cbBTC-v1","tBTC-v1"]},"amount":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; \"-1\" uses the available wallet balance."},"unit":{"type":"string","enum":["shares","assets"]},"fromStaked":{"type":"boolean"},"slippagePercent":{"description":"Slippage percentage, e.g. \"0.5\". Omit for 0.1%; at most 3%, with up to two decimals.","type":"string"}},"required":["chainName","userAddress","market","amount","unit","fromStaked"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"type":"object","properties":{"chain":{"type":"string"},"market":{"type":"string"},"shares":{"type":"object","properties":{"symbol":{"type":"string"},"amount":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."}},"required":["symbol","amount"],"additionalProperties":false},"fromStaked":{"type":"boolean"},"requested":{"anyOf":[{"type":"object","properties":{"symbol":{"type":"string"},"amount":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."}},"required":["symbol","amount"],"additionalProperties":false},{"type":"null"}]},"expectedReceived":{"type":"object","properties":{"symbol":{"type":"string"},"amount":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."}},"required":["symbol","amount"],"additionalProperties":false},"minimumReceived":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."},"slippagePercent":{"type":"number"},"valueAtPricePerShare":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."},"withdrawalDifferencePercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"walletCovers":{"type":"boolean"},"warning":{"anyOf":[{"type":"string"},{"type":"null"}]},"needsConfirmation":{"type":"boolean"},"otherSide":{"anyOf":[{"type":"object","properties":{"fromStaked":{"type":"boolean"},"shares":{"type":"object","properties":{"symbol":{"type":"string"},"amount":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."}},"required":["symbol","amount"],"additionalProperties":false}},"required":["fromStaked","shares"],"additionalProperties":false},{"type":"null"}]},"note":{"type":"string"}},"required":["chain","market","shares","fromStaked","requested","expectedReceived","minimumReceived","slippagePercent","valueAtPricePerShare","withdrawalDifferencePercent","walletCovers","warning","needsConfirmation","otherSide","note"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getPositions","description":"Get the supplied wallet's unstaked liquidity positions: yb-LP balances, asset values, current withdrawal payouts and USD total, including legacy holdings.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","const":"ethereum"},"userAddress":{"type":"string"}},"required":["chainName","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"type":"object","properties":{"chain":{"type":"string"},"wallet":{"type":"string"},"blockNumber":{"type":"string"},"positions":{"type":"array","items":{"type":"object","properties":{"market":{"type":"string"},"status":{"type":"string"},"asset":{"type":"string"},"assetAddress":{"type":"string"},"ybLpToken":{"type":"object","properties":{"symbol":{"type":"string"},"address":{"type":"string"}},"required":["symbol","address"],"additionalProperties":false},"unstaked":{"type":"object","properties":{"ybLp":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."},"valueAtPricePerShare":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."},"withdrawableNow":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."},"withdrawalDifferencePercent":{"anyOf":[{"type":"number"},{"type":"null"}]},"usd":{"type":"number"},"withdrawableNowUsd":{"type":"number"}},"required":["ybLp","valueAtPricePerShare","withdrawableNow","withdrawalDifferencePercent","usd","withdrawableNowUsd"],"additionalProperties":false},"killed":{"type":"boolean"}},"required":["market","status","asset","assetAddress","ybLpToken","unstaked","killed"],"additionalProperties":false}},"totalUsd":{"type":"number"},"notes":{"type":"array","items":{"type":"string"}}},"required":["chain","wallet","blockNumber","positions","totalUsd","notes"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getStakeRewards","description":"Get the supplied wallet's claimable YB staking rewards per market and total, including rewards left after unstaking.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","const":"ethereum"},"userAddress":{"type":"string"}},"required":["chainName","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"type":"object","properties":{"chain":{"type":"string"},"wallet":{"type":"string"},"ybRewards":{"type":"array","items":{"type":"object","properties":{"market":{"type":"string"},"claimableYb":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."}},"required":["market","claimableYb"],"additionalProperties":false}},"totalClaimableYb":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."},"notes":{"type":"array","items":{"type":"string"}}},"required":["chain","wallet","ybRewards","totalClaimableYb","notes"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getLockInfo","description":"Get the supplied wallet's veYB lock (amount, unlock date in UTC or permanent), voting power, YB balance, gauge votes and claimable yb-LP lock rewards. Includes claim availability and pending weekly processing; rewards cover the next claim only. Show dates with their timezone.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","const":"ethereum"},"userAddress":{"type":"string"}},"required":["chainName","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"type":"object","properties":{"chain":{"type":"string"},"wallet":{"type":"string"},"blockNumber":{"type":"string"},"distributorActive":{"type":"boolean"},"previewAvailable":{"type":"boolean"},"rewards":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"token":{"type":"string"},"symbol":{"anyOf":[{"type":"string"},{"type":"null"}]},"market":{"anyOf":[{"type":"string"},{"type":"null"}]},"amount":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."}},"required":["token","symbol","market","amount"],"additionalProperties":false}},{"type":"null"}]},"hasClaimableRewards":{"anyOf":[{"type":"boolean"},{"type":"null"}]},"canClaim":{"type":"boolean"},"unprocessedWeeks":{"type":"number"},"feeClaimCursor":{"type":"string","description":"Raw last_claimed_for Unix timestamp in seconds, as a decimal integer string. Compare after each confirmed fee claim to detect progress."},"weeksPerClaim":{"type":"number"},"hasVotingPowerBeyondNextClaim":{"type":"boolean"},"ybBalance":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."},"lock":{"anyOf":[{"type":"object","properties":{"lockedYb":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."},"permanent":{"type":"boolean"},"unlockDateUtc":{"anyOf":[{"type":"string"},{"type":"null"}]},"expired":{"type":"boolean"}},"required":["lockedYb","permanent","unlockDateUtc","expired"],"additionalProperties":false},{"type":"null"}]},"votingPower":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."},"votesUsedPercent":{"type":"number"},"gaugeVotes":{"type":"array","items":{"type":"object","properties":{"market":{"type":"string"},"percent":{"type":"number"},"lastVoteUtc":{"anyOf":[{"type":"string"},{"type":"null"}]},"canChangeVote":{"type":"boolean"},"nextVoteUtc":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["market","percent","lastVoteUtc","canChangeVote","nextVoteUtc"],"additionalProperties":false}},"notes":{"type":"array","items":{"type":"string"}}},"required":["chain","wallet","blockNumber","distributorActive","previewAvailable","rewards","hasClaimableRewards","canClaim","unprocessedWeeks","feeClaimCursor","weeksPerClaim","hasVotingPowerBeyondNextClaim","ybBalance","lock","votingPower","votesUsedPercent","gaugeVotes","notes"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"deposit","description":"Prepare ordered unsigned deposit transactions for userAddress. Deposit WBTC, cbBTC, tBTC, WETH or native ETH (WETH market) into a Yield Basis market; by default returns unstaked yb-LP. Set stake true only when the user explicitly requests deposit and stake. The user pays only the asset.  Caller signs, sends and checks receipts.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","const":"ethereum"},"userAddress":{"type":"string"},"market":{"type":"string","enum":["WBTC","cbBTC","tBTC","WETH"]},"amount":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; \"-1\" uses the available wallet balance."},"stake":{"description":"Omit or false for unstaked LP; true for deposit-and-stake.","type":"boolean"},"native":{"description":"True pays ETH on the WETH market; omit or false pays the ERC-20 asset.","type":"boolean"},"slippagePercent":{"description":"Slippage percentage, e.g. \"0.5\". Omit for 0.1%; at most 3%, with up to two decimals.","type":"string"}},"required":["chainName","userAddress","market","amount"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"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"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"withdraw","description":"Prepare ordered unsigned withdraw transactions for userAddress. Withdraw Yield Basis yb-LP to the asset (WBTC, cbBTC, tBTC or WETH); fromStaked true unstakes and withdraws in one transaction. A payout more than 1% below the position value needs the user's confirmation (acceptDiscount).  Caller signs, sends and checks receipts.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","const":"ethereum"},"userAddress":{"type":"string"},"market":{"type":"string","enum":["WBTC","cbBTC","tBTC","WETH","WBTC-v2","cbBTC-v2","tBTC-v2","WETH-v2","WBTC-v1","cbBTC-v1","tBTC-v1"]},"amount":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; \"-1\" uses the available wallet balance."},"unit":{"type":"string","enum":["shares","assets"]},"fromStaked":{"type":"boolean"},"slippagePercent":{"description":"Slippage percentage, e.g. \"0.5\". Omit for 0.1%; at most 3%, with up to two decimals.","type":"string"},"acceptDiscount":{"description":"True only after the caller confirms a quoted withdrawal discount above 1%; omit or false rejects it.","type":"boolean"}},"required":["chainName","userAddress","market","amount","unit","fromStaked"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"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"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"stake","description":"Prepare ordered unsigned stake transactions for userAddress. Stake unstaked yb-LP in its market gauge to earn YB emissions instead of trading fees. No lock. Caller signs, sends and checks receipts.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","const":"ethereum"},"userAddress":{"type":"string"},"market":{"type":"string","enum":["WBTC","cbBTC","tBTC","WETH"]},"amount":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; \"-1\" uses the available wallet balance."}},"required":["chainName","userAddress","market","amount"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"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"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"unstake","description":"Prepare ordered unsigned unstake transactions for userAddress. Unstake gauge shares back to yb-LP (trading fees instead of YB). Unclaimed YB stays claimable. Caller signs, sends and checks receipts.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","const":"ethereum"},"userAddress":{"type":"string"},"market":{"type":"string","enum":["WBTC","cbBTC","tBTC","WETH","WBTC-v2","cbBTC-v2","tBTC-v2","WETH-v2","WBTC-v1","cbBTC-v1","tBTC-v1"]},"amount":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; \"-1\" uses the available wallet balance."}},"required":["chainName","userAddress","market","amount"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"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"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"claimRewards","description":"Prepare ordered unsigned claimRewards transactions for userAddress. Claim YB earned by staked yb-LP, on one market or on every market with claimable YB. veYB fees are claimed with claimLockRewards. Caller signs, sends and checks receipts.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","const":"ethereum"},"userAddress":{"type":"string"},"market":{"anyOf":[{"type":"string","enum":["WBTC","cbBTC","tBTC","WETH","WBTC-v2","cbBTC-v2","tBTC-v2","WETH-v2","WBTC-v1","cbBTC-v1","tBTC-v1"]},{"type":"null"}],"description":"One market, or explicit null for all markets with claimable YB."}},"required":["chainName","userAddress","market"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"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"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"lock","description":"Prepare ordered unsigned lock transactions for userAddress. Create a veYB lock: lock YB for 1 to 208 weeks or permanently to vote on emissions and earn protocol fees. Locked YB cannot be withdrawn early. For an existing lock use updateLock. Caller signs, sends and checks receipts.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","const":"ethereum"},"userAddress":{"type":"string"},"amount":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; \"-1\" uses the available wallet balance."},"permanent":{"type":"boolean"},"lockWeeks":{"description":"Required for fixed-term locks; omit for permanent mode. 208 selects the four-year maximum.","type":"integer","minimum":1,"maximum":208}},"required":["chainName","userAddress","amount","permanent"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"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"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"updateLock","description":"Prepare ordered unsigned updateLock transactions for userAddress. Update an existing, unexpired veYB lock: add YB, extend its expiry, or change permanence. Compatible changes can be combined as ordered transactions, not an atomic operation. Disabling permanence requires no gauge votes and starts a four-year unlock. Show unlockDateUtc to the user. Caller signs, sends and checks receipts.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","const":"ethereum"},"userAddress":{"type":"string"},"amount":{"description":"YB to add, including \"-1\"; omit to leave the amount unchanged.","type":"string"},"lockWeeks":{"description":"Weeks for an extension; omit to leave expiry unchanged.","type":"integer","minimum":1,"maximum":208},"countFrom":{"description":"Required with lockWeeks; now or currentUnlock. Omit when not extending.","type":"string","enum":["now","currentUnlock"]},"permanent":{"description":"Desired permanence; omit to leave it unchanged.","type":"boolean"}},"required":["chainName","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"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"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"unlock","description":"Prepare ordered unsigned unlock transactions for userAddress. Withdraw YB from an expired veYB lock. Caller signs, sends and checks receipts.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","const":"ethereum"},"userAddress":{"type":"string"}},"required":["chainName","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"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"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"vote","description":"Prepare ordered unsigned vote transactions for userAddress. Vote veYB power on Yield Basis market gauges to direct YB emissions. Percents are of the voting power (total at most 100%); \"0\" removes a vote, and \"0\" on a gauge without a vote is skipped. Each gauge vote can change once every 10 days. Caller signs, sends and checks receipts.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","const":"ethereum"},"userAddress":{"type":"string"},"votes":{"minItems":1,"maxItems":11,"type":"array","items":{"type":"object","properties":{"market":{"type":"string","enum":["WBTC","cbBTC","tBTC","WETH","WBTC-v2","cbBTC-v2","tBTC-v2","WETH-v2","WBTC-v1","cbBTC-v1","tBTC-v1"]},"percent":{"type":"string","description":"Percentage from \"0\" to \"100\", at most two decimals; \"0\" removes an existing vote."}},"required":["market","percent"],"additionalProperties":false}}},"required":["chainName","userAddress","votes"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"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"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"claimLockRewards","description":"Prepare a bounded unsigned plan for veYB fee claims, at most 50 weeks per call. Execute sequentially, check receipts and refresh getLockInfo after each; stop on no progress or uncertainty. Count is estimated, rewards and completion are unconfirmed.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","const":"ethereum"},"userAddress":{"type":"string"},"maxTransactions":{"description":"Maximum unsigned fee-claim transactions, at most 10; omit for 6. Execute sequentially and check progress after each.","type":"integer","minimum":1,"maximum":10}},"required":["chainName","userAddress"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"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"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getStakeQuote","description":"Preview gauge shares received when staking yb-LP; checks wallet balance and staking eligibility.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","const":"ethereum"},"userAddress":{"type":"string"},"market":{"type":"string","enum":["WBTC","cbBTC","tBTC","WETH"]},"amount":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; \"-1\" uses the available wallet balance."}},"required":["chainName","userAddress","market","amount"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"type":"object","properties":{"chain":{"type":"string"},"wallet":{"type":"string"},"market":{"type":"string"},"blockNumber":{"type":"string"},"input":{"type":"object","properties":{"symbol":{"type":"string"},"address":{"type":"string"},"amount":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."}},"required":["symbol","address","amount"],"additionalProperties":false},"expectedOutput":{"type":"object","properties":{"symbol":{"type":"string"},"address":{"type":"string"},"amount":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."}},"required":["symbol","address","amount"],"additionalProperties":false},"remainingWalletLp":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."},"notes":{"type":"array","items":{"type":"string"}}},"required":["chain","wallet","market","blockNumber","input","expectedOutput","remainingWalletLp","notes"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}},{"name":"getUnstakeQuote","description":"Preview yb-LP returned when unstaking gauge shares, including legacy markets.","inputSchema":{"type":"object","properties":{"chainName":{"type":"string","const":"ethereum"},"userAddress":{"type":"string"},"market":{"type":"string","enum":["WBTC","cbBTC","tBTC","WETH","WBTC-v2","cbBTC-v2","tBTC-v2","WETH-v2","WBTC-v1","cbBTC-v1","tBTC-v1"]},"amount":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; \"-1\" uses the available wallet balance."}},"required":["chainName","userAddress","market","amount"],"additionalProperties":false},"outputSchema":{"type":"object","anyOf":[{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"note":{"type":"string"},"data":{"type":"object","properties":{"chain":{"type":"string"},"wallet":{"type":"string"},"market":{"type":"string"},"blockNumber":{"type":"string"},"input":{"type":"object","properties":{"symbol":{"type":"string"},"address":{"type":"string"},"amount":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."}},"required":["symbol","address","amount"],"additionalProperties":false},"expectedOutput":{"type":"object","properties":{"symbol":{"type":"string"},"address":{"type":"string"},"amount":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."}},"required":["symbol","address","amount"],"additionalProperties":false},"remainingGaugeShares":{"type":"string","description":"Amount in human-readable decimal format, e.g. \"1.5\"; token and units follow the surrounding field."},"notes":{"type":"array","items":{"type":"string"}}},"required":["chain","wallet","market","blockNumber","input","expectedOutput","remainingGaugeShares","notes"],"additionalProperties":false}},"required":["project","operation","data"],"additionalProperties":false},{"type":"object","properties":{"project":{"type":"string"},"operation":{"type":"string"},"error":{"type":"string"}},"required":["project","operation","error"],"additionalProperties":false}]}}]}