-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5dbe204
commit 2c22b80
Showing
2 changed files
with
42 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity >=0.7.5; | ||
pragma abicoder v2; | ||
|
||
import "./IERC20Metadata.sol"; | ||
|
||
/** | ||
* @title IPeriphery | ||
* @notice A middle layer between user and Aastra Vault to process transactions | ||
* @dev Provides an interface for Periphery | ||
*/ | ||
interface IPeriphery { | ||
/** | ||
* @notice Calls IVault's deposit method and sends all money back to | ||
* user after transactions | ||
* @param amountIn Value of token0 to be deposited | ||
*/ | ||
function vaultDeposit(uint256 amountIn) external; | ||
|
||
/** | ||
* @notice Calls vault's withdraw function in exchange for shares | ||
* and transfers processed token0 value to msg.sender | ||
* @param shares Value of shares in exhange for which tokens are withdrawn | ||
*/ | ||
function vaultWithdraw(uint256 shares) external; | ||
} |