-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: pool Steward (#1) #14
Open
sakulstra
wants to merge
3
commits into
main
Choose a base branch
from
pool-steward
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🔮 Coverage report
|
♻️ Forge Gas Snapshots🔕 Unchanged
|
Forge Build Sizes
|
🌈 Test ResultsNo files changed, compilation skipped
Ran 3 tests for tests/finance/PoolExposureSteward.t.sol:Function_approvePool
[PASS] test_revertsIf_invalidZeroAddress() (gas: 11425)
[PASS] test_revertsIf_notOwner() (gas: 14148)
[PASS] test_success() (gas: 62311)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 228.29ms (738.27µs CPU time)
Ran 1 test for tests/finance/PoolExposureSteward.t.sol:Function_maxRescue
[PASS] test_maxRescue() (gas: 191012)
Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 264.14ms (34.60ms CPU time)
Ran 3 tests for tests/finance/PoolExposureSteward.t.sol:Function_revokePool
[PASS] test_revertsIf_invalidZeroAddress() (gas: 13658)
[PASS] test_revertsIf_notOwner() (gas: 14170)
[PASS] test_success() (gas: 18891)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 265.69ms (278.37µs CPU time)
Ran 28 tests for tests/gas/maintenance/ClinicSteward.gas.t.sol:ClinicStewardGasTest
[PASS] test_batchLiquidate_five_users() (gas: 1779526)
[PASS] test_batchLiquidate_four_users() (gas: 1454854)
[PASS] test_batchLiquidate_one_user() (gas: 689224)
[PASS] test_batchLiquidate_six_users() (gas: 1998345)
[PASS] test_batchLiquidate_three_users() (gas: 1236012)
[PASS] test_batchLiquidate_two_users() (gas: 1017108)
[PASS] test_batchLiquidate_zero_users() (gas: 233851)
[PASS] test_batchRepayBadDebt_five_users() (gas: 600812)
[PASS] test_batchRepayBadDebt_four_users() (gas: 537984)
[PASS] test_batchRepayBadDebt_one_user() (gas: 358870)
[PASS] test_batchRepayBadDebt_six_users() (gas: 663574)
[PASS] test_batchRepayBadDebt_three_users() (gas: 475159)
[PASS] test_batchRepayBadDebt_two_users() (gas: 412970)
[PASS] test_batchRepayBadDebt_zero_users() (gas: 213911)
[PASS] test_getBadDebtAmount_five_users() (gas: 108435)
[PASS] test_getBadDebtAmount_four_users() (gas: 94389)
[PASS] test_getBadDebtAmount_one_user() (gas: 52233)
[PASS] test_getBadDebtAmount_six_users() (gas: 122546)
[PASS] test_getBadDebtAmount_three_users() (gas: 80367)
[PASS] test_getBadDebtAmount_two_users() (gas: 66341)
[PASS] test_getBadDebtAmount_zero_users() (gas: 23131)
[PASS] test_getDebtAmount_five_users() (gas: 89824)
[PASS] test_getDebtAmount_four_users() (gas: 79484)
[PASS] test_getDebtAmount_one_user() (gas: 48537)
[PASS] test_getDebtAmount_six_users() (gas: 100095)
[PASS] test_getDebtAmount_three_users() (gas: 69147)
[PASS] test_getDebtAmount_two_users() (gas: 66311)
[PASS] test_getDebtAmount_zero_users() (gas: 23121)
Suite result: ok. 28 passed; 0 failed; 0 skipped; finished in 430.72ms (113.89ms CPU time)
Ran 3 tests for tests/finance/PoolExposureSteward.t.sol:Function_migrateBetweenV3
[PASS] test_revertsIf_notOwnerOrGuardian() (gas: 16612)
[PASS] test_revertsIf_zeroAmount() (gas: 27284)
[PASS] test_success() (gas: 411117)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 230.59ms (5.16ms CPU time)
Ran 3 tests for tests/finance/PoolExposureSteward.t.sol:Function_depositV3
[PASS] test_revertsIf_notOwnerOrGuardian() (gas: 16443)
[PASS] test_revertsIf_zeroAmount() (gas: 16066)
[PASS] test_success() (gas: 201747)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 310.81ms (2.74ms CPU time)
Ran 3 tests for tests/finance/PoolExposureSteward.t.sol:Function_withdrawV2
[PASS] test_revertsIf_notOwnerOrGuardian() (gas: 16421)
[PASS] test_revertsIf_zeroAmount() (gas: 44712)
[PASS] test_success() (gas: 309104)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 276.51ms (5.20ms CPU time)
Ran 5 tests for tests/finance/PoolExposureSteward.t.sol:Function_migrateV2toV3
[PASS] test_revertsIf_invalidV2Pool() (gas: 17384)
[PASS] test_revertsIf_invalidV3Pool() (gas: 19691)
[PASS] test_revertsIf_notOwnerOrGuardian() (gas: 16689)
[PASS] test_revertsIf_zeroAmount() (gas: 47239)
[PASS] test_success() (gas: 468148)
Suite result: ok. 5 passed; 0 failed; 0 skipped; finished in 241.42ms (8.70ms CPU time)
Ran 3 tests for tests/finance/PoolExposureSteward.t.sol:Function_emergencyTokenTransfer
[PASS] test_rescueEth() (gas: 25938)
[PASS] test_successful_governanceCaller() (gas: 209069)
[PASS] test_successful_permissionless() (gas: 208402)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 197.19ms (3.58ms CPU time)
Ran 3 tests for tests/finance/PoolExposureSteward.t.sol:Function_withdrawV3
[PASS] test_revertsIf_notOwnerOrGuardian() (gas: 16465)
[PASS] test_revertsIf_zeroAmount() (gas: 26856)
[PASS] test_success() (gas: 260212)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 195.46ms (7.26ms CPU time)
Ran 12 tests for tests/maintenance/ClinicSteward.t.sol:ClinicStewardTest
[PASS] test_batchLiquidate() (gas: 1954267)
[PASS] test_batchLiquidateUseAToken() (gas: 2132166)
[PASS] test_batchRepayBadDebt() (gas: 679372)
[PASS] test_batchRepayBadDebtUseAToken() (gas: 563953)
[PASS] test_getBadDebtAmount() (gas: 142241)
[PASS] test_getDebtAmount() (gas: 119866)
[PASS] test_maxRescue() (gas: 185467)
[PASS] test_rescueEth() (gas: 28324)
[PASS] test_rescueToken() (gas: 198445)
[PASS] test_reverts_batchLiquidate_caller_not_cleaner(address) (runs: 256, μ: 36653, ~: 36653)
[PASS] test_reverts_batchRepayBadDebt_caller_not_cleaner(address) (runs: 256, μ: 34415, ~: 34415)
[PASS] test_userHasSomeCollateral_returns_zero() (gas: 66409)
Suite result: ok. 12 passed; 0 failed; 0 skipped; finished in 346.42ms (131.57ms CPU time)
Ran 11 test suites in 783.43ms (2.99s CPU time): 67 tests passed, 0 failed, 0 skipped (67 total tests) |
fix: snap
a321f5b
to
0865323
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.