Skip to content

Latest commit

 

History

History
245 lines (228 loc) · 8.92 KB

IApproveAndCall.md

File metadata and controls

245 lines (228 loc) · 8.92 KB

Interface for contract governance/ApprovalReceiver.sol (IApproveAndCall.sol)

View Source: contracts/token/IApproveAndCall.sol

↘ Derived Contracts: ApprovalReceiver

IApproveAndCall contract

Interfaces are used to cast a contract address into a callable instance.

Functions


receiveApproval

⤿ Overridden Implementation(s): ApprovalReceiver.receiveApproval

Receives approval from SOV token.

function receiveApproval(address _sender, uint256 _amount, address _token, bytes _data) external nonpayable

Arguments

Name Type Description
_sender address The sender of SOV.approveAndCall function.
_amount uint256 The amount was approved.
_token address The address of token.
_data bytes The data will be used for low level call.
Source Code
function receiveApproval(
        address _sender,
        uint256 _amount,
        address _token,
        bytes calldata _data
    ) external;

Contracts