Skip to content

Feature/v2-v3-migration#9

Draft
satanworker wants to merge 109 commits intomainfrom
feature/v2-v3-migration
Draft

Feature/v2-v3-migration#9
satanworker wants to merge 109 commits intomainfrom
feature/v2-v3-migration

Conversation

@satanworker
Copy link
Copy Markdown

@satanworker satanworker commented Nov 11, 2022

Draft of beginning migration UI to discuss multiple permits.
My initial idea was

  • to have a list of selected assets in migration store
  • retrieve an array of nonces for each aToken
  • sign an array of permits where spender is a migration helper contract
  • pass signed permits to migrate method

@github-actions
Copy link
Copy Markdown

const selectedReserve = v3ReservesMap[userReserve.underlyingAsset]?.reserve;

if (isolatedReserveV3) {
disabledForMigration = selectedReserve.borrowableInIsolation;
Copy link
Copy Markdown

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

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, thank you


if (isolatedReserveV3) {
disabledForMigration = selectedReserve.borrowableInIsolation;
} else if (userEmodeCategoryId !== 0) {
Copy link
Copy Markdown

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)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants