-
Notifications
You must be signed in to change notification settings - Fork 194
[VEN-3321]: Liquidation Threshold and repay Improvements in Core Pool on BNB #604
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
Open
Debugger022
wants to merge
122
commits into
develop
Choose a base branch
from
feat/VEN-3321
base: develop
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
Changes from all commits
Commits
Show all changes
122 commits
Select commit
Hold shift + click to select a range
f608f86
feat: add Liquidation Threshold in Core Pool on BNB
Debugger022 294f79e
fix: minor fix
Debugger022 fae7c2a
fix: fix test
Debugger022 e139b03
fix: fix test for liquidation threshold setter
Debugger022 7ba7bac
fix: spelling correction
Debugger022 624c961
test: add tests for borrow and user liquidation state
Debugger022 10d7785
test: add liquidation functionality test for Liquidator contract
Debugger022 b04a893
test: add test for XVS rewards claiming functionality
Debugger022 cb5a5db
feat: add market liquidation incentive and update liquidity calculations
Debugger022 a6d1926
refactor: add liquidation threshold and incentive params to Market st…
Debugger022 f16a9b5
feat!: migrate markets and Comptroller to Solidity 0.8.25
kkirka caeea51
refactor: update references to Market with new params
Debugger022 cf0354b
feat: add function to calculate health factor of an account
Debugger022 da9ef57
refactor: getter function for account health factors
Debugger022 8a38506
feat: add Toxic liquidation check in liquidate hook
Debugger022 ff22d54
feat: add dynamic liquidation incentive per asset
Debugger022 c4786ce
feat: update Liquidator contract to use dynamic liquidation incentive
Debugger022 1e8f708
refactor: update calculate SeizeTokens params
Debugger022 f7e3f53
fix: minor fix
Debugger022 91316bb
fix: lint
Debugger022 dc16c67
feat: add external Liquidation Manager contract
Debugger022 b526832
feat: setter for Liquidation Manager
Debugger022 348fbb3
feat: using Liquidation Manager functions
Debugger022 7eeeaa2
fix: fix comptroller unit tests
Debugger022 69f820e
refactor: update markets return params
Debugger022 4ea3457
fix: fix VAI tests
Debugger022 626f13a
Merge branch 'feat/solidity-0.8' into feat/VEN-3321
Debugger022 7b4fa89
feat: update solidity version of Liquidation manager
Debugger022 7e5a754
fix: minor fixes
Debugger022 9833f7b
refactor: update setter to include liquidation threshold
Debugger022 a5e7c7c
fix: setCollateralFactor and used constants
Debugger022 66ef1b5
test: fix comptroller tests
Debugger022 be83b61
test: fix tests
Debugger022 c90aa01
test: fix fork tests
Debugger022 1837cc7
feat: added natspec comments
Debugger022 4e8fa35
refactor: rename some functions and remove _setCollateralFactor
Debugger022 6dbb217
test: refactor tests to call updated functions
Debugger022 24aca7f
refactor: update treasury percent calculation
Debugger022 a06802b
refactor: consistent return statements
Debugger022 f65e34d
refactor: refactored struct and other calculations
Debugger022 b0705ce
refactor: remove healthFactorThreshold and liquidationIncentiveAvg
Debugger022 5868274
refactor: update close factor and dynamic incentive calculation
Debugger022 17be54c
feat: move calculation of seize tokens logic to comptrollerLens
Debugger022 c23fe60
refactor: rename averageLT to liquidationThresholdAvg
Debugger022 9955fb2
feat: Introduced weight function to replicate both CF and LT
Debugger022 2cf8104
refactor: fix health factor computation
Debugger022 ab6d0ae
refactor: consistent external function names
Debugger022 57e92f4
fix: remove comment
Debugger022 8b37991
refactor: move functions to FacetBase
Debugger022 6868164
refactor: deprecate old attributes
Debugger022 d653b5f
refactor: using revert
Debugger022 de84582
refactor: remove close factor settter and update liquidation incentiv…
Debugger022 5c84b79
refactor: update dynamic incentive calculation
Debugger022 800f8b6
feat: using reverts with custom errors
Debugger022 fe5c158
feat: optimized account position calculation
Debugger022 022a11d
feat: introduced baseCloseFactor and targetHealthFactor
Debugger022 7860cd6
feat: using baseCloseFactor to avoid zero incentive condition
Debugger022 56c25c2
refactor: update getHypotheticalHealthSnapshot to return shortfall too
Debugger022 0510348
feat: add baseCloseFactor, target HF and toggle mappings for dynamic …
Debugger022 f2f1034
refactor: remove baseCloseFactor and targetHealthFactor from comptroller
Debugger022 f091f37
feat: added events
Debugger022 107ead8
refactor: use generic ActionNotPaused error
Debugger022 3025a69
fix: update vTokenBalance after redeem
Debugger022 50a256f
refactor: remove setLiquidationIncentive and its alias
Debugger022 61ed23f
fix: remove setLiquidationIncentive and closeFactor references
Debugger022 a7b4206
fix: minor fix
Debugger022 e2f29c0
Revert "feat: using reverts with custom errors"
Debugger022 2fc0c2e
fix: stack too deep
Debugger022 13605fd
Merge branch 'feat/solidity-0.8' into feat/VEN-3321
Debugger022 0f6be8f
refactor: adjust baseCloseFactor to be dynamic
Debugger022 02dc4e7
refactor: remove unused constants and events
Debugger022 dfdf581
feat: optimization by reducing getHealthSnapshot calls
Debugger022 a17ef99
refactor: using weight in _calculateAccountPosition internally
Debugger022 3c6248c
refactor: update initialization of access control
Debugger022 b13414e
test: fix tests
Debugger022 768e5d2
feat: add dynamicLiquidationIncentive in AccountSnapshot struct
Debugger022 dd31a2c
refactor: extract non-risk fields from AccountSnapshot into new struct
Debugger022 5f0b4f8
refactor: revert VBNB changes
Debugger022 53b7562
fix: fix liquidator tests
Debugger022 9bc16b4
fix: fix VAI tests
Debugger022 ee861ff
refactor: fork tests
Debugger022 9ed3422
feat: update shares calculation in liquiator
Debugger022 c5aa0db
refactor: add liquidateCalculateSeizeTokens getter function
Debugger022 eb0c632
fix: fix setup and tests
Debugger022 151b14b
fix: fix unit tests
Debugger022 2339b40
Merge branch 'feat/VEN-3343' into feat/VEN-3321
Debugger022 0eee583
refactor: using WeightFunction in account snapshot calculation
Debugger022 26436f4
feat: add pool-level market liquidation incentive setter
Debugger022 13ec325
feat: add getter for VAISeizeTokens
Debugger022 bfac079
test: fix unit and fork tests
Debugger022 c3ce6f4
test: fix emode test
Debugger022 79ead60
Merge branch 'feat/VEN-3343' into feat/VEN-3321
Debugger022 6b30587
fix: minor fix
Debugger022 9d0d46b
refactor: moved getDynamicLiquidationIncentive to Market facet
Debugger022 78d3bf8
feat: reduced VBep20Delegate size
Debugger022 6254eaa
feat: add Liquidation Manager deployment script
Debugger022 fb48338
feat: add deployments for bsctestnet
Debugger022 1bd7262
feat: update repayAmount logic
Debugger022 d8edaa0
Merge branch 'feat/VEN-2985' into feat/VEN-3321
Debugger022 6758363
fix: minor fixes
Debugger022 c21100f
refactor: upgrade comptroller storage to ComptrollerV19Storage
Debugger022 bd5d35f
test: add fork test for dynamic liquidation mechanism
Debugger022 4c541a4
refactor: update liquidation calculations to use 1e18 for precision
Debugger022 4605b3b
Merge branch 'feat/VPD-233' into feat/VEN-3321
Debugger022 0297580
refactor: minor fixes
Debugger022 9ce8a5a
test: update TokenRedeemer test
Debugger022 1560cc2
test: add tests for liquidation scenario
Debugger022 5ad06f6
Merge branch 'develop' into feat/VEN-3321
Debugger022 1659da4
fix: lint
Debugger022 8b972e1
feat: updating deployment files
Debugger022 da82294
fix: minor fixes
Debugger022 f9d6dc0
feat: update bsctestnet deployment files
Debugger022 b29d11a
feat: update liquidationManager deployment
Debugger022 44b4d88
feat: updating deployment files
Debugger022 2361f5e
refactor: rename borrows to totalBorrows and update related logic
Debugger022 fff566c
refactor: update dynamic liquidation mechanism with respect to e-mode
Debugger022 9072738
refactor: remove liquidateVAICalculateSeizeTokens unused variant
Debugger022 545cd00
Merge branch 'develop' into feat/VEN-3321
Debugger022 b008927
fix: lint and prettier
Debugger022 f83afff
feat: updating deployment files
Debugger022 7dd2804
refactor: update tests for new liquidation changes
Debugger022 6fa0386
refactor: update fork tests for dynamic liquidation mechanism
Debugger022 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.