Skip to content

Commit

Permalink
YieldDirector + YieldSplitter without recipient (OlympusDAO#208)
Browse files Browse the repository at this point in the history
Co-authored-by: indigo <[email protected]>
Co-authored-by: indigo <[email protected]>
Co-authored-by: Paul4912 <[email protected]>
  • Loading branch information
4 people authored Mar 15, 2022
1 parent fe01fb2 commit f92425f
Show file tree
Hide file tree
Showing 7 changed files with 1,209 additions and 755 deletions.
28 changes: 24 additions & 4 deletions contracts/interfaces/IYieldDirector.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,17 @@
pragma solidity >=0.7.5;

interface IYieldDirector {
function deposit(uint256 amount_, address recipient_) external;
function deposit(uint256 amount_, address recipient_) external returns (uint256);

function withdraw(uint256 amount_, address recipient_) external;
function depositSohm(uint256 amount_, address recipient_) external returns (uint256);

function addToDeposit(uint256 depositId_, uint256 amount_) external;

function addToSohmDeposit(uint256 depositId_, uint256 amount_) external;

function withdrawPrincipal(uint256 depositId, uint256 amount_) external;

function withdrawPrincipalAsSohm(uint256 depositId_, uint256 amount_) external;

function withdrawAll() external;

Expand All @@ -18,7 +26,19 @@ interface IYieldDirector {

function totalDonated(address donor_) external view returns (uint256);

function redeem() external;
function getDepositorIds(address donor_) external view returns (uint256[] memory);

function redeemYield(uint256 depositId_) external;

function redeemYieldAsSohm(uint256 depositId_) external;

function redeemAllYield() external;

function redeemAllYieldAsSohm() external;

function redeemableBalance(uint256 depositId_) external view returns (uint256);

function totalRedeemableBalance(address recipient_) external view returns (uint256);

function redeemableBalance(address recipient_) external view returns (uint256);
function getRecipientIds(address recipient_) external view returns (uint256[] memory);
}
Loading

0 comments on commit f92425f

Please sign in to comment.