From 02a7d808194b830738e2c0553f4dc13b30ff8097 Mon Sep 17 00:00:00 2001 From: Schlagonia Date: Thu, 12 Sep 2024 08:55:24 -0600 Subject: [PATCH] chore: remove event --- contracts/VaultFactory.vy | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/contracts/VaultFactory.vy b/contracts/VaultFactory.vy index 26abfcd2..b7d2955b 100644 --- a/contracts/VaultFactory.vy +++ b/contracts/VaultFactory.vy @@ -181,16 +181,6 @@ def protocol_fee_config(vault: address = msg.sender) -> (uint16, address): # Otherwise return the default config. return self._default_protocol_fee_config(self.default_protocol_fee_data) -@view -@external -def protocol_fee_recipient() -> address: - return self._unpack_fee_recipient(self.default_protocol_fee_data) - -@view -@external -def protocol_fee(vault: address = msg.sender) -> uint16: - return self._unpack_protocol_fee(self.default_protocol_fee_data) - @view @external def use_custom_protocol_fee(vault: address) -> bool: @@ -222,9 +212,6 @@ def _unpack_fee_recipient(config_data: uint256) -> address: def _pack_data(recipient: address, fee: uint16, custom: bool) -> uint256: return shift(convert(recipient, uint256), 24) | shift(convert(fee, uint256), 8) | convert(custom, uint256) -event ConfigData: - data: uint256 - @external def set_protocol_fee_bps(new_protocol_fee_bps: uint16): """ @@ -245,8 +232,6 @@ def set_protocol_fee_bps(new_protocol_fee_bps: uint16): # Set the new fee self.default_protocol_fee_data = self._pack_data(recipient, new_protocol_fee_bps, False) - log ConfigData(self.default_protocol_fee_data) - log UpdateProtocolFeeBps( self._unpack_protocol_fee(default_fee_data), new_protocol_fee_bps @@ -268,8 +253,6 @@ def set_protocol_fee_recipient(new_protocol_fee_recipient: address): self.default_protocol_fee_data = self._pack_data(new_protocol_fee_recipient, self._unpack_protocol_fee(default_fee_data), False) - log ConfigData(self.default_protocol_fee_data) - log UpdateProtocolFeeRecipient( old_recipient, new_protocol_fee_recipient