Skip to content
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

NDEV-830. Upgraded Wormhole portal for Neon transfer #48

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

oable
Copy link

@oable oable commented Feb 9, 2023

No description provided.

@oable oable force-pushed the main branch 3 times, most recently from 67ffbfa to b5acf3e Compare February 28, 2023 18:46
) {
return "Invalid relayer fee.";
}
if (
state.transfer.useRelayer &&
(state.transfer.targetChain === CHAIN_ID_ACALA ||
state.transfer.targetChain === CHAIN_ID_KARURA) &&
state.transfer.targetChain === CHAIN_ID_KARURA ||
state.transfer.targetChain === CHAIN_ID_NEON) &&
!state.transfer.acalaRelayerInfo.data?.shouldRelay
Copy link
Contributor

Choose a reason for hiding this comment

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

Need to handle state.transfer.neonRelayerInfo.data?.shouldRelay

Copy link
Author

Choose a reason for hiding this comment

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

Some think like this?
if ( state.transfer.useRelayer && (state.transfer.targetChain === CHAIN_ID_ACALA || state.transfer.targetChain === CHAIN_ID_KARURA || state.transfer.targetChain === CHAIN_ID_NEON) && (!state.transfer.acalaRelayerInfo.data?.shouldRelay || !state.transfer.neonRelayerInfo.data?.shouldRelay) ) {

Copy link
Contributor

@kev1n-peters kev1n-peters Mar 1, 2023

Choose a reason for hiding this comment

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

Can we change it to:

  if (
    (state.transfer.useRelayer &&
      (state.transfer.targetChain === CHAIN_ID_ACALA ||
        state.transfer.targetChain === CHAIN_ID_KARURA) &&
      !state.transfer.acalaRelayerInfo.data?.shouldRelay) ||
    (state.transfer.targetChain === CHAIN_ID_NEON &&
      !state.transfer.neonRelayerInfo.data?.shouldRelay)
  ) {
    return "Token is ineligible for relay.";
  }

Copy link
Author

Choose a reason for hiding this comment

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

Ok. I used your pattern.

Copy link
Author

Choose a reason for hiding this comment

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

Re-check please.

@oable oable force-pushed the main branch 2 times, most recently from 4ec4385 to ed0ad14 Compare March 2, 2023 12:39
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.

2 participants