github.com/status-im/status-go@v1.1.0/contracts/uniswapV3/interfaces/callback/IUniswapV3FlashCallback.sol (about) 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 pragma solidity >=0.5.0; 3 4 /// @title Callback for IUniswapV3PoolActions#flash 5 /// @notice Any contract that calls IUniswapV3PoolActions#flash must implement this interface 6 interface IUniswapV3FlashCallback { 7 /// @notice Called to `msg.sender` after transferring to the recipient from IUniswapV3Pool#flash. 8 /// @dev In the implementation you must repay the pool the tokens sent by flash plus the computed fee amounts. 9 /// The caller of this method must be checked to be a UniswapV3Pool deployed by the canonical UniswapV3Factory. 10 /// @param fee0 The fee amount in token0 due to the pool by the end of the flash 11 /// @param fee1 The fee amount in token1 due to the pool by the end of the flash 12 /// @param data Any data passed through by the caller via the IUniswapV3PoolActions#flash call 13 function uniswapV3FlashCallback( 14 uint256 fee0, 15 uint256 fee1, 16 bytes calldata data 17 ) external; 18 }