Skip to content

Commit

Permalink
test: generalize fee_splitter_cap test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertoCentonze committed Oct 14, 2024
1 parent b8fb6d7 commit 3e29809
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/integration/test_dynamic_weight.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ def test_fee_splitter_cap(
# test were we ask for so much that we hit the cap
fee_splitter_cap = fee_splitter.receivers(0)[1]

circulating_supply = rewards_handler.eval("lens._circulating_supply()")

# with the supply at the time of the fork
# if we deposit 10_000_000 crvUSD in the vault
# the weight asked will roughly be 16% (1600 bps)
# which is above than the fee splitter cap of 10%
# so the weight should be clamped to 1000 bps
deposit_amount = 10_000_000 * 10**18
deposit_amount = int(circulating_supply * 0.16)

new_depositor(deposit_amount)

Expand Down

0 comments on commit 3e29809

Please sign in to comment.