Dolomite
  • Dolomite
  • DOLO
    • Token Mechanics
    • Airdrop
    • Distribution
  • Roadmap
  • Community XP
  • Minerals
  • Dolomite Balances
  • Guide
    • Depositing to Dolomite
    • Withdrawing from Dolomite
    • Borrow
    • Strategies
    • Zap
    • Trade
    • Pool
    • History
    • Stats
  • Campaign Guides
    • Zap your GLP! Campaign
    • Zap your ETH! Campaign
    • MIM Launch Campaign
    • jUSDC Launch Campaign
    • YT-GLP Launch Campaign
    • GM Launch Campaign
    • USDY Launch Campaign
    • mETH Launch Campaign
    • Guide To Level 4
  • Integrations
    • Berachain - Proof of Liquidity
    • GMX
      • GMX
      • GLP
      • GM
    • Abracadabra - magicGLP
    • Jones DAO - jUSDC
    • PlutusDAO - plvGLP
    • Pendle
      • Pendle - PT
      • Pendle - YT
    • Arbitrum - vARB
  • Markets
  • oARB Incentives Program
  • Risk Management
  • Different Networks
  • Smart Contract Addresses
    • Core - Immutable
    • Core - Proxies
    • Core - Routers
    • Module - dTokens
    • Module - DOLO
    • Module - General
    • Module - oARB Liquidity Mining
  • Admin Privileges
  • Admin Transactions
    • Transactions 38 - 50
    • Transactions 51 - 100
    • Transactions 101 - 150
    • Transactions 151 - 200
  • Audits & Security
    • Chainalysis Crypto Incident Response
  • Bug Bounty
  • FAQ
  • Media Kit
  • Developer Documentation
    • Dolomite Margin - Overview
    • Dolomite Margin - Glossary
    • Dolomite Margin - Getters
    • Dolomite Margin - Events
    • Dolomite Margin - dTokens
    • Depositing or Withdrawing
    • Managing Borrow Positions
    • Zapping Assets
    • Flash Loans
    • E-Mode & Segregated Risk
    • TypeScript Client
    • Subgraph
Powered by GitBook
On this page

Was this helpful?

  1. Developer Documentation

E-Mode & Segregated Risk

Dolomite's risk override system empowers users to borrow against assets with increased LTVs or modified risk parameters to partition risk and maximize underwriting potential.

PreviousFlash LoansNextTypeScript Client

Last updated 1 month ago

Was this helpful?

This feature is not available on Arbitrum

E-Mode & Segregated Risk automatically turns on/off depending on the composition of assets in your position. This makes it easy and fluid for users to borrow with increased efficiency if they opt into maintaining a position that falls within an E-Mode category.

To learn more about E-Mode you can visit the section on .

To get the current risk override setter, you can query the on DolomiteMargin .

You can query current risk settings on the Dolomite Account Risk Override using the following functions:

getAccountRiskOverride

Description:

Gets the risk overrides for a given account owner. In the context of an operation, this function is called within _verifyFinalState, after all of the operation's actions have occurred. Thus, it is safe to read the account's state from Dolomite Margin's storage.

Parameters:

  • account (Account.Info calldata): The account whose risk override should be retrieved, represented by an Account.Info struct.

Returns:

  • Decimal.D256 memory marginRatioOverride: The margin ratio override for this account. When a margin ratio override is specified that is non-zero, all margin premiums are ignored for the position.

  • Decimal.D256 memory liquidationRewardOverride: The liquidation penalty that would be paid by this account if the position is liquidated. When a liquidation reward override is specified that is non-zero, all liquidation reward premiums are ignored for the position.

library Account {
    struct Info {
        address owner;
        uint256 number;
    }
}

library Decimal {
    struct D256 {
        value uint256;
    }
}

function getAccountRiskOverride(
    Account.Info calldata account
)
external
view
returns
(
    Decimal.D256 memory marginRatioOverride,
    Decimal.D256 memory liquidationRewardOverride
);
following function
Risk Management