Skip to content

feat(contracts): TTL management for vault and adapters - #704

Open
ZacLou wants to merge 1 commit into
drydocs:mainfrom
ZacLou:feat/ttl-management-553
Open

feat(contracts): TTL management for vault and adapters#704
ZacLou wants to merge 1 commit into
drydocs:mainfrom
ZacLou:feat/ttl-management-553

Conversation

@ZacLou

@ZacLou ZacLou commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Closes #553

Implements persistent storage TTL bumping for the vault and both adapters so positions and configuration cannot silently expire while the contracts are actively used.

Changes

  • Vault: instance TTL is bumped at the start of deposit, withdraw, set_paused, ransfer_admin, �ccept_admin, set_adapter, �egin_migration, and migrate_adapter.
  • Vault: position (Entry/Principal) TTL is bumped on deposit, withdraw, get_position, and the new permissionless �xtend_position_ttl keeper entry point.
  • Blend adapter: instance TTL is bumped in deposit, withdraw, and �ccrue.
  • DeFindex adapter: instance TTL is bumped in deposit, withdraw, and otal_assets (the read that drives vault pricing, since DeFindex has no separate �ccrue).
  • Added TTL-aware tests for all three crates.

Notes

  • The position TTL constants are intentionally longer-lived than the instance TTL (120 days vs 30 days), matching the issue draft.
  • No enum discriminants or existing runtime behavior are changed; only TTL extension calls are added.

@vercel

vercel Bot commented Sep 2, 2026

Copy link
Copy Markdown

@web-flow is attempting to deploy a commit to the Collins' projects Team on Vercel.

A member of the Team first needs to authorize it.

- Add TTL constants and extend helpers to vault, blend-adapter, defindex-adapter.

- Bump instance TTL on all state-changing vault and adapter entry points.

- Bump position TTL on deposit, withdraw, get_position and permissionless extend_position_ttl.

- Add tests covering TTL extension behavior.
@ZacLou
ZacLou force-pushed the feat/ttl-management-553 branch from ad37d72 to 15eebc3 Compare September 2, 2026 23:11
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.

[Bug] No TTL management anywhere; depositor state and the contracts themselves can be archived

2 participants