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.