V3 Technical Docs
  • Deployed Contracts
    • Notional V3
      • Ethereum Mainnet
      • Arbitrum
  • Security
    • Audits
    • Bug Bounty
  • Currency Ids & Precision
    • Currency Ids
    • Market Indexes
    • Notional Internal Precision
  • Contract interaction guides
    • Intro
    • Trading guide
      • Deposit (Prime Lend)
      • Trade fCash (Borrow & Lend Fixed)
      • Add liquidity (Mint nTokens)
      • Withdraw liquidity (Redeem nTokens)
      • Withdraw (Prime Cash)
      • Settle Account
      • Enter Leveraged Vaults
      • Exit Leveraged Vaults
    • Accounts
    • Prime Cash Markets
    • fCash Markets
    • nTokens
    • Leveraged Vaults
    • Oracles
    • Governance parameters
  • Subgraph guides
    • Notional V3 Subgraphs
      • Fetch Notional Accounts
      • Fetch Notional's reserves
      • Fetch Notional nToken accounts
      • Fetch Historical Trades
      • Fetch an Account's P&L
      • Fetch current fCash and Prime Cash Rates
      • Fetch Historical Prime Cash & Prime Debt Exchange Rates
      • Fetch Prime Cash Market Balances
      • Fetch fCash Market Balances
      • Fetch Outstanding Debt
      • Fetch Historical nToken Exchange Rates
      • Fetch ETH Oracle Exchange Rates
      • Fetch Annual Incentive Rates
      • Fetch Interest Rate Models
      • Fetch Governance Parameters
  • Dune Dashboard
  • Notional Risk Docs
  • Notional V3 Docs
  • Notional Blog
Powered by GitBook
On this page
  1. Contract interaction guides
  2. Trading guide

Enter Leveraged Vaults

Enter Leveraged Vault

Notional users can use the enterVault method to initiate or update a vault position:

def get_deposit_params(minPoolClaim=0, trade=bytes()):
    return eth_abi.encode_abi(
        ['(uint256, bytes)'],
        [[minPoolClaim, trade]]
        )

depositParams = get_deposit_params()

# Enter a vault by depositing 10 USDC, borrowing 20 fUSDC from Notional in the December 18, 2023 (1702944000) maturity with a max borrow interest rate limit of 5%.
notional.enterVault(account.address, vaultAddress, 10e6, 1702944000, 25e8, 0.05 * 1e9, depositParams, {'from':account})

A user can enter a vault at a specific leverage ratio by selecting the amount of Prime Cash he borrows and the deposit amount.

PreviousSettle AccountNextExit Leveraged Vaults

Last updated 1 year ago