-
Notifications
You must be signed in to change notification settings - Fork 5
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
Showing
2 changed files
with
34 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.25; | ||
|
||
import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | ||
import { IERC20 } from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | ||
|
||
interface IYieldDistributionToken is IERC20 { | ||
|
||
function claimYield() external returns (address currency, uint256 amount); | ||
function processYield(address user) external; | ||
function _depositYield(uint256 timestamp, uint256 amount) internal; | ||
function setTokenURI(string memory tokenURI) external; | ||
function getCurrencyToken() external returns (ERC20 currencyToken); | ||
function getTokenURI() external returns (string memory tokenURI); | ||
function claimYield(address user) external returns (ERC20 currencyToken, uint256 currencyTokenAmount); | ||
function accrueYield(address user) external; | ||
|
||
} |
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