Arkis
  • Overview
    • Introduction
    • Arkis Overview
  • Concepts
    • Liquidity Pool
    • Interest Rate Model (IRM)
    • Lender
    • Asset Manager
    • Margin Account
    • Whitelisted Assets
    • Collateral Asset
    • Margin Trading
    • Overcollateralized Loan
    • Undercollateralized Loan
    • Stress-Tested Value
    • Risk Factor
    • Margin Engine
    • Liquidation
    • Margin Call
    • Vault
    • Credit Manager
    • arkisUSD
  • Quickstart
    • Sign Up
  • Arkis Portal
  • Protocol Mechanics
    • Arkis Protocol
      • How it Works
      • Liquidation
    • Arkis Risk Management
      • Introduction
      • Margin Engine v1
      • CEX-DEX Portfolio Margin v2
  • For Lenders
    • Lending
    • Monitoring Lending Position
  • Video Tutorial
  • For Borrowers
    • What can I do with Arkis?
    • Borrowing Overview
    • Working with Margin Account
    • Loan Repayment
    • CEX-DEX Portfolio Margin
    • Examples of Trades [WIP]
      • Pendle Margin Trading
      • CEX-DEX Delta-Neutral Trade [WIP]
      • Overcollateralised Loan [WIP]
      • Non-EVM Asset as Collateral [WIP]
    • Non-EVM Assets as Collateral
    • Whitelisted assets, protocols, and actions
  • Video Tutorials
    • Lending on Arkis
  • Pendle Margin Trading
  • Troubleshooting
    • Margin Account and Wallet Connect
    • Closing Margin Account
  • Prime Brokerage 101
    • Why prime brokerage?
    • What is portfolio margin?
  • FAQs
    • General FAQ
    • Glossary
  • Security
    • December 2023 Audit
    • December 2025 Audit
  • Important Links
    • Use Cases
    • GitHub
  • Brand Assets [WIP]
  • Connect With Us
    • LinkedIn
    • Telegram
    • X
    • Blog
    • Website
Powered by GitBook
On this page
  • 1. Viewing Account Details
  • 2. Interacting With Specific Margin Account
  • 3. What happens when the Margin Account is closed? Is the loan repaid?
  1. For Borrowers

Working with Margin Account

PreviousBorrowing OverviewNextLoan Repayment

Last updated 1 day ago

Arkis Margin Accounts are smart contracts that hold both your collateral and your borrowed assets. Through the Arkis Portal, you can inspect every detail of your account, perform permitted trades via WalletConnect, and — when you’re ready — close the account to settle your loan and reclaim your collateral.

1. Viewing Account Details

Once you’ve opened a loan, navigate to the Borrowed -> Opened in the Arkis Portal to see all your Margin Accounts. For each account, ,you’ll see:

  • Account Address: The onchain Ethereum address of your Margin Account. Click to copy or view on Etherscan.

    • RF >> 1.0 = healthy

    • RF ≈ Margin Call RF = at margin call level

    • RF < 1.0 = subject to liquidation

  • Total Accrued Interest: The sum of interest owed to the Liquidity Pool.

2. Interacting With Specific Margin Account

By clicking on a specific Margin Account, a user is navigated to a dedicated page for interaction with the Margin Account.

Within this section a user can:

  • Trade through Margin Account.

  • Close Margin Account (i.e repay the loan).

2.1 Trading Through Wallet Connect

Your Margin Account functions like a normal wallet—except that all actions are constrained by the Compliance Manager whitelist. To trade:

  1. Go to the protocol page you want to interact with (Pendle, for example) and find Wallet Connect in Connect section.

2.2 Copy QR Code symbols

2.3 Connect Margin Account

Navigate back to the Arkis Portal, click Trade with Wallet Connect, and paste the copied symbols into the window, and click Connect

Once you click Connect, you will see that the Margin Account was successfully connected to the external dApp.

2.4 Navigate back to the Pendle dApp.

Once you navigate back to Pendle, you will see that you have connected a wallet with the address of your Margin Account. You can now interact with the protocol on behalf of Margin Account.

Now you can interact with the dApp as if it were your own wallet. You can view analytics, close positions, enter and exit positions, and swap, unless this action is whitelisted.

2.5 Initiate a Trade

Within the Pendle app, choose a market you want to interact with (make sure PT/LP assets are whitelisted in the Liquidity Pool the Margin Account borrowed from) and click Swap.

2.6 Navigate back to Arkis Platform to initiate a transaction

Navigate back to the Arkis Platform, and you will see a transaction pop-up from our wallet that originated the loan.

You can now sign a transaction from your wallet on behalf of Margin Account.

Once the transaction is signed, you will see that the Swap happened on the Margin Account. You can check the Margin Account state by pasting its address to DeBank or Etherscan.

2.8 Closing Your Margin Account = Repaying the Debt

Below the Trade with Wallet Connect button, you can find "Close Credit Account," which refers to repaying the loan and closing the Margin Account.

To repay the loan (close Margin Account), the Margin Account address must have the borrowed amount of the asset plus accrued interest.

By clicking "Close Credit Account" an Asset Manager is navigated to the page to initiate the process of the Margin Account loan repayment.

However, if the Margin Account does not contain enough borrowed asset tokens and accrued interest (also in borrowed asset tokens), the Proceed button will be disabled.

There are two ways how an Asset Manager can get Debt + Accrued interest to the Margin Account:

  1. Direct deposit to the Margin Account address the necessary amount of tokens (48.81413 USDT in this example). - The Arkis team recommends this option as the fastest and easiest to implement.

  2. Sell, exit from available positions on the Margin Account, and swap them to the necessary amount of Total Debt.

Once the Margin Account has the necessary amount of borrowed tokens, the Proceed button will become active.

3. What happens when the Margin Account is closed? Is the loan repaid?

Once an Asset Manager signs the transaction to close the Margin Account, the protocol does the following:

  1. Analyses the amount of borrowed assets (Total Debt + Accrued Interest) to be sent into the liquidity pool. Please note that the protocol will only take the total debt plus the interest amount. Any surplus will be returned to the wallet of the Asset Manager who originated the loan.

  2. All other whitelisted assets (tokens, PT, LP positions) within the Margin Account will be transferred back to the Asset Manager's wallet.

As you can see, when Margin Account is closed, the protocol takes only what Margin Account owes to the Liquidity Pool, the rest is returned to Asset Manager's wallet.

If an Asset Manager wants to liquidate Margin Account portfolio themselves (using other protocols, or some specific techniques) or don't want to exit positions at all to close the loan - they only need to send borrowed amount + interest to the Margin Account address and they will get everything else back to their own wallet once Close Margin Account procedure is successfull.

: Your current collateral coverage ratio (Stress-Tested Portfolio Value ÷ Borrowed Amount).

: The total value of assets in the Margin Account, adjusted for stress tests, based on the configured stress multipliers for each asset within a specific Liquidity Pool.

Risk Factor
Stress-Tested Value
Margin Accounts Overview page
Click to Margin Account card to start interacting with specific margin account
Margin Account page
Connect Margin Account
Margin Account is connected with dApp
Initiate a trade on Pendle
By navigating back to Arkis Platform you will see window pop up
Proceed is disabled until Margin Account contains enough of Total Debt