Skip to content

Commit b22ac90

Browse files
committed
Events for curator and registry parameter updates
Spearbit #10
1 parent 418e125 commit b22ac90

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/EulerSwapRegistry.sol

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ contract EulerSwapRegistry is IEulerSwapRegistry, EVCUtil {
5757
uint256 bondAmount,
5858
address recipient
5959
);
60+
event CuratorTransferred(address indexed oldCurator, address indexed newCurator);
61+
event MinimumValidityBondUpdated(uint256 oldValue, uint256 newValue);
62+
event ValidVaultPerspectiveUpdated(address indexed oldPerspective, address indexed newPerspective);
6063

6164
error Locked();
6265
error Unauthorized();
@@ -140,16 +143,19 @@ contract EulerSwapRegistry is IEulerSwapRegistry, EVCUtil {
140143

141144
/// @inheritdoc IEulerSwapRegistry
142145
function transferCurator(address newCurator) external onlyCurator nonReentrant {
146+
emit CuratorTransferred(curator, newCurator);
143147
curator = newCurator;
144148
}
145149

146150
/// @inheritdoc IEulerSwapRegistry
147151
function setMinimumValidityBond(uint256 newMinimum) external onlyCurator nonReentrant {
152+
emit MinimumValidityBondUpdated(minimumValidityBond, newMinimum);
148153
minimumValidityBond = newMinimum;
149154
}
150155

151156
/// @inheritdoc IEulerSwapRegistry
152157
function setValidVaultPerspective(address newPerspective) external onlyCurator nonReentrant {
158+
emit ValidVaultPerspectiveUpdated(validVaultPerspective, newPerspective);
153159
validVaultPerspective = newPerspective;
154160
}
155161

0 commit comments

Comments
 (0)