Skip to content

Vault

The Midgard vault is a share-price vault for GARD.

It exists to fund leverage and to capture the lending-side upside of the protocol.

When a user deposits GARD:

  • the vault mints shares
  • those shares represent a proportional claim on vault assets
  • gains accrue into share price automatically

There is no separate “claim yield” button. Yield is reflected in what your shares are worth.

Vault value grows from:

  • leverage loan interest
  • liquidation outcomes

That means the vault is not farming a side reward token. It is participating directly in Midgard’s credit layer.

Each deposit is locked for:

  • 2 days

Locks are tracked per deposit tranche, not with one global timestamp. New deposits do not relock older unlocked shares.

Withdrawals are not instant promises.

The flow is:

  1. Request withdrawal
  2. Shares are removed from active balance
  3. The corresponding asset amount is reserved
  4. The request enters the withdrawal queue
  5. The queue head can be claimed or processed once idle liquidity is available

This prevents the vault from pretending that lent-out assets are instantly withdrawable.

The queue head can be processed permissionlessly.

That means:

  • the owner can claim their own request
  • anyone can advance the queue head
  • funds always go to the recorded owner, not the processor

This avoids queue deadlock if the head user disappears.

The vault tracks:

  • idle assets
  • outstanding principal
  • accrued interest
  • pending withdrawal assets

Total vault assets are computed as:

idle + principal + accrued interest - pending withdrawals

This keeps queued exits reserved out of NAV instead of letting them be double-counted.

Vault deposits are exposed to protocol activity, not passive treasury management.

  • more leverage usage can mean more interest income
  • more unhealthy leverage can mean more liquidation upside
  • idle liquidity matters for exit speed

The vault is simple to use, but it is still taking protocol credit risk.

The current vault model intentionally avoids extra complexity:

  • no manual yield claim
  • no separate reinvest button
  • no fake “available yield” number disconnected from share price

It is meant to feel like a productive capital pool, not like a farm dashboard.