SteakHut Finance
SteakHut
  • Welcome to SteakHut
  • Getting Started
    • 🐮SteakHut Benefits
    • ⚙️Mechanics
      • SteakHut for DEX V2 Pools
      • SteakHut for DEX V1 Pools
      • SteakHut for JOE Zappers
      • SteakHut for STEAK-Holders
    • 🥩STEAKING
      • Rewards
    • 🌊Liquidity
      • Passive Strategies
        • Stable Strategy
        • Dynamic Range Strategy
        • Pegged Pair Strategy
      • Active Strategies
      • Liquidity as a service
      • Structuring Liquidity
      • Concentrated Reward Farms (Boost)
      • Risks
    • 🌱ve JOE Farms
      • 👨‍🌾veJOE Boosted Farms
        • Understanding veJOE
    • ♻️Auto-compounding Vaults
      • 🪣sJOE Compounder
  • ☕Developer Docs
    • LBVault (Incl. Native)
    • LBStrategy
      • Strategist Role
    • Deployed Liquidity Contracts
    • Integrating SteakHut Liquidity
    • Subgraph
    • More Coming Soon
  • Basics
    • Depositing tokens into SteakHut liquidity
    • STEAKING Applications
    • Bridging $STEAK
    • Depositing your JLP Tokens
      • Redeeming Rewards
      • Creating LP Tokens on SteakHut
    • Zapping JOE and Staking hJOE
  • STEAK-O-Nomics
    • Tokens
      • Understanding $STEAK
      • Understanding xSTEAK
      • Understanding hJOE
    • $STEAK
    • Token Distribution
      • Emission Schedule
      • SteakHut Promotions
    • Token launch
  • SteakHut Protocol
    • Fees and Rewards
    • Smart Contracts
    • Security
      • Audits
      • Multi-Sig
  • References
    • Glossary
    • General FAQ
    • Brand Assets
  • Learn & Connect
    • SteakHut
    • Twitter
    • Discord
    • Medium
    • Trader Joe
Powered by GitBook
On this page

Developer Docs

The SteakHut Finance Liquidity Book Developer Docs

PrevioussJOE CompounderNextLBVault (Incl. Native)

Last updated 2 years ago

SteakHut Liquidity is currently undergoing external smart contract auditing by Paladin Blockchain Security, Developer Docs are subject to change

The GitHub repository for the latest version of the contracts can be found at the below links:

The GitHub repo will explain how to get your environment set up. At launch, there are three base contracts. The main contract developers / integrating protocols will be interested in is the LBStrategy.sol contract.

In the Strategy, there is a role called "keeper". The Keeper role allows some privileged functions to be called; mainly setting bin parameters and calling a rebalance.

Exposing this endpoint allows for some complex strategies to be executed on top of SteakHut Liquidity.

Core Contracts:

SteakHut Liquidity has at present three main contracts:

  • Strategies do not need to handle Native AVAX as the Vault handles the conversion of AVAX -> WAVAX and deposits into the strategy.

The is the contract that manages the entry and exit point of funds into the strategy. It mints a receipt token in proportion to the total amount of liquidity already managed by the vault for the given strategy.

The contains wrappers around the deposit and withdrawal of Native AVAX into the system. It is essentially the same as the LBVault contract however with a few modifications.

The contains the logic required to add and remove liquidity from the TraderJoe DexV2 pools. It handles the harvesting of fees and the re-balancing of tokens as required. A "keeper" may be assigned which will allow independent access to some strategy features (mainly the re-balancing).

☕
LBVault
LBVaultNative
LBStrategy
https://github.com/0xSirloin/steakhut-lbgithub.com
SteakHut Liquidity GitHub Repo