Skip to content

Commit

Permalink
patch: small for distributeFunds()
Browse files Browse the repository at this point in the history
  • Loading branch information
cosminobol committed Jul 26, 2024
1 parent abf9e3e commit b414abc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/rocket-pool/ObolRocketPoolRecipient.sol
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ contract ObolRocketPoolRecipient is Clone {
/// -----------------------------------------------------------------------

address internal constant ETH_ADDRESS = address(0);
uint256 internal constant MINIPOOL_AMOUNT = 8 ether;

uint256 internal constant PUSH = 0;
uint256 internal constant PULL = 1;
Expand Down Expand Up @@ -261,10 +260,7 @@ contract ObolRocketPoolRecipient is Clone {
if (!IRocketPoolMinipoolManager(miniPoolManager).getMinipoolExists(_miniPool)) revert InvalidMinipool_Address();
}

address _delegate = IRocketMinipoolBase(_miniPool).getEffectiveDelegate();
IRocketMinipoolDelegate pool = IRocketMinipoolDelegate(_delegate);

pool.distributeBalance(_rewards);
IRocketMinipoolDelegate(_miniPool).distributeBalance(_rewards);

uint256 _claimedPrincipalFunds = uint256(claimedPrincipalFunds);
uint256 _memoryFundsPendingWithdrawal = uint256(fundsPendingWithdrawal);
Expand Down

0 comments on commit b414abc

Please sign in to comment.