Skip to content

Commit

Permalink
perf: delete useless management_fee (yearn#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
zgfzgf authored May 19, 2021
1 parent 69fd1c9 commit a8e4155
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions contracts/Vault.vy
Original file line number Diff line number Diff line change
@@ -1613,8 +1613,6 @@ def _assessFees(strategy: address, gain: uint256) -> uint256:
# ensure total_fee is not more than gain
if total_fee > gain:
total_fee = gain
# if total performance fee is greater than 100% then this will cause an underflow
management_fee = gain - performance_fee - strategist_fee
if total_fee > 0: # NOTE: If mgmt fee is 0% and no gains were realized, skip
reward: uint256 = self._issueSharesForAmount(self, total_fee)

0 comments on commit a8e4155

Please sign in to comment.