-
Notifications
You must be signed in to change notification settings - Fork 44
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
base: main
Are you sure you want to change the base?
Conversation
67ffbfa
to
b5acf3e
Compare
src/store/selectors.ts
Outdated
) { | ||
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 |
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.
Need to handle state.transfer.neonRelayerInfo.data?.shouldRelay
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.
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) ) {
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.
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.";
}
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.
Ok. I used your pattern.
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.
Re-check please.
4ec4385
to
ed0ad14
Compare
No description provided.