Legacy Vault Logic

Contract Details

Property
Value

Contract Name

LegacyVault (Logic)

Address

0x... (Isi Address Logic)

Language

Rust (Stylus SDK)

Pattern

Logic Implementation (behind Proxy)

Key Features

Dead Man's Switch (Ping)

Tracks the owner's activity to determine liveness.

  • Function: ping()

  • Logic: Updates last_ping timestamp. Only callable by Owner.

Hybrid Claim Protocol

Intelligently routes funds based on where they are stored (Wallet vs Pool).

  • Function: claim_token(address token)

1

Check heartbeat expiry

Verify the owner is considered inactive:

  • Condition: block.timestamp > last_ping + duration

2

Check Vault balance

Determine the amount held directly in the Vault for token.

3

Check Lending Pool balance

Query the Lending Pool for the Vault's principal + accrued interest for token.

4

Transfer to Beneficiary

Aggregate balances (Vault + Pool) and transfer the total to the Beneficiary.

Asset Routing

Moves funds between the holding vault and the yield-generating pool.

  • Function: deposit_to_lending(uint256 amount)

  • Logic: Approves and deposits USDC into the LendingPool contract.

Access Control

Role
Permissions

Owner

Can ping, deposit_to_lending, and withdraw funds.

Beneficiary

Can claim_token ONLY after the heartbeat expires.

Public

Cannot access funds or alter state.