```\nuint256 currentSharePrice = ethStEthPool.get\_virtual\_price();\nif (currentSharePrice > prevSharePrice) {\n    // claim any gain on lp token yields\n    uint256 contractLpTokenBalance = lpToken.balanceOf(address(this));\n    uint256 totalLpBalance = contractLpTokenBalance +\n        baseRewardPool.balanceOf(address(this));\n    uint256 yieldEarned = (currentSharePrice - prevSharePrice) \*\n        totalLpBalance;\n```\n