IFM_DepositVault_v1

Git Source

Author: Inverter Network

This contract allows users to deposit tokens to fund the workflow.

Implements {IFundingManager_v1} interface.

Functions

deposit

Deposits a specified amount of tokens into the contract from the sender's account.

When using the {TransactionForwarder_v1}, validate transaction success to prevent nonce exploitation and ensure transaction integrity.

function deposit(uint amount) external;

Parameters

Name
Type
Description

amount

uint256

The number of tokens to deposit.

Events

Deposit

Event emitted when a deposit takes place.

event Deposit(address indexed _from, uint _amount);

Parameters

Name
Type
Description

_from

address

The address depositing tokens.

_amount

uint256

The amount of tokens deposited.

Errors

Module__DepositVault__InvalidRecipient

Receiver address can not be zero address or Deposit Vault Funding Manager itself.

error Module__DepositVault__InvalidRecipient();

Last updated