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

implement offramp summary popup #394

Open
wants to merge 7 commits into
base: polygon-prototype-staging
Choose a base branch
from

Conversation

Sharqiewicz
Copy link
Contributor

No description provided.

@Sharqiewicz Sharqiewicz linked an issue Jan 20, 2025 that may be closed by this pull request
Copy link

netlify bot commented Jan 20, 2025

Deploy Preview for pendulum-pay ready!

Name Link
🔨 Latest commit 090c6f4
🔍 Latest deploy log https://app.netlify.com/sites/pendulum-pay/deploys/6792d89ee9de980008e56327
😎 Deploy Preview https://deploy-preview-394--pendulum-pay.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@ebma ebma left a comment

Choose a reason for hiding this comment

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

Really nice job @Sharqiewicz, it looks amazing 🙏

It's not defined in the ticket but I would suggest we don't close the offramp dialog when the user clicks on 'Continue to partner'. This has some advantages:

  • The user doesn't see that the exchange rates/quotes still continuously change/refresh in the base form.
  • The user can switch back and forth between the anchor page and vortex to double check the expected values

I would continue showing the info dialog all the way until we switch over to the progress page. WDYT @pendulum-chain/devs and also @pendulum-chain/product?

window.open(anchorUrl, '_blank');
}}
>
Continue with Partner
Copy link
Member

Choose a reason for hiding this comment

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

We should add the 'external' icon that indicates that clicking this button/link will open a new tab.

const FeeDetails = ({ network, feesCost, fiatSymbol, tokenOutAmount, fromToken, anchorUrl }: FeeDetailsProps) => (
<section className="mt-6">
<div className="flex justify-between mb-2">
<p>Offramp fees</p>
Copy link
Member

@ebma ebma Jan 21, 2025

Choose a reason for hiding this comment

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

We should add in the brackets how this offramp fee is comprised. (The code I suggested is not enough, we still need to transform the values to something easy to read for the user)

Suggested change
<p>Offramp fees</p>
<p>Offramp fee ({`${outputToken.offrampFeeBasisPoints}%` + outputToken.offrampFeesFixedComponent > 0 ? ` + {outputToken.offrampFeesFixedComponent}` : ""})</p>

<p>
<strong>
<ExchangeRate tokenOutData={tokenOutAmount} fromToken={fromToken} toTokenSymbol={fiatSymbol} />
($1.00)
Copy link
Member

Choose a reason for hiding this comment

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

While it's in the reference image, I think we should remove this. As far as I understand, the idea of this '($1.00)' would be to indicate the dollar value of the resulting quote. This means, in order to make this value make sense, we would need to fetch the ARS or EUR to USD exchange rate from somewhere else and compare our output token amount to that. I think this is too complex and we should rather remove it for now. If this becomes a hard requirement later, we can still add it in the future.

Suggested change
($1.00)

);

return (
<Dialog content={content} visible={visible} actions={actions} headerText="You're offramping" onClose={onClose} />
Copy link
Member

Choose a reason for hiding this comment

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

I just realized that we should change this title since we don't want to call it 'offramp' but use the term 'sell' everywhere.

Suggested change
<Dialog content={content} visible={visible} actions={actions} headerText="You're offramping" onClose={onClose} />
<Dialog content={content} visible={visible} actions={actions} headerText="You're selling" onClose={onClose} />

@prayagd
Copy link
Collaborator

prayagd commented Jan 22, 2025

I would continue showing the info dialog all the way until we switch over to the progress page. WDYT

i agree to this suggestion

@prayagd
Copy link
Collaborator

prayagd commented Jan 22, 2025

couple of comments

  • Change You're offramping to You're selling, now that we are call everything sell
  • There is lot of delay if i close the pop-up change the input amount and again click on confirm until the pop-up reappears
  • For the Partner thing please follow the alignment move the link to the right below similar to how other details are aligned to right and also please remove the "-" from partner
  • Both partner links are wrong please make mykobo - https://www.mykobo.co/ anclap - https://home.anclap.com/
  • I know not mentioned in the acceptance criteria is it possible to make the links? clicking them should open the website in new page

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.

Implement new changes after the Confirm button
3 participants