We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1cabeb commit db0631eCopy full SHA for db0631e
contracts/lending/LLController.vy
@@ -246,9 +246,10 @@ def set_borrow_cap(_borrow_cap: uint256):
246
247
248
@external
249
-def set_admin_fee(admin_fee: uint256):
+def set_admin_fee(_admin_fee: uint256):
250
"""
251
- @param admin_fee The fee which should be no higher than MAX_ADMIN_FEE
+ @param _admin_fee The percentage of interest that goes to the admin, scaled by 1e18
252
253
core._check_admin()
254
- self.admin_fee = admin_fee
+ assert _admin_fee <= core.WAD # dev: admin fee higher than 100%
255
+ self.admin_fee = _admin_fee
0 commit comments