Skip to content

Commit bb4b9a5

Browse files
committed
add depositFor to IVaultManager
1 parent e56965f commit bb4b9a5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

contracts/interfaces/IVaultManager.sol

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,17 @@ interface IVaultManager {
8080
*/
8181
function deposit(IERC20 token, IVault vault, uint256 amount, bool isYield) external returns (uint256);
8282

83+
/**
84+
* @notice Deposit the specified amount of tokens into the Vault for the specified account.
85+
* @param account The account to deposit for.
86+
* @param token The token to deposit.
87+
* @param vault The Vault to deposit into.
88+
* @param amount The amount of tokens to deposit.
89+
* @param isYield A flag to indicate if the deposit is in yield mode.
90+
* @return shares The amount of shares issued at the current exchange rate.
91+
*/
92+
function depositFor(address account, IERC20 token, IVault vault, uint256 amount, bool isYield) external returns (uint256);
93+
8394
/**
8495
* @notice Withdraw the specified amount of tokens from the Vault.
8596
* @param vaults The Vaults to withdraw from.

0 commit comments

Comments
 (0)