get_quote
Calculate collateral, developer fee, yield deposit, and recovery days for zero-net-cost USDC payments on Base. Use it to plan self-repaying payments.
Instructions
Calculate collateral requirements, developer fee, yield deposit, and estimated recovery days for a zero-net-cost USDC payment on Base.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount of USDC to pay to the recipient (e.g. 10 or 25.5). | |
| buffer | No | Safety buffer percentage (default 8 = 8%). | |
| protocol | No | Yield protocol to use. 'auto' (recommended) automatically picks the higher yielding protocol. | |
| collateral | No | Collateral multiplier (default 20 = 20x the payment amount). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rates | No | Live APY comparison across protocols | |
| feeAmount | Yes | 0.5% developer fee in USDC (min 0.1, max 50) | |
| amountToPay | Yes | USDC amount delivered to recipient | |
| estimatedAPY | Yes | Active APY rate for the chosen protocol | |
| collateralTotal | Yes | Base collateral plus safety buffer in USDC | |
| bufferPercentage | No | Safety buffer percentage applied (e.g. 8) | |
| selectedProtocol | Yes | Yield protocol selected for capital recovery | |
| yieldDepositAmount | Yes | USDC deposited into yield protocol to generate returns | |
| totalRequiredAmount | Yes | Total USDC needed upfront (payment + fee + yield deposit) | |
| collateralMultiplier | No | Collateral multiplier used (e.g. 20) | |
| estimatedRecoveryDays | Yes | Estimated days until earned yield equals payment + fee |