@@ -107,9 +107,7 @@ LENS_MANAGER: public(constant(bytes32)) = keccak256("LENS_MANAGER")
107
107
WEEK: constant (uint256 ) = 86_400 * 7 # 7 days
108
108
MAX_BPS: constant (uint256 ) = 10 ** 4 # 100%
109
109
110
- _SUPPORTED_INTERFACES: constant (bytes4 [3 ]) = [
111
- 0x01FFC9A7 , # The ERC-165 identifier for ERC-165.
112
- 0x7965DB0B , # The ERC-165 identifier for `IAccessControl`.
110
+ _SUPPORTED_INTERFACES: constant (bytes4 [1 ]) = [
113
111
0xA1AAB33F , # The ERC-165 identifier for the dynamic weight interface.
114
112
]
115
113
@@ -121,16 +119,14 @@ _SUPPORTED_INTERFACES: constant(bytes4[3]) = [
121
119
122
120
stablecoin: immutable (IERC20)
123
121
vault: public (immutable (IVault))
122
+ stablecoin_lens: public (IStablecoinLens)
124
123
125
124
# scaling factor for the deposited token / circulating supply ratio.
126
125
scaling_factor: public (uint256 )
127
126
128
127
# the minimum amount of rewards requested to the FeeSplitter.
129
128
minimum_weight: public (uint256 )
130
129
131
- # stablecoin circulating supply contract
132
- stablecoin_lens: public (IStablecoinLens)
133
-
134
130
135
131
################################################################
136
132
# CONSTRUCTOR #
@@ -255,7 +251,10 @@ def supportsInterface(interface_id: bytes4) -> bool:
255
251
@return bool The verification whether the contract implements the interface or
256
252
not.
257
253
"""
258
- return interface_id in _SUPPORTED_INTERFACES
254
+ return (
255
+ interface_id in access_control._SUPPORTED_INTERFACES
256
+ or interface_id in _SUPPORTED_INTERFACES
257
+ )
259
258
260
259
261
260
@external
0 commit comments