-
Notifications
You must be signed in to change notification settings - Fork 191
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
feat: use WarningAcknowledgement component #6647
Conversation
* add bottom sheet dialog * try out vaul * hook up send * Create SubPage.tsx * adjusting dialog header * Update DialogCloseButton.tsx * add new action menu * updates * update more height stuff * use 100dvh instead of vh * use 100vh * anchor footer at the bottom of the screen * update new asset search * Update SelectAssets.tsx * add min height for regular modals * Update MobileNavBar.tsx * remove extra stuff not needed for PR * remove more stuff not for this PR * Update AddressInput.tsx * Update AddressInput.tsx * Update Dialog.tsx * Update SelectAssets.tsx * fix for dialog height * Update AssetSearch.tsx --------- Co-authored-by: gomes <[email protected]>
* feat: use proxy validation endpoint * chore: improve fn name * update endpoint * fix: csp * fix: tests * chore: use shapeshift proxy csp * chore: fail open --------- Co-authored-by: kaladinlight <[email protected]>
* account down remove portal * Update StepRow.tsx
* chore: invalidate outdated translations * Translate main.json via GitLocalize * Translate main.json via GitLocalize * Translate main.json via GitLocalize * Translate main.json via GitLocalize * Translate main.json via GitLocalize * Translate main.json via GitLocalize * Translate main.json via GitLocalize * Translate main.json via GitLocalize * Translate main.json via GitLocalize * Translate main.json via GitLocalize --------- Co-authored-by: Hellhound13 <[email protected]> Co-authored-by: Jpanam <[email protected]> Co-authored-by: yuki <[email protected]> Co-authored-by: guiribabrb <[email protected]> Co-authored-by: Markus Meyer <[email protected]> Co-authored-by: Romko <[email protected]> Co-authored-by: tonyjiang12399 <[email protected]>
* feat: getFullAppData tests * feat: cow quote/unsigned order build cleanup
Co-authored-by: GitHub Action <[email protected]>
* fix: zapperAssetToMaybeAssetId handle base-token as native asset * fix: filter unique opportunities by id first * Revert "fix: zapperAssetToMaybeAssetId handle base-token as native asset" This reverts commit 1ed1a59.
* feat: uni-v2 pools static generation * feat: revert DynamicLpAssets flag * feat: regen * feat: cleanup asset upserty bits * feat: regen
c9a3940
to
809d96e
Compare
Update YourPositions.tsx
@gomesalexandre & @woodenfurniture all feedback addressed sers 🙏 CI currently failing for unrelated reasons (waiting for my hotfix into |
src/components/MultiHopTrade/components/TradeInput/TradeInput.tsx
Outdated
Show resolved
Hide resolved
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.
Tackled comments look sane - retested at runtime:
Swapper styles
- Looks sane again! ✅
Swapper unsafe lower than minimum
- Ack is now properly triggered, and captures the original onClick event behavior ✅
unsafe.btc.mov
Swapper Confirm
- Ack is properly triggered, and captures the original onClick event behavior ✅
swapper.confirm.ack.mov
Lending - high-slippage borrow
Wasn't able to retest as both pools are currently halted, though this was previously tested
THORCHain LP
- Ack is properly triggered, and captures the original onClick event behavior ✅
Screen.Recording.2024-04-16.at.12.34.55.mov
src/components/WarningAcknowledgement/WarningAcknowledgement.tsx
Outdated
Show resolved
Hide resolved
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.
Notes for reviewer: use "Hide whitespace" when viewing the diff, and ignore the insane commit history (it was started on the old
develop
branch before I fixed it).Description
Adds a new, generic,
WarningAcknowledgement
component that can be used across LP, Swapper, and Saver domains to provide a consistent user experience for acknowledging risks associated with a transaction.Wires up this component for the following features/flows:
Still to do (follow-up PR):
Pull Request Type
Issue (if applicable)
Mostly addresses #6605, follow up PR for remaining places to come.
Risk
High. Whilst this PR should only add an additional step in unsafe transaction situations, getting it wrong could mean we break the flow entirely for all of our key revenue generating flows.
Testing
Savers borrow
Use frame to quote a borrow that will result in an unsafe amount of slippage. Upon confirmation of the quote a warning should show.
Not able to test or get a screenshot at time or writing, as borrow is currently halted (cap full).
Monkey patched shot:
Trade quote input
Get a THORChain quote from ETH to BTC, enter about 0.05 ETH and the an unsafe warning should show on preview.
Trade quote confirm
Use frame to confirm a trade that has an unsafe amount of slippage. Upon confirmation of the trade a warning should show.
LP deposit
Use frame to get a quote for a large deposit that cause slippage. Upon confirmation a deposit warning should show.
Engineering
☝️
Operations
☝️
Screenshots (if applicable)
high-slippage.mp4