Skip to content

Commit

Permalink
Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
dulguun-staderlabs committed Dec 3, 2023
1 parent adae26e commit 2850ec0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/SDUtilityPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ contract SDUtilityPool is ISDUtilityPool, AccessControlUpgradeable, PausableUpgr
uint256 sdPriceInEth = IStaderOracle(staderConfig.getStaderOracle()).getSDPriceInETH();

utilizerData[account].utilizeIndex = 0;
OperatorLiquidation memory liquidation = new OperatorLiquidation(
OperatorLiquidation memory liquidation = OperatorLiquidation(
userData.totalFeeSD * sdPriceInEth,
false,
false,
Expand All @@ -374,7 +374,7 @@ contract SDUtilityPool is ISDUtilityPool, AccessControlUpgradeable, PausableUpgr
}

function claimLiquidation(uint256 index) external override {
OperatorLiquidaton storage liquidation = liquidations[index];
OperatorLiquidation storage liquidation = liquidations[index];

require(liquidation.isRepaid == true, 'Not claimable');
require(liquidation.isClaimed == false, 'Already claimed');
Expand Down

0 comments on commit 2850ec0

Please sign in to comment.