mirror of
https://github.com/Instadapp/infinite-proxy.git
synced 2024-07-29 21:47:49 +00:00
added dummy implementation
This commit is contained in:
parent
f3e7749fbe
commit
660ce7e585
26
contracts/example/dummyImplementation.sol
Normal file
26
contracts/example/dummyImplementation.sol
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
pragma solidity ^0.8.0;
|
||||||
|
|
||||||
|
contract UserModule {
|
||||||
|
/**
|
||||||
|
* @dev User function to supply.
|
||||||
|
* @param amount_ amount to supply.
|
||||||
|
*/
|
||||||
|
function supply(uint256 amount_) external {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @dev User function to withdraw.
|
||||||
|
* @param amount_ amount to withdraw.
|
||||||
|
*/
|
||||||
|
function withdraw(uint256 amount_) external {}
|
||||||
|
}
|
||||||
|
|
||||||
|
contract ReadModule {
|
||||||
|
/**
|
||||||
|
* @dev Read function to get user's balance in the contract.
|
||||||
|
* @param user_ address of user.
|
||||||
|
*/
|
||||||
|
function userBalance(address user_) public view returns (uint256) {}
|
||||||
|
}
|
||||||
|
|
||||||
|
contract DummyImplementation is UserModule, ReadModule {}
|
Loading…
Reference in New Issue
Block a user