Javsphere Docs
Open AppJoin Trading Competition
  • Open Javsphere App
  • Welcome to Javsphere
  • Javsphere Stats
  • Fundamentals
    • Javsphere Set Up
      • Base Chain
      • Connect Wallet
      • Add Tokens
      • New to Crypto
    • Buy & add JAV
  • Products
    • LeverageX
      • Assets
        • Cryptocurrencies
        • Stocks
        • Forex
        • Commodities
      • Fees & Spread
      • Trader
        • Open Trade
        • Edit & Close Trade
      • Earn LLP Pool
        • Buy LLP
        • LLP Price & APY
      • xJAV Vault
        • FAQ
      • Limitations
      • Testing
      • Trading Competitions
      • Referral
    • StakeX
    • CryoVault
  • Trading Competitions
    • Current Competition
      • Create Profile
      • Create Community
      • Old competitions
        • Competition Vol. 3
        • Competition Vol. 2
        • Competition Vol. 1
        • Tournament
    • Zealy Campaign
      • Old Airdrops
        • Infinity Pass
        • CFR
        • UPT
        • DTL
        • RNG
        • DPM & Baby Dana
        • GRWV
    • Become a Sponsor
  • JAV Token
    • Utility
    • Whitepaper
      • Javsphere and JAV Token
        • JAV Token
          • Javsphere Fee Structure
          • Tokenomics
        • Added Value for Holders
        • Javsphere Technology
          • StakeX
          • CryoVault
          • LeverageX
      • Disclaimer
    • Governance
      • Onchain Proposals
      • Migration to Base
      • Offchain Proposals
      • Submit a Proposal
    • Base Migration
    • JAV Burn
  • JAVLIS
    • The Ultimate AI Agent
      • Ecosystem
      • USPs
      • Boost for LeverageX
      • Business Model
      • Roadmap
      • Virtuals as Infrastructure
      • More than a hype
      • Hiring
    • Buy JAVLIS
  • Engineering
    • Oracle System
    • Smart Contracts
      • LeverageX
        • JavBorrowingFees
        • JavFeeTiers
        • JavPairsStorage
        • JavPriceAggregator
        • JavPriceImpact
        • JavReferrals
        • JavTradingInteractions
        • JavTradingProcessing
        • JavTradingStorage
        • JavBorrowingProvider
        • LLPToken
        • Feeds
      • JavPriceAggregator
      • JavFreezer
      • JavStakeX
    • Github
    • Bug Bounty Program
  • Community & More
    • Content Library
      • Logos
      • UI Mockups
    • Social Content
    • Socials
      • Telegram Guidelines
  • LEGAL
    • Privacy Policy
    • Terms of Use
      • Excluded Jurisdictions
    • Migration Terms
    • Cookie Policy
    • Trading Competition Terms
    • Bug Bounty Terms
Powered by GitBook
On this page
  • General Description
  • Core Functionalities

Was this helpful?

  1. Engineering
  2. Smart Contracts
  3. LeverageX

JavBorrowingProvider

General Description

The JavBorrowingProvider smart contract that provides a borrowing and lending mechanism based on a collateralized token model. It allows users to buy and sell tokens, manage collateral assets, and interact with leveraged positions, all while ensuring automated price feeds and maintaining the integrity of collateralization ratios. The contract operates with an upgradeable structure, allowing for flexibility and future improvements.

Key Features:

  • Buy and sell liquidity pool (LLP) tokens using various assets as collateral.

  • Maintain a set of active tokens with associated collateral and price feeds.

  • Manage and rebalance token positions based on predefined logic. (tbd)

  • Distribute rewards and handle assets based on changes in the token value and collateral positions.

Core Functionalities

  • Assert Management

    • receiveAssets - Receives assets and updates the token amount for the specific collateral token.

    • sendAssets - Used for sending assets to external addresses, typically related to profit and loss (PnL) management.

    • distributeReward - Distributes rewards to LLP token holders based on the amount of assets they have provided to the system.

  • LLP buying and selling

    • buyLLP - Allows users to buy LLP tokens by providing an input token (e.g., ETH, USDC) and an amount.

    • sellLLP - Allows users to sell LLP tokens in exchange for the underlying collateral token.

  • Tokens Management

    • addToken or updateToken - These functions allow the contract owner (admin) to add or modify tokens in the system.

Last updated 5 months ago

Was this helpful?