Haiko Docs
  • Introducing Haiko
  • Security & Audits
  • protocol
    • Vaults
      • Solvers (V2)
        • Replicating Solver
        • Reversion Solver
      • Strategies (V1)
        • Replicating Strategy
        • Building A Strategy
    • AMM
      • Execution & Order Matching
      • Position Types
      • Order Types
      • Market Schemas
      • Fees & Rewards
  • info
    • User Guides
      • Introduction to Starknet
      • Connect Starknet Wallet
      • Haiko Interface
      • Depositing to a Vault
    • DeFi Spring
    • Leaderboard
    • Listing on Haiko
    • Links
    • Glossary
  • Developers
    • Deployments
    • Interfaces
    • Events
      • MarketManager (AMM)
      • ReplicatingStrategy
      • SolverComponent
      • ReplicatingSolver
    • Advanced Concepts
      • Liquidity Math
      • Limits
      • Data Encoding
  • Media Kit
  • Contact Us
Powered by GitBook
On this page
  • Deposit
  • Withdraw
  1. Developers
  2. Events

ReplicatingStrategy

Last updated 8 months ago

Deposit

Registers a deposit to the strategy.

  • Caller: depositor

  • Market ID: market id (see )

  • Base Amount: base tokens deposited

  • Quote Amount: quote tokens deposited

  • Shares: number of pool shares minted and received

#[derive(Drop, starknet::Event)]
struct Deposit {
    #[key]
    caller: ContractAddress,
    #[key]
    market_id: felt252,
    base_amount: u256,
    quote_amount: u256,
    shares: u256,
}

Withdraw

  • Caller: depositor

  • Base Amount: base tokens withdrawn

  • Quote Amount: quote tokens withdrawn

  • Shares: number of shares withdrawn and burned

#[derive(Drop, starknet::Event)]
struct Deposit {
    #[key]
    caller: ContractAddress,
    #[key]
    market_id: felt252,
    base_amount: u256,
    quote_amount: u256,
    shares: u256,
}

Market ID: market id (see )

above
above