Skip to content

Commit

Permalink
fix: Remove not needed ProxyImplementationSet event
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmtzinf committed Jan 5, 2022
1 parent 62a25c8 commit 002ebda
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
9 changes: 1 addition & 8 deletions contracts/interfaces/IPoolAddressesProvider.sol
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,7 @@ interface IPoolAddressesProvider {
* @param hasProxy True if the address is registered behind a proxy, false otherwise
*/
event AddressSet(bytes32 indexed id, address indexed implementationAddress, bool hasProxy);

/**
* @notice Emitted when a new proxy implementation address is registered.
* @param proxyAddress The address of the proxy contract
* @param implementationAddress The address of the implementation contract
*/
event ProxyImplementationSet(address indexed proxyAddress, address indexed implementationAddress);


/**
* @notice Returns the id of the Aave market to which this contract points to.
* @return The market id
Expand Down
3 changes: 0 additions & 3 deletions contracts/protocol/configuration/PoolAddressesProvider.sol
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,8 @@ contract PoolAddressesProvider is Ownable, IPoolAddressesProvider {
proxy.initialize(newAddress, params);

emit ProxyCreated(id, proxyAddress);
emit ProxyImplementationSet(proxyAddress, newAddress);
} else {
proxy.upgradeToAndCall(newAddress, params);

emit ProxyImplementationSet(address(payableProxyAddress), newAddress);
}
}

Expand Down

0 comments on commit 002ebda

Please sign in to comment.