-
Notifications
You must be signed in to change notification settings - Fork 101
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
[3] feat(twap): add generic trade form validation to TWAP #2592
Conversation
…into feat/2417-2 # Conflicts: # src/modules/limitOrders/containers/TradeButtons/index.tsx # src/modules/tradeFormValidation/index.ts
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…to feat/2417-1 # Conflicts: # src/modules/tradeFormValidation/pure/TradeFormButtons/index.tsx
…into feat/2417-2 # Conflicts: # src/modules/limitOrders/containers/TradeButtons/index.tsx
… feat/2417 # Conflicts: # src/modules/swap/containers/SwapWidget/index.tsx
…to feat/2417-1 # Conflicts: # src/legacy/hooks/useWrapCallback.ts # src/modules/swap/hooks/useSwapButtonContext.ts
…into feat/2417-2
} | ||
const tradeFormButtonContext = useTradeFormButtonContext('Limit order', { doTrade: handleTrade, confirmTrade }) | ||
|
||
if (!tradeFormButtonContext) return null |
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.
You are still refactoring trade stuff, I say testing is needed!
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.
Yeah, sorry for that :(
There are not so much changes in the existed code, anyway, there are
src/modules/tradeFormValidation/hooks/useTradeFormButtonContext.ts
Outdated
Show resolved
Hide resolved
… feat/2417 # Conflicts: # src/modules/limitOrders/containers/LimitOrdersWidget/index.tsx
…into feat/2417-2 # Conflicts: # src/modules/advancedOrders/containers/AdvancedOrdersWidget/index.tsx # src/modules/limitOrders/containers/TradeButtons/index.tsx # src/modules/twap/containers/TwapFormWidget/index.tsx
… feat/2417-2 # Conflicts: # src/modules/limitOrders/containers/TradeButtons/index.tsx # src/modules/tradeFormValidation/index.ts
Summary
Fixes #2417
In this PR I've added generic form validation to TWAP widget.
See:
To Test