Kodiak Finance
  • OVERVIEW
    • 🐻‍❄️Introducing Kodiak
    • 🐻Kodiak x Berachain
    • ✉️Contact Us
    • 🍯Kodiak Contracts
  • 🅱️Kodiak-Boyco
  • PROTOCOL
    • 🔃DEX
      • Swaps
      • Liquidity Provision
      • Trading Fees
    • 🏝️Islands
      • Island Liquidity Provision
      • Sweetened Islands
      • Island Mechanics
        • Auto-BGT
        • Real-time Security
        • Rebalancing
        • Strategies
    • 🐼Panda Factory
  • 🪙Tokenomics
    • Kodiak Pre-TGE Rewards
  • 🧠User Guide
    • Launch a Token Launch on Panda Factory
    • Trading on Panda Factory
    • Swap
    • Create a V2 Position
    • Create a V3 Position
    • Add/Stake Islands Liquidity
    • Migrating to a Reward Vault
    • Deploying new Permissonless Islands
    • Deploying and Configuring a Kodiak Farm
    • Add your token
  • Add Your Project to the Ecosystem
  • 👨‍💻Developers
    • 🐼Panda
      • Technical Integration Guide
      • Subgraph
        • Entity Reference
        • Query Guide
        • Advanced Usage Guide
      • Smart Contract Reference
        • Panda Factory
        • Panda Pool
        • Panda Token
      • Api
    • Farms
      • Technical Integration Guide
      • Smart Contract Reference
    • 🌴Kodiak Islands
      • Technical Integration Guide
        • Understanding Token Deposit Ratio
      • Subgraph
        • Entity Reference
        • Query Guide
        • Advanced Usage Guide
      • Smart Contract Reference
        • Kodiak Island Factory
        • Kodiak Island
        • Kodiak Island Router
      • Api
    • 💰Pricing with Subgraph
    • 💱Quotes
    • Backend
  • 🛡️SECURITY
    • 🔍Audits
    • Page
  • ℹ️Informational
    • 📜Terms of Use
    • 🔏Privacy Policy
    • TradingView Advanced License
Powered by GitBook
On this page
  1. PROTOCOL
  2. Islands
  3. Island Mechanics

Rebalancing

There are 3 types of rebalance functions, each is described below

PreviousReal-time SecurityNextStrategies

Last updated 19 hours ago

Permissionless Rebalance (cannot change range, cannot do swap): rebalance

The standard permissionless rebalance harvests fees, and re-adds it maximally into the LP without doing any swap. This can be called by anyone. In general, permissionless rebalances are called at least once per day on all Islands by bots.

Basic Rebalance (change range, can only do swap in own pool): executiveRebalance

The basic permissioned rebalance can be used to change the range, but it can only swap within the underlying Kodiak V3 pool. This function is generally only used to change the range when no swap is required (such as setting up a new island). Only the manager role can call this function. This function and underlying mechanism was taken from ArrakisV1 contracts.

Full Rebalance (change range, swap through any whitelisted router): executiveRebalanceWithRouter

The full rebalance function is a Kodiak native feature, that allows rebalance operations to occur while routing liquidity through any whitelisted external router. All rebalance with swaps now use the Full Rebalance feature, using all available liquidity on Berachain.

Routing through external routers:

  • Rebalances can use Ooga Booga, Kodiak, MagPie, OpenOcean, or Enso Routers

  • All liquidity sources are used to provide the best possible quote for the Island (including routing through all non-Kodiak venues)

  • The minimum output / slippage is strictly enforced to have a very very tight slippage, both off-chain and using an on-chain TWAP on the pool itself

  • Each rebalance swap is monitoring for potential MEV impacts

The size and pace of rebalance swaps are limited by:

  • Liquidity (slippage cannot be too high) through Berachain

  • Volumes (Kodiak rebalances cannot be too large a share of the pool volume)

  • Current price relative to recent TWAP ("Opportunistic" rebalancing)

Kodiak Islands cannot arbitrarily change asset ratios, only gradually with rebalances (+ swaps) that are constrained by the parameters listed above.

🏝️
⚠️