Adrena
  • About Adrena
    • ๐Ÿ‘๏ธVision
    • ๐Ÿ’‰What is Adrena?
      • โœจNo Liquidation Fees
      • ๐Ÿซ—Peer-to-Pool Perp Model (and the risks as a Liquidity Provider)
      • ๐Ÿ‹๏ธTrading Competitions
        • 0๏ธโƒฃPre-Season: Awakening
        • 1๏ธโƒฃSeason 1: Expanse
      • ๐Ÿ’ฝRPC and Trade Execution
    • ๐Ÿง€Fees
      • ๐Ÿ’ฐRevenue Sharing
      • ๐ŸฏWays to Earn Overview
      • ๐Ÿ’ฑBuybacks
    • ๐Ÿ‘พTrader Profile
    • ๐Ÿ“–Achievements
    • ๐ŸงชMutagen (Points System)
    • ๐ŸคReferral System
    • Audits
    • Bug Bounty Program
    • ๐Ÿ”—Useful Links
  • Tokenomics
    • ๐ŸซฆTokenomics Overview
    • ๐Ÿช™ADX
      • ๐Ÿค‘Distribution
      • ๐Ÿ’ธEmissions
      • ๐Ÿ‘ฅForms of ADX
      • ๐ŸฆบVesting
      • ๐ŸšฐStaked ADX - Rewards Emissions Schedule
      • ๐Ÿ”Staking and Duration Locked Parameters for ADX
      • ๐Ÿ—ณ๏ธVoting
    • ๐Ÿ’ŽALP
      • ๐ŸŒŠGenesis Liquidity [terminated]
        • ๐Ÿ’ฆGenesis Liquidity Program [Terminated]
      • ๐ŸšฐStaked ALP - Rewards Emissions Schedule [Terminated]
      • ๐Ÿ”Staking and Locked Stake Parameters for ALP
  • Technical Documentation
    • ๐Ÿ‘คGovernance Shadow Token
    • ๐Ÿค–MrSablier & MrSablierStaking (Open Source Keepers)
    • ๐Ÿ”ฎOracles and Price Feeds
    • โ˜ข๏ธ"Toxic Flow" Countermeasures
    • ๐Ÿช–Position Parameters
    • โŒšSablier Automation Threads (deprecated)
    • ๐ŸฆStaking Implementation Details
    • Terms and Conditions
    • Token Terms and Conditions
  • Guides
    • ๐Ÿ’ปHow to Change to Devnet in Phantom Wallet
    • ๐Ÿ’งHow to get Devnet SOL
    • ๐Ÿ’ฐHow to Get Tokens to Trade
    • ๐Ÿ“ˆHow to Open and Close a Trade
  • Reports
    • 21/11/2024 - BE - Increase Position, position.price miscalculations
    • 22/10/2024 - Upgrade staking accounting issue causing extra reward distribution
    • 12/10/2024 - BE - Borrow fees reset on position increase
    • 01/10/2024 - BE - Custody internal state for `Assets` reports too much locked collateral
    • 27/09/2024 - BE - Missing accounts reload during fee distribution
Powered by GitBook
On this page
  1. Technical Documentation

Position Parameters

Several limitation are in place for the safe and orderly functioning of the platform.

Max Payoff on Short position (temporary)

One of the specificities (currently) of the short positions are the max payoff set at 100% PnL.

The platform, as a fully asset-baked perp, require the user to lock his max profits (in collateral denomination) upfront, and so pay borrow fee on that amount USD value.

For Longs no problem here, but for Shorts... it's trickier.

Do you want a higher (x5?) max payoff, but paying 5x borrow fees the whole time? Probably not. In order to prevent surprises, we currently kept a 100% max payoff, but we are working on a novel feature that will readjust the borrow amount (and so cost) as the position PnL grows, that way no wasted fees from the trader PoV. This will involve a clockwork thread setup at short position open that will track the PnL and re borrow more asset as it grows dynamically (in the limit of available liquidities).

Custody level

// custody.rs in CustodyParams
max_position_locked_usd: u64

Limits the max USD size of a position. This is mainly used for progressive rollout and somehow ensuring that more user can partake while the platform liquidity aren't enough. This is just a fence, as a user with multiple accounts could bypass that easily. Launch value is planned to be 100_000

// custody.rs in CustodyParams
max_cumulative_short_position_size_usd: u64

Limits the maximum cumulative amount of short that can be opened on a given custody. 0 value means no specific limit, translating into being able to use the whole stable supply to short the asset of that Custody.

This is helpful to limit downside for LP on riskier asset, when there can possibly be price manipulation/insider information, in the case of some governance token or ecosystem meme coins.

Previous"Toxic Flow" CountermeasuresNextSablier Automation Threads (deprecated)

Last updated 1 year ago

๐Ÿช–