Skip to content

Commit

Permalink
feat: add_liquidity fees now used for rebalance
Browse files Browse the repository at this point in the history
This commit makes half of the fees that are taken from a user deposit through `add_liquidity` to be allocated for rebalancing.
  • Loading branch information
AlbertoCentonze committed Jun 21, 2024
1 parent a2d824a commit c9a8404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/main/CurveTwocrypto.vy
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ def add_liquidity(
self.mint(receiver, d_token)
self.admin_lp_virtual_balance += unsafe_div(ADMIN_FEE * d_token_fee, 10**10)

price_scale = self.tweak_price(A_gamma, xp, D)
price_scale = self.tweak_price(A_gamma, xp, D, d_token_fee/2)

else:

Expand Down

0 comments on commit c9a8404

Please sign in to comment.