From 6bed045021f6445d3bfd2efe28266c830f9874b3 Mon Sep 17 00:00:00 2001 From: onibakuchi Date: Fri, 1 Dec 2023 11:05:29 +0900 Subject: [PATCH] docs: update comments on `_transfer_in` --- contracts/main/CurveTricryptoOptimizedWETH.vy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/main/CurveTricryptoOptimizedWETH.vy b/contracts/main/CurveTricryptoOptimizedWETH.vy index 5515483..82e4809 100644 --- a/contracts/main/CurveTricryptoOptimizedWETH.vy +++ b/contracts/main/CurveTricryptoOptimizedWETH.vy @@ -294,8 +294,8 @@ def _transfer_in( expect_optimistic_transfer: bool, ) -> uint256: """ - @notice Transfers `_coin` from `sender` to `self` and calls `callback_sig` - if it is not empty. + @notice Transfers `_coin` from `sender` to `self` if `expect_optimistic_transfer` is False. + if it is True, then it only checks if `self` holds an amount of `_coin` at least `_dx` greater than the accounting balance. @params _coin_idx uint256 Index of the coin to transfer in. @params dx amount of `_coin` to transfer into the pool. @params sender address to transfer `_coin` from.