LogoLogo
Visit WebsiteLaunch App
  • Introduction
    • Overview
    • Getting Setup
      • Creating a Wallet
      • Security Practices
  • Product
    • Strategies
      • Conservative Yield V1
      • Balanced Yield V1
      • Advanced Yield V1
    • Nexus Mutual Cover
    • Technical Architecture
      • Technical Overview
      • Security and Authentication
      • Key Components
        • Action Smart Contracts
        • BravaGuard
        • Fee Take Safe Module
        • Smart Safe Account
        • Sequence Executor
        • Logging
          • Balance Update Log
          • BuyCover Log
          • Curve3PoolSwap Log
          • Send and Pull Token Log
    • Fees
    • Audits
  • Resources
    • Contracts
    • Website
    • Glossary
  • Socials
    • X (Twitter)
    • Discord
    • Telegram
Powered by GitBook
On this page
  • Data Structure
  • Notes
  • Usage
  1. Product
  2. Technical Architecture
  3. Key Components
  4. Logging

Curve3PoolSwap Log

The Curve3PoolSwap log is used to record swap operations performed on the Curve 3Pool.

Data Structure

The Curve3PoolSwap log contains the following data:

  • fromToken (int128): Index of the input token in the Curve 3Pool

  • toToken (int128): Index of the output token in the Curve 3Pool

  • amountIn (uint256): Amount of input tokens swapped

  • minAmountOut (uint256): Minimum amount of output tokens expected

  • actualAmountOut (uint256): Actual amount of output tokens received

Notes

  • The token indices (fromToken and toToken) correspond to the positions in the Curve 3Pool (0 for DAI, 1 for USDC, and 2 for USDT).

  • The actualAmountOut may be greater than minAmountOut due to favorable market conditions or low slippage.

Usage

This log is crucial for tracking swap operations within the Curve 3Pool. It provides detailed information about the input and output tokens, the amounts involved, and the actual outcome of the swap. This data is valuable for monitoring trading activity, calculating slippage, and assessing the efficiency of swap operations.

PreviousBuyCover LogNextSend and Pull Token Log