LogoLogo
  • Introduction
  • App
    • How to
      • Connect a wallet
      • Swap
      • Approve Spending
      • Open a Long Position
      • Open a Short Position
      • Withdraw Funds
      • Add Funds
      • Close Position
      • Increase Leverage
      • Pay Off Debt
      • Deposit Liquidity
      • Withdraw Liquidity
      • Add Liquidity
    • Smart contract addresses
      • Arbitrum
      • Blast
    • FAQ
  • Protocol mechanics
    • Providing Liquidity
    • Trading
    • Marginly MAX leverage specifics
  • Protocol architecture
    • Overview
    • Pools
      • Pool variables
      • Pool parameters
      • User positions
      • User actions
      • Pool Factory API
      • Pool API
    • TWAP oracle
    • Loan pricing
    • Errors
    • Marginly SDK
  • Router
    • Router architecture
    • Adapters
      • ApeSwapAdapter
      • BalancerAdapter
      • CamelotAdapter
      • KyberSwapClassicAdapter
      • KyberSwapElasticAdapter
      • UniswapV2Adapter
      • UniswapV3Adapter
      • WooFiAdapter
  • Risk Management
    • Risk Management Overview
    • Keeper service and smart contract description
    • Keeper contract architecture
    • Liquidations and Deleveraging
    • Volatility as risk proxy
    • Insurance pool
    • Shutdown mode
  • Economics
    • Marginly economics
  • Future plans
    • Beyond Marginly v1
    • Some ideas for Marginly v2
  • Trading Contest FAQ
  • Github
  • Audit
Powered by GitBook
On this page
  1. Protocol architecture
  2. Pools

Pool parameters

These are parameters that control protocol risk and earnings and may be changed via Marginly governance.

Parameter
Description

max leverage

maximum allowable leverage. by default = 20

interest rate

The proportion of a loan that is charged as interest to the borrower. interest rate = Coef * var(ETH) var(ETH) - historical long-term average ETH volatility, which we initially set to be 6% or 0.06 per day. Subject to periodical reassessment by Marginly governance. Coef - scaling coefficient which governs the steepness of the interest rate curve, the default value is 15

swap fee

0.1% by default. When users take leverage, they pay 0.1% on the notional borrow amount.

fee

2% by default. Extra annual interest rate added to debt with every reinit.

position min amount

Minimum amount (in base token) to open a Short or Long position. By default = 0.001 ETH

price seconds ago

Parameter for Uniswap TWAP Oracle. Number of seconds in the past from which to calculate the time-weighted-average-price. By default = 900 seconds.

position slippage

Maximum allowable slippage when managing a position. By default = 2% of the current (last) AMM price.

margin call slippage

Maximum allowable slippage when liquidating a position. By default = 5% of the current (last) AMM price.

base asset limit

Maximum allowable balance of the base asset in the pool.

quote asset limit

Maximum allowable balance of the quote asset in the pool.

PreviousPool variablesNextUser positions

Last updated 1 year ago