Skip to content

Commit 865f148

Browse files
test: fix broken test
1 parent c95a645 commit 865f148

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/lending/test_vault.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,23 @@
99
invariant,
1010
)
1111

12+
SECONDS_PER_YEAR = 365 * 86400
1213

1314
# TODO get this from contract directly
1415
DEAD_SHARES = 1000
1516

1617

18+
@pytest.fixture(scope="module")
19+
def min_borrow_rate():
20+
"""Keep borrow APR aligned with stateful invariant (0.5% APR)."""
21+
return (5 * 10**15) // SECONDS_PER_YEAR
22+
23+
24+
@pytest.fixture(scope="module")
25+
def max_borrow_rate():
26+
return (50 * 10**16) // SECONDS_PER_YEAR
27+
28+
1729
@pytest.fixture(scope="module")
1830
def seed_liquidity():
1931
"""Override to 0"""

0 commit comments

Comments
 (0)