Skip to content

Commit

Permalink
chore: Replace WSTETH.getWstETHByStETH with _sharesByEth
Browse files Browse the repository at this point in the history
  • Loading branch information
dgusakov committed Aug 21, 2024
1 parent 982e236 commit aafd998
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CSAccounting.sol
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ contract CSAccounting is
uint256 curveId
) public view returns (uint256) {
return
WSTETH.getWstETHByStETH(
_sharesByEth(
CSBondCurve.getBondAmountByKeysCount(keysCount, curveId)
);
}
Expand All @@ -552,7 +552,7 @@ contract CSAccounting is
BondCurve memory curve
) public view returns (uint256) {
return
WSTETH.getWstETHByStETH(
_sharesByEth(
CSBondCurve.getBondAmountByKeysCount(keysCount, curve)
);
}
Expand All @@ -566,7 +566,7 @@ contract CSAccounting is
uint256 additionalKeys
) public view returns (uint256) {
return
WSTETH.getWstETHByStETH(
_sharesByEth(
getRequiredBondForNextKeys(nodeOperatorId, additionalKeys)
);
}
Expand Down

0 comments on commit aafd998

Please sign in to comment.