Skip to content

Commit

Permalink
Merge pull request #394 from liquity/remove-unused-var
Browse files Browse the repository at this point in the history
chore: remove unused variable
  • Loading branch information
danielattilasimon committed Sep 3, 2024
2 parents b91bc96 + 5ef71ab commit f196f6e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions contracts/src/StabilityPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ contract StabilityPool is LiquityBase, IStabilityPool, IStabilityPoolEvents {
IERC20 public immutable collToken;
ITroveManager public immutable troveManager;
IBoldToken public immutable boldToken;
// Needed to check if there are pending liquidations
ISortedTroves public immutable sortedTroves;

uint256 internal collBalance; // deposited ether tracker

Expand Down Expand Up @@ -205,17 +203,14 @@ contract StabilityPool is LiquityBase, IStabilityPool, IStabilityPoolEvents {

event TroveManagerAddressChanged(address _newTroveManagerAddress);
event BoldTokenAddressChanged(address _newBoldTokenAddress);
event SortedTrovesAddressChanged(address _newSortedTrovesAddress);

constructor(IAddressesRegistry _addressesRegistry) LiquityBase(_addressesRegistry) {
collToken = _addressesRegistry.collToken();
troveManager = _addressesRegistry.troveManager();
boldToken = _addressesRegistry.boldToken();
sortedTroves = _addressesRegistry.sortedTroves();

emit TroveManagerAddressChanged(address(troveManager));
emit BoldTokenAddressChanged(address(boldToken));
emit SortedTrovesAddressChanged(address(sortedTroves));
}

// --- Getters for public variables. Required by IPool interface ---
Expand Down

0 comments on commit f196f6e

Please sign in to comment.