-
Notifications
You must be signed in to change notification settings - Fork 22
Feat/hub spoke pools #559
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
30
commits into
develop
Choose a base branch
from
feat/hub-spoke-pools
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
Feat/hub spoke pools #559
Changes from 23 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
de23dbc
feat(spoke): fork Comptroller into SpokeComptroller
Debugger022 3dfa39e
refactor(spoke): remove Prime integration
Debugger022 6f8a7de
feat(spoke): add allowlists and per-market liquidation incentive
Debugger022 4e08dde
refactor(spoke): replace revert strings with custom errors
Debugger022 ffb5ca1
refactor(spoke): move events and errors to interface
Debugger022 a17ff13
feat(spoke): bound collateral pricing on the borrow capacity paths
Debugger022 0cfc21b
chore: ignore the scratch and editor directories
Debugger022 cfe7364
feat(deploy): add spoke pool deployment script
Debugger022 759505a
docs(spoke): correct spoke comptroller doc comments
Debugger022 333a548
fix(spoke): resolve liquidation incentive per market
Debugger022 f45d072
test(spoke): add comptroller unit tests
Debugger022 1d20e88
feat(spoke): expand the comptroller error and getter surface
Debugger022 a5f3fac
test(spoke): add hub funded pool fork suite
Debugger022 fd91634
fix(deploy): update address comparison to use checksummed format
Debugger022 b527b13
fix(spoke): check ACM before validating the pool liquidation incentive
Debugger022 358f34b
fix(spoke): raise the pool-wide liquidation incentive floor
Debugger022 cbf92ac
chore(spoke): relicense adapter files to BSD-3-Clause
Debugger022 03baa75
test(spoke): cover the adapter guards a live market cannot trip
Debugger022 2300cc5
chore(spoke): drop the redundant liquidation allowlist check
Debugger022 ce9aa07
refactor(spoke): clarify names of the comptroller internals
Debugger022 395e6a6
fix(spoke): refresh markets before the liquidateAccount snapshot
Debugger022 89cb3b7
feat(spoke): give the spoke pool its own pool registry
Debugger022 b261a7b
feat(lens): report spoke-only pool and market state
Debugger022 e67dd5c
feat(spoke): let an approved router enter markets for a supplier
Debugger022 3058dbf
feat(lens): add a dedicated lens for spoke pools
Debugger022 6989643
feat(spoke): add a deploy script for the spoke vToken beacon
Debugger022 dd114d2
feat(spoke): add a deploy script for spoke pool markets
Debugger022 82d5cec
fix(spoke): harden the deploy scripts for a live network
Debugger022 cab9306
feat: deploy the spoke pool stack on bsctestnet
Debugger022 7b02a60
feat: updating deployment files
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,3 +64,6 @@ deployments/localhost | |
|
|
||
| # OSX | ||
| .DS_Store | ||
|
|
||
| tmp/* | ||
| .vscode | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,3 +10,4 @@ scenario | |
| typechain | ||
| contracts/oracle | ||
| CHANGELOG.md | ||
| tmp | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this to decide whether its isolated pools or spoke pools ?
i am thinking why dont we just redeploy a new PoolLens with clean implementation, right now we already have new poolRegistry, its natural to think we should have a poolLens as well.
So basically 2 sets of contracts in parallel so they dont confuse ppl
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also for VTokenBeacon lets deploy a new one, so that in the future if ever we do the change its not gonna impact existing isolated pools
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The lens isn't bound to a registry, it takes
poolRegistryAddressas a call argument, and it's a plain non-proxy contract we version by redeploying (R1/R2 archived, this PR archives R3), so the separation already exists at the address level. But fair point on the confusion, I'll add a separate SpokePoolLens and leave PoolLens for isolated. That also drops the staticcall probing.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, will deploy a separate VToken beacon for the spoke pool.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
feat(lens): add a dedicated lens for spoke pools
feat(spoke): add a deploy script for the spoke vToken beacon