Skip to content

feat: monitor 3Jane USD3 withdraw liquidity#288

Merged
spalen0 merged 1 commit into
mainfrom
feat/3jane-withdraw-limit
Jun 23, 2026
Merged

feat: monitor 3Jane USD3 withdraw liquidity#288
spalen0 merged 1 commit into
mainfrom
feat/3jane-withdraw-limit

Conversation

@spalen0

@spalen0 spalen0 commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add a withdraw-liquidity monitor for the 3Jane USD3 senior tranche.
  • Reads availableWithdrawLimit(address) on the USD3 vault (0x056B269Eb1f75477a8666ae8C7fE01b64dD55eCc) and alerts MEDIUM when it falls below $4M.
  • Low withdraw liquidity means senior-tranche withdrawals may queue or stall.

Details

  • availableWithdrawLimit(address owner) returns the global limit regardless of owner, so it is queried with the zero address.
  • The vault is 6-decimal (USDC), so the raw value is converted via ONE_SHARE.
  • Folded into the existing core batch (now 12 responses) — no extra RPC round-trip.
  • Added the function to ERC4626Vault.json, a check_withdraw_limit() function, README monitor + threshold-table entries, and two regression tests.

Validation

  • uv run ruff format + uv run ruff check clean
  • uv run pytest -q tests/test_3jane.py (7 passed)
  • Live mainnet read: availableWithdrawLimit = $4,548,325.53, above the $4M threshold (no alert currently), confirming correct ABI decoding.

🤖 Generated with Claude Code

Alert (MEDIUM) when the USD3 vault's availableWithdrawLimit falls below
$4M. Low withdraw liquidity means senior-tranche withdrawals may queue
or stall.

- add availableWithdrawLimit(address) to the vault ABI
- read it in the main batch (zero address returns the global limit)
- add check_withdraw_limit() and wire it into the checks
- document the monitor and threshold in the README
- add regression tests

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@spalen0 spalen0 requested a review from tapired June 23, 2026 10:54
@spalen0 spalen0 merged commit 8c54f00 into main Jun 23, 2026
3 checks passed
@spalen0 spalen0 deleted the feat/3jane-withdraw-limit branch June 23, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants