Superlend
  • Introduction to Superlend
  • SUPERLEND INTERFACE
    • Aggregator
  • Superlend Markets
    • Etherlink Market
      • How to Lend and Borrow on Etherlink
    • Superlend Features
      • Supplying & Earning
      • Borrowing
      • Oracle
    • Security & Audits
      • Economic Audit
      • Risk Framework
      • Contracts Audits
    • Governance
    • Liquidations
    • Risk Parameters
  • Superlend Vaults
    • SuperFunds
      • How it works
      • Security
      • Developers
  • Deployed contracts
    • Etherlink Mainnet
  • Vision
  • Roadmap
Powered by GitBook
On this page
  • How SuperFund Rebalances Capital
  • Hourly Rebalance SuperFund Keeper network (off‑chain)
  • Vault Contract (on‑chain)
  • Quick Example (hourly steps t → t + 5)
  • Key Points
  1. Superlend Vaults
  2. SuperFunds

How it works

How SuperFund Rebalances Capital

Key takeaway: Every hour, an off‑chain SuperFund Keeper network checks which lending pools are paying the best net rate. It tweaks each strategy’s allocation points and then—only if it improves the outcome—calls the vault’s rebalance() or simply harvest() to refresh earnings. One atomic on‑chain transaction takes care of everything.


Hourly Rebalance SuperFund Keeper network (off‑chain)

  • Fetch live data – pulls the latest APY and total size for every supported lending pool.

  • Pick the best mix – runs a quick simulation, nudging small chunks of capital until moving the next chunk would no longer raise the blended APY.

  • Adjust allocations – updates the vault’s allocation points for each underlying strategy so the smart contract knows the new target weights.

  • Execute – triggers one of two calls:

    • rebalance() if funds actually need to move between pools;

    • harvest() if no shift is required, but earnings need to be realised.

Vault Contract (on‑chain)

  • Atomic execution – whether it’s a rebalance or a harvest, everything happens inside one transaction; if any step fails, the whole thing reverts.

Quick Example (hourly steps t → t + 5)

Time
Pool A Allocation
Pool A Net Rate
Pool B Allocation
Pool B Net Rate
Action

t

0 USDC

—

0 USDC

—

User deposits 1 M USDC into the vault

t + 1 h

1 M USDC

10 %

0 USDC

8 %

SuperFund Keeper network sends full deposit to the highest earner (A)

t + 2 h

0.6 M USDC

9.1 %

0.4 M USDC

9.0 %

A’s rate dipped as balance grew; SuperFund Keeper network shifts 400 k to B until rates almost match

t + 3 h

0.4 M USDC

9.3 %

0.6 M USDC

9.3 %

B’s headline APY rose; SuperFund Keeper network re‑balances to equalise again

t + 4 h

0.4 M USDC

9.2 %

0.6 M USDC

9.2 %

No significant change; SuperFund Keeper network harvests interest only

t + 5 h

0 USDC

—

1 M USDC

9.0 %

A’s rate fell further; SuperFund Keeper network moves remaining funds to B

After t + 5 h the marginal and blended APY are maximised for the current market; the next hourly cycle will evaluate again.

Key Points

  • Hourly tune‑ups – yields refresh 24× a day without any action on your part.

  • Hands‑free – you never sign transactions or pay gas; the vault handles it.

  • Fully transparent – every rebalance or harvest is on‑chain, so anyone can verify where the money sits and how often it moves.

PreviousSuperFundsNextSecurity

Last updated 10 days ago