Skip to content

Commit

Permalink
Merge pull request #171 from daweth/fix-strategy-interface
Browse files Browse the repository at this point in the history
add shares getter in IStrategy.sol
  • Loading branch information
ChaoticWalrus authored Sep 21, 2023
2 parents de09034 + 0385882 commit 328899b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/contracts/interfaces/IStrategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ interface IStrategy {
*/
function userUnderlying(address user) external returns (uint256);

/**
* @notice convenience function for fetching the current total shares of `user` in this strategy, by
* querying the `strategyManager` contract
*/
function shares(address user) external view returns (uint256);

/**
* @notice Used to convert a number of shares to the equivalent amount of underlying tokens for this strategy.
* @notice In contrast to `sharesToUnderlying`, this function guarantees no state modifications
Expand Down

0 comments on commit 328899b

Please sign in to comment.