all files / contracts/interfaces/ ITransferReceiver.sol

100% Statements 0/0
100% Branches 0/0
100% Functions 0/0
100% Lines 0/0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21                                         
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.6;
 
 
/**
 * @title ITransferReceiver
 * @author solace.fi
 * @notice An interface that receives notice of token transfer events per the [`ERC-677` standard](https://github.com/ethereum/EIPs/issues/677).
 */
interface ITransferReceiver {
 
    /**
     * @notice Called by the token contract after tokens are transferred from another account to this contract.
     * @param from The token sender.
     * @param amount The amount of tokens transferred.
     * @param data Free form calldata.
     * @return success True if the execution was successful.
     */
    function onTokenTransfer(address from, uint256 amount, bytes calldata data) external returns (bool success);
}