Skip to content

Commit

Permalink
refactor: use cached value
Browse files Browse the repository at this point in the history
  • Loading branch information
fubuloubu authored Apr 19, 2021
1 parent 4165d87 commit c8d1f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/Vault.vy
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ def _calculateLockedProfit() -> uint256:
return lockedProfit - (
precisionFactor
* lockedFundsRatio
* self.lockedProfit
* lockedProfit
/ DEGREDATION_COEFFICIENT
/ precisionFactor
)
Expand Down

0 comments on commit c8d1f36

Please sign in to comment.