Dan J Miller
0558689636
Compare convert ethBalance to decimal before comparing to fromTokenBalance in useEffect for eth token balance update ( #9607 )
4 years ago
Erik Marks
a0d7aa56aa
Loosen isBestQuote PropType
4 years ago
Erik Marks
799df99bd0
Rename some props
4 years ago
Erik Marks
b31816d6f7
Make FeeCard component specific to swaps
4 years ago
David Walsh
d0152aad51
Use localizations for placeholders in Swap ( #9587 )
4 years ago
David Walsh
48dd3fe069
AutoFocus the from input on swaps screen ( #9581 )
4 years ago
Dan J Miller
2563180a88
Data consistency swaps token balance ( #9588 )
...
* Explicitly set balance and string on the swaps from token in token-overview
* Set swapsFromToken balance to a decimal instead of a hex on eth balance change in build-quote
4 years ago
Erik Marks
59212f7a2b
Remove dead gas estimation functions, rename function ( #9579 )
4 years ago
Dan J Miller
dfb722b6ed
Hex prefix newly fetched token balances in build-quote ( #9586 )
...
* Hex prefix newly fetched token balances in build-quote
* Set balance to dec WEI string instead of hex when adding token via swap from select
4 years ago
Dan J Miller
f3bd717184
Account for approval gas costs in eth received ( #9559 )
...
* Account for approval gas costs in eth received
* Pass approval txMeta to getSwapsTokensReceivedFromTxMeta in swaps/index.js
4 years ago
Dan J Miller
0e37904692
Add useFastestButtons options to gas-customization modal and utilize it in swaps. ( #9548 )
4 years ago
Dan J Miller
a9d156e611
Fix and simplify account switching in Swaps ( #9549 )
...
* Ensure rendered swap from token balance updates when token balance changes
* Disable account switching on all swaps routes other than build quote
4 years ago
Dan J Miller
dc5edb5431
Fix calculation and display of eth received amounts in swaps ( #9546 )
...
* Update txMeta after postTxBalance has been retrieved
* Use gas used from txReceipt to calculate eth received
* Return null from getSwapsTokensReceivedFromTxMeta in tokenSymbol is ETH and txReceipt is missing
* Get latest txMeta before updating it with postTxBalance in case of a swaps tx in confirmTransaction
* Lint fix
4 years ago
Dan J Miller
436b01387c
Add useSwapsEthToken hook and utilize wherever we need the ETH 'token' for swaps ( #9537 )
...
* Add useSwapsEthToken hook and utilize wherever we need the ETH 'token' for swaps
* Remove rawEthTokens param from useTokensToSearch calls
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Co-authored-by: Erik Marks <rekmarks@protonmail.com>
4 years ago
Mark Stacey
d8818a47c4
Add margins between quote list columns ( #9528 )
...
The quote list columns have been adjusted to add more space in between
the columns. Additionally, the third column cells are now better
aligned under the header. A few unnecessary `<div>`s and CSS classes
have been removed as well.
4 years ago
Dan J Miller
0ebc465221
Fix swap prop type errors ( #9532 )
...
* Fix swap prop type errors
* Fix prop type of sortColumn in sort-list
4 years ago
Dan J Miller
89a0f75942
Corrects the copy in the amount receiving tooltip of the swaps sort-list ( #9533 )
4 years ago
Dan J Miller
549140f6f5
Remove max mode for eth feature from swaps ( #9531 )
...
* Remove max mode for eth feature from swaps
* Fix unit tests after removing maxMode from swaps
4 years ago
David Walsh
25e5ac24b2
Prevent swaps value input placeholder from jumping when focused ( #9520 )
4 years ago
Dan J Miller
a939853989
Ensure all of a token is swapped when clicking max in swaps ( #9507 )
4 years ago
Dan J Miller
7a28783924
Prevent user from submitting swap if they do not have enough for the max gas fee ( #9500 )
4 years ago
Brad Decker
1ba4061f46
format quotes consistently on main-view and list-view ( #9495 )
4 years ago
Dan J Miller
534ac25a93
Ensure gas costs are accounted for when calculating the amount of eth received in a swap ( #9494 )
4 years ago
Dan J Miller
30d13422b5
Add MetaMask Swaps ( #9482 )
4 years ago