Documentation
SocialsStatisticsLaunch App
  • Welcome to Mars Protocol
  • Getting Started
    • How to set up a Wallet
    • Connect your wallet
    • Using a Credit Account
  • Credit Accounts
  • Perpetual Futures (Perps)
    • Perps Vault (Counterparty Vault)
    • Funding Rate Mechanism
    • Price Impact
    • Open Interest Caps
    • Vault Solvency Protection
    • Health Factor
    • Liquidations
  • Spot & Margin Trading
  • Lending & Borrowing
  • Leveraged Yield Farming
  • High Leverage Strategies
  • Managed Vaults
    • Creating a Vault
      • How to Resume Vault Creation After Failed Transaction
    • Managing a Vault
    • Depositing into Vault
  • Risk Methodology
    • Asset Listing
    • Protocol Risk Framework
    • Perps Risk Framework
      • Maximum Leverage & LTVs
      • SkewScale
      • Open Interest Caps
      • Maximum Funding Velocity
      • Mitigating Risks of Static Parameters
    • Deposit Caps Risk Framework
  • Governance
    • MARS Token
  • Smart Contracts
    • Address Provider
    • Account NFT
    • Credit Manager
    • Health
    • Incentives
    • Oracle
    • Params
    • Red Bank
    • Rewards Collector
    • Swapper
    • Zapper
    • Perps
  • Brand kit
    • The Mars Brand
  • Legal
    • Mars FUD Bible
    • Terms of Service
    • Privacy Policy
    • Cookie Policy
Powered by GitBook
On this page
  • 1. Create & Fund an Account
  • 2. Create Additional Accounts
  • 3. Manage Your Credit Accounts
  • 3.1 Fund an Existing Account
  • 3.2 Withdraw from Your Account
  • 3.3 Delete a Credit Account
Edit on GitHub
Export as PDF
  1. Getting Started

Using a Credit Account

A Credit Account on Mars Protocol lets you deposit collateral and borrow or trade on margin with leverage. This tutorial will walk you through creating your first Credit Account.

Last updated 20 days ago

Introduction

In order to interact with Mars Protocol V2 and access all features (see ) you must first create a Credit Account.


1. Create & Fund an Account

If you don’t yet have a Credit Account, you’ll be taken straight to the Create and Fund a Credit Account page:

  • Optionally connect an EVM wallet to deposit USDC from an Ethereum or L2 chain

  • Select your collateral assets

    • Click Select Assets + to open the asset selector.

  • Choose deposit amounts and click Fund Account.

    • After confirming the on-chain transaction, you’ll be redirected back to the app and see your new Credit Account in the navbar:


2. Create Additional Accounts

To open more than one Credit Account:

  1. Click the Credit Account dropdown in the navbar.


3. Manage Your Credit Accounts

Once you have one or more Credit Accounts, you can Fund, Withdraw, or Delete any of them from the same navbar dropdown:

3.1 Fund an Existing Account

  • Open the Credit Account dropdown and click Fund.

  • In the Fund Credit Account modal, select assets and amounts (same flow as initial funding) and click Fund Account.

3.2 Withdraw from Your Account

  • From the Credit Account dropdown, click Withdraw.

3.3 Delete a Credit Account

  • Open the Credit Account dropdown and click Delete.

  • If you have outstanding debt or open Perps positions, you’ll first see a Repay Debts prompt:

  • Once clear, you’ll see your remaining assets summary, click Delete Account to withdraw them back to your wallet and close the account:

Whitelisted collateral appears at the top and non-whitelisted assets appear below (see the page).

Click Create + and you will be forwarded to the page.

In the Withdraw modal, choose asset and amount (use slider or MAX) and then click Withdraw .

Lending & Borrowing
→
Create & Fund
Credit Accounts
Create and Fund a Credit Account
Asset selector modal