Ghost testnet

The LTV Vault is an implementation of an EIP-4626 vault designed for leveraging WETH (Wrapped ETH) deposits to generate yield over time. Users can deposit WETH, hold for a few months, and earn more WETH through a leveraged strategy utilizing the Magic ETH (MAE) token.

The vault borrows WETH and use MagicETH as collateral in the HodlMyBeer Lending protocol and follows the design principles outlined in the research paper: LTV: Curatorless Leveraged Tokenized Vault with a Constant Target Loan-To-Value Ratio

Components

LTV Vault

The LTV Vault is a smart contract that accepts WETH and MagicETH deposits. The vault borrows WETH and keeps MagicETH tokens as collateral in target LTV ratio in HodlMyBeer Lending Protocol. Users can deposit WETH and MagicETH into the vault and receive more WETH and MagicETH after a certain period.

Source code: LTV Vault

Ghost Testnet branch: ghost-testnet

Actual (v0.1.1) tag: ghost_v0.1.1

WETH (Wrapped Testnet ETH)

WETH is the wrapped version of ETH available on the Sepolia Testnet. Users can obtain testnet ETH from various faucets, such as:

User can tranform Sepolia ETH to WETH using the WETH contract

Magic ETH (MAE)

Magic ETH (MAE) is a testnet asset that mimics real-world Liquid Staking Tokens (LSTs) such as Rocket Pool ETH (rETH) or Lido Staked ETH (stETH). MAE accrues value over time, making it an effective asset for yield strategies.

Source code: Magic ETH

Spooky Oracle

The Spooky Oracle provides the real-time redemption price of Magic ETH (MAE) and feeds this data into the LTV Vault. It is maintained by the LTV Protocol Team to ensure accurate pricing for yield calculations and leverage adjustments.

Source code: Spooky Oracle

HodlMyBeer Lending Protocol

The HodlMyBeer Lending Protocol is a dummy lending system that supports an isolated WETH-to-MAE pool. The LTV Vault interacts with this protocol to borrow WETH and provide MagicETH as collateral and execute leveraged yield strategies.

Source code: HodlMyBeer Lending Protocol

How to Use

  1. Obtain ETH from the Sepolia Testnet faucets.
  2. Transform ETH to WETH using the WETH contract.
  3. Deposit WETH into the LTV Vault.
  4. Wait for the yield generation period to end.
  5. Withdraw your WETH or MagicETH from the LTV Vault.

Pico UI

A minimal and lightweight frontend for interacting with the ghost testnet vaults.

Source code: https://github.com/ltvprotocol/pico_ui Detailed documentation: Pico UI Docs

Contract Addresses

Versions

v0.1.10

Actual (v0.1.10) tag: testnet_v0.1.10

Core Contracts

NameAddress
Implementation0x480d554d8bbf66d301063cccba7847f26bd0293f

Modules

NameAddress
ERC20 Module0x9fb3133ebb390bc1d46d555b06f2e115ee919f17
Borrow Vault Module0x1ece1d0c024526995696f9fd321225130700e8d6
Collateral Vault Module0x1ed1573f1c756ad9b915f5b804a306b62a140c1d
Low-Level Rebalance Module0xf8cbf81bbb5efc1fac45f8d2f1e99c06c7b69d86
Auction Module0xec7d68652654c297c5fce832e7445b9158cdb3aa
Administration Module0x6dc2cb8fdc1e8d8c8dd6e4244882f3ada2b7c33e
Initialize Module0x29cefdfefd5b24c14bf2a4c7e464d1dcc4fce206
Modules Provider0xc7349994eb73ba9090980dfc8628849fda4d5a29

Connectors

NameAddress
Whitelist Registry0x69dafafca68306c5b664a8bf23196da9350edc59
Vault Balance Connector0xf3aaab0591e74f9d509296906366704e9c3f6c2a
Slippage Connector0xd64de8418ee7ef911175a8bd8b4bf4facd72796f
Oracle Connector0xa19d6038a1d3b2c86b2ba98bf98cc39273644ec1
Lending Connector0x433d9aa49dd184863ac818ff8aa359047510dc30

Libraries

NameAddress
DepositWithdraw0xA3FbBdA4dbAe3e5d9138dBF0055d1eA5327624Ad
MintRedeem0x676384D764e33032E228823DFAE10dEce86c24E1
NextStep0x2b90Ed4B9b8B91D57612ef6F8121368fa8d862bA
DeltaSharesAndDeltaRealBorrow0x8f806DE6E7859164660AB64d84d50449c3Aa4d51
DeltaRealBorrowAndDeltaRealCollateral0xF1A532acb2e9cc03c3911bEc718fca71c257EB83
DeltaSharesAndDeltaRealCollateral0x7A6A06bfeddA3c38536Cef100091209BD9F2417E
LowLevelRebalanceMath0xAdEaD04C1595BF3b091e2796299beD8F59Ad15BC

v0.1.5

Actual (v0.1.5) tag: ghost_v0.1.5

Core Contracts

NameAddress
Implementation0x850381Ee6363e05630692cEF49e815B320F72B8c

Modules

NameAddress
ERC20 Module0x93889Ffe70ec6F772458b8D2e40C0377266F6Bef
Borrow Vault Module0x64d5acf4db65ae30723b96e5fb455bc2c66f9798
Collateral Vault Module0xe1F7EC39C820f10B9C114202FACA82c63fC131eB
Low-Level Rebalance Module0x6cb72186a8F7a305F4262af19BD0a2b6b80594DF
Auction Module0x9bDF7EBf76741D3948116e39a883693D64Dc9fd5
Administration Module0xcE5BCE6d3C3f983F4ca61b5e4efeE8e225a7D9c2
Initialize Module0x599484fda8E1e3d69ca480AcFc77C2Ea36D0f0Bb
Modules Provider0xd843c8d41a2c78B24af7155Ea407940a002604d9

Connectors

NameAddress
Whitelist Registry0x0000000000000000000000000000000000000000
Vault Balance Connector0xA9D5d9b37278E5440bFbC31c0841ae77143aE943
Slippage Connector0x96e905b396546b01C7C8c6DaFaD08e694C3d963C
Oracle Connector0x79928E57C139BbDa14AEbcBe568d9a4B17bBcA00
Lending Connector0x899645f1AF07511e112f737027BCF13F122aa5A6

v0.1.1

Previous (v0.1.1) tag: ghost_v0.1.1

Deployed contract implementation: 0x95fe6151ad668984b1c7b193866302b41b90887a

v0.1.0

Previous (v0.1.0) tag: ghost_v0.1.0

Deployed contract implementation: 0xeb81c4fe3d8e3c146a25bf9ea2309977071b6490