Skip to content

Conversation

@satanworker
Copy link

@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

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

if (isolatedReserveV3) {
disabledForMigration = selectedReserve.borrowableInIsolation;

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
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) {

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
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.

5 participants