Skip to content

Commit

Permalink
fix: Fix differences between IPool and Pool
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmtzinf committed Dec 21, 2021
1 parent 932c5a0 commit 8beefda
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions contracts/interfaces/IPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ interface IPool {
address user,
address indexed onBehalfOf,
uint256 amount,
uint256 interestRateMode,
DataTypes.InterestRateMode interestRateMode,
uint256 borrowRate,
uint16 indexed referral
);
Expand All @@ -102,7 +102,11 @@ interface IPool {
* @param user The address of the user swapping his rate mode
* @param interestRateMode The current interest rate mode of the position being swapped: 1 for Stable, 2 for Variable
**/
event Swap(address indexed reserve, address indexed user, uint256 interestRateMode);
event SwapBorrowRateMode(
address indexed reserve,
address indexed user,
DataTypes.InterestRateMode interestRateMode
);

/**
* @notice Emitted on setUserUseReserveAsCollateral()
Expand Down
4 changes: 2 additions & 2 deletions contracts/protocol/libraries/logic/BorrowLogic.sol
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ library BorrowLogic {
);

event RebalanceStableBorrowRate(address indexed reserve, address indexed user);
event Swap(
event SwapBorrowRateMode(
address indexed reserve,
address indexed user,
DataTypes.InterestRateMode interestRateMode
Expand Down Expand Up @@ -338,6 +338,6 @@ library BorrowLogic {

reserve.updateInterestRates(reserveCache, asset, 0, 0);

emit Swap(asset, msg.sender, interestRateMode);
emit SwapBorrowRateMode(asset, msg.sender, interestRateMode);
}
}

0 comments on commit 8beefda

Please sign in to comment.