mercury.sweep
Treasury float yield routing analysis for idle Mercury bank balances. Computes how much can be swept above a reserve threshold, then evaluates whether deploying into sUSDS (Sky Protocol Savings Rate) on Base is viable before a settlement deadline.
THIS TOOL DOES NOT MOVE FUNDS. It returns a structured recommendation with expected net yield, deployment amount, exit timing, and step-by-step execution instructions. All fund movement decisions remain with the client.
Safety rules enforced: • Always keeps thresholdUsd in Mercury — never swept • Maximum 90% of sweepable amount deployed to sUSDS • Minimum 2-hour window required (shorter windows don't cover gas) • Minimum $50,000 sweepable (below this, gas costs exceed yield) • Exit triggered 30 minutes before settlement deadline
Current instrument: sUSDS (Sky Protocol) — instant on-chain entry/exit, ~6.25% APY, Base chain, no US person restrictions, no de-peg events on record.
Workflow:
mercury.accounts → get accountId and available balance
mercury.sweep → get yield recommendation and execution steps
If PROCEED → follow execution.steps to wire funds and deploy
mercury.accounts again at exit time → confirm balance restored
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sandbox | No | If true, marks analysis as sandbox mode — Mercury balance may not reflect live state. | |
| accountId | Yes | Mercury account ID to analyze (from mercury.accounts). | |
| thresholdUsd | No | Minimum USD balance to always keep in Mercury as a reserve. Sweepable = available balance minus this amount. Default: $50,000. | |
| riskTolerance | No | Risk tolerance for yield deployment. Conservative requires APY > 5%. Default: moderate. | |
| settlementDeadlineUtc | No | ISO 8601 UTC timestamp of when funds must be back in Mercury (e.g. "2026-06-28T18:00:00Z"). Defaults to 7 days from now. Drives the yield window calculation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Mercury account summary with available balance, reserve threshold, and sweepable amount. | |
| execution | No | Step-by-step execution instructions (present when recommendation is PROCEED). | |
| yieldAnalysis | No | Yield routing analysis: instrument, APY, expected net yield, window, and recommendation (PROCEED | HOLD). | |
| risk_disclosure | No | Mandatory risk disclosure — client must acknowledge before acting. |