Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: migrate limit orders to utilize redux for state management (#8112)
* feat: migrate tradeInputSlice to higher-order-slice pattern * feat: move common input selectors into a selector factory * chore: add some code comments * feat: added limitOrderInputSlice * feat: migrate the rest of the shared selectors * feat: wire in redux user slippage for limit orders * feat: wire in redux sell asset for limit orders * feat: wire in redux buy asset for limit orders * fix: use hardcoded cowswap for default limit order slippage * feat: migrate marketPriceBuyAsset to redux * feat: migrate limit order account IDs to redux * feat: migrate limit order input amounts to redux * chore: move selectCalculatedFees into into snapshot selectors * chore: cleanup voting power selectors * feat: migrate limit order useLimitOrderRecipientAddress to redux * chore: cleanup slippage percentages in limit order input * feat: migrate remaining limit order input handlers to redux * feat: introduced useActions hook for max cleanliness * chore: unify naming of trade input actions and selectors * fix: free trades are free * fix: reset market rate when switching assets * fix: import from wrong slice, prevent it from happening again * chore: useActions for the useLimitOrderRecipientAddress hook * chore: actioned gome review feedback
- Loading branch information