mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
26 lines
584 B
Solidity
26 lines
584 B
Solidity
// SPDX-License-Identifier: GPL-3.0
|
|
pragma solidity ^0.8.6;
|
|
|
|
interface IProtocolModule {
|
|
function supply(address token_, uint256 amount_)
|
|
external
|
|
returns (uint256 itokenAmount_);
|
|
|
|
function withdraw(address token_, uint256 amount_)
|
|
external
|
|
returns (uint256 itokenAmount_);
|
|
|
|
function withdrawItoken(address token_, uint256 itokenAmount_)
|
|
external
|
|
returns (uint256 amount_);
|
|
|
|
function claim(address user_, address token_)
|
|
external
|
|
returns (uint256[] memory updatedRewards_);
|
|
|
|
function tokenToItoken(address token_)
|
|
external
|
|
view
|
|
returns (address itoken_);
|
|
}
|