Skip to content

Commit af2007c

Browse files
test: unify DEAD_SHARES constant
1 parent 865f148 commit af2007c

8 files changed

+10
-10
lines changed

scripts/deploy-lending-fraxtal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def account_load(fname):
135135
vault_impl = boa.load("contracts/lending/Vault.vy")
136136
price_oracle_impl = boa.load_partial(
137137
"contracts/price_oracles/CryptoFromPool.vy"
138-
).deploy_as_blueprint() # XXX
138+
).deploy_as_blueprint()
139139
mpolicy_impl = boa.load_partial(
140140
"contracts/mpolicies/SemilogMonetaryPolicy.vy"
141141
).deploy_as_blueprint()

tests/amm/test_deposit_withdraw.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from ..utils import mint_for_testing
66

77

8-
DEAD_SHARES = 10**3
8+
from tests.utils.constants import DEAD_SHARES
99

1010

1111
@given(

tests/lending/test_fuzz_max_borrowable.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from hypothesis import strategies as st
55

66

7-
DEAD_SHARES = 1000
7+
from tests.utils.constants import DEAD_SHARES
88

99

1010
@given(

tests/lending/test_health_calculator_stateful.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import pytest
1616

1717

18-
DEAD_SHARES = 1000
18+
from tests.utils.constants import DEAD_SHARES
1919

2020

2121
class AllGood(Exception):

tests/lending/test_st_interest_conservation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
)
1010

1111

12-
DEAD_SHARES = 1000
12+
from tests.utils.constants import DEAD_SHARES
13+
1314
MIN_RATE = 10**15 // (365 * 86400) # 0.1%
1415
MAX_RATE = 10**19 // (365 * 86400) # 1000%
1516

tests/lending/test_vault.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
invariant,
1010
)
1111

12-
SECONDS_PER_YEAR = 365 * 86400
12+
from tests.utils.constants import DEAD_SHARES
1313

14-
# TODO get this from contract directly
15-
DEAD_SHARES = 1000
14+
SECONDS_PER_YEAR = 365 * 86400
1615

1716

1817
@pytest.fixture(scope="module")

tests/stableborrow/test_create_repay_stateful.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
)
1414

1515

16-
DEAD_SHARES = 1000
16+
from tests.utils.constants import DEAD_SHARES
1717

1818

1919
class StatefulLendBorrow(RuleBasedStateMachine):

tests/stableborrow/test_st_interest_conservation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
)
1010

1111

12-
DEAD_SHARES = 1000
12+
from tests.utils.constants import DEAD_SHARES
1313

1414

1515
class StatefulLendBorrow(RuleBasedStateMachine):

0 commit comments

Comments
 (0)