-
Notifications
You must be signed in to change notification settings - Fork 1
Feature/v2-v3-migration #9
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
base: main
Are you sure you want to change the base?
Conversation
(cherry picked from commit 21362ac)
chore: merge updated permit flow
|
src/store/v3MigrationSelectors.ts
Outdated
| const selectedReserve = v3ReservesMap[userReserve.underlyingAsset]?.reserve; | ||
|
|
||
| if (isolatedReserveV3) { | ||
| disabledForMigration = selectedReserve.borrowableInIsolation; |
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.
Should be negated, !selectedReserve.borrowableInIsolation
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.
good catch, thank you
src/store/v3MigrationSelectors.ts
Outdated
|
|
||
| if (isolatedReserveV3) { | ||
| disabledForMigration = selectedReserve.borrowableInIsolation; | ||
| } else if (userEmodeCategoryId !== 0) { |
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.
Currently this won't handle if a user is in eMode and isolationMode. To fix this you can replace the else if with if(!disabledForMigration && userEmodeCategoryId !== 0)
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.
fixed
Draft of beginning migration UI to discuss multiple permits.
My initial idea was