Skip to content

Commit

Permalink
correctly wrap leo collect return type with tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-d committed Oct 8, 2024
1 parent f169231 commit 8ef28f6
Show file tree
Hide file tree
Showing 2 changed files with 245 additions and 64 deletions.
8 changes: 6 additions & 2 deletions pkg/sol/ILeo.sol
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,19 @@ interface ILeo is ILeoEvents {
uint256 rewards;
}

struct CollectRewards {
PoolRewards[] poolRewards;
CampaignRewards[] campaignRewards;
}

/// @notice collect rewards for a position vested in a pool with the campaigns given
/// @param positionDetails to check
/// @param campaignIds to check
function collect(
PositionDetails[] memory positionDetails,
bytes8[] memory campaignIds
) external returns (
PoolRewards[] memory poolRewards,
CampaignRewards[] memory campaignRewards
CollectRewards memory collectRewards
);

/// @notice divest a position, returning the position ID to the user
Expand Down
Loading

0 comments on commit 8ef28f6

Please sign in to comment.