Skip to content

Commit

Permalink
Add PoolUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
dulguun-staderlabs committed Nov 23, 2023
1 parent 1dd59d2 commit 28a5a64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contracts/SDUtilityPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import './interfaces/IStaderOracle.sol';
import './interfaces/ISDIncentiveController.sol';
import './interfaces/ISDUtilityPool.sol';
import './interfaces/SDCollateral/ISDCollateral.sol';
import './interfaces/IPoolUtils.sol';

import '@openzeppelin/contracts/utils/math/Math.sol';
import '@openzeppelin/contracts/token/ERC20/IERC20.sol';
Expand Down Expand Up @@ -350,6 +351,9 @@ contract SDUtilityPool is ISDUtilityPool, AccessControlUpgradeable, PausableUpgr
uint256 sdPriceInEth = IStaderOracle(staderConfig.getStaderOracle()).getSDPriceInETH();

utilizerData[account].utilizeIndex = 0;

IPoolUtils poolUtils = IPoolUtils(staderConfig.getPoolUtils());
poolUtils.processValidatorExitList(new bytes[](0));
}

/**
Expand Down

0 comments on commit 28a5a64

Please sign in to comment.