Skip to content

Commit

Permalink
add explicit returns to BalPowerIndexConnector.sol stake and redeem m…
Browse files Browse the repository at this point in the history
…ethods
  • Loading branch information
defi-dev committed May 24, 2022
1 parent 6a216cf commit c1f6b92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/connectors/BalPowerIndexConnector.sol
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ contract BalPowerIndexConnector is AbstractBalancerVaultConnector {
_capitalOut(underlyingStaked, _amount);
_stakeImpl(_amount);
emit Stake(msg.sender, STAKING, address(UNDERLYING), _amount);
(result, claimed) = ("", false);
}

function redeem(uint256 _amount, DistributeData memory)
Expand All @@ -135,6 +136,7 @@ contract BalPowerIndexConnector is AbstractBalancerVaultConnector {
_redeemImpl(_amount);
_capitalIn(underlyingStaked, _amount);
emit Redeem(msg.sender, STAKING, address(UNDERLYING), _amount);
(result, claimed) = ("", false);
}

function initRouter(bytes calldata) external override {
Expand Down

0 comments on commit c1f6b92

Please sign in to comment.