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

Fix error custom asset #126

Merged
merged 1 commit into from
Sep 3, 2020
Merged

Fix error custom asset #126

merged 1 commit into from
Sep 3, 2020

Conversation

bonustrack
Copy link
Contributor

No description provided.

@Destiner Destiner merged commit 914a4ad into master Sep 3, 2020
@Destiner Destiner deleted the fabien/hot-fix-custom-asset branch September 3, 2020 10:32
Destiner pushed a commit that referenced this pull request Sep 9, 2020
* Fix fetch token list from assets repo + sXMR message (#124)

* Swap table fixes (#28)

* Fix tx in swap table

* Show minutes in swap table

* Rename swap table column to "Transaction"

* Show token tickers in swap table

* Cut method underscore prefix

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Fix getTxHashFromId

* Add WalletConnect and Portis connectors (#27)

* Refactor login

* Add walletconnect

* Add portis

* Add connect modal

* Add Portis options for kovan

* Fix walletconnect error

* Use Balancer Portis id

* Change to Balancer Infura id

* Revert

* DSProxy creation flow (#29)

* Add createProxy action

* Rename action: getProxies -> getProxy

* Add Setup view

* Add missing semicolon

* Redirect to Setup page if user has no proxy

* Add top margin to setup message block

* Disable "Setup" button during loading

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Fix linting

* Add hasProxy store getter

* Fix imports in web3 store

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Ignore .env file (#30)

* Title case buttons and headers (#31)

* Title case buttons and headers

* Change label: "Trade vol. (24h)" -> "Volume (24h)"

* Hide pie chart if conic-gradient not supported (#32)

* Fix linting

* Hide pie chart if conic-gradient not supported

* Fix add liquidity tx (#33)

* Fix add liquidity tx params

* Store user balances as strings

* Fetch token decimals and balances onchain (#34)

* Use token decimals

* Fetch pool token balances

* Load onchain token metadata (decimals)

* Don't overwrite balance store

* Hide My Wallet section

* Single-asset deposit (#35)

* Rewrite PoolOverview component

* Add PoolOverview to AddLiquidity modal

* Add SingleMultiToggle component

* Show future share only if it's available

* Add Checkbox component

* Add Radio component

* Single-asset join

* Single-asset withdraw (#36)

* Single-asset exit

* Disable token balance fetching

* Eth wrapping/unwrapping (#38)

* Pass tx overrides to sendTransaction

* ETH wrapping/unwrapping

* Fix swap volume (#37)

* Make login persist (#39)

* Add Lock.js

* Use hardcoded name

* Fix token selector modal (#40)

* Fix token decimals in selector modal

* Set max height to token selector modal

* Cut console logging

* Set relative max height to token selector modal

* Custom token pool creation (#42)

* Show My Wallet section only when account is active

* Pool creation page

* Merge upstream (#41)

* Fix swap volume (#37)

* Make login persist (#39)

* Add Lock.js

* Use hardcoded name

* Fix token selector modal (#40)

* Fix token decimals in selector modal

* Set max height to token selector modal

* Cut console logging

* Set relative max height to token selector modal

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Create pool on button click

* Add route name

* Add custom token support to SelectToken modal

* Fix createPool action

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Refactor store and fetching (#43)

* Center search icon

* Refactor store and fetching

* Pool creation messages (#44)

* Add Error component

* Add CustomToken component

* Fix Checkbox component

* Add "error" and "custom token" messages

* Add warnings & errors for join & exit (#45)

* Align text to left in MessageError

* Add MessageWarning component

* Add MessageWarningRateChange component

* Fetch metadata for unknown tokens only

* Add warnings & errors for join & exit

* Disable action buttons on validation errors (#46)

* Fix linting

* Disable button on validation error in NewPool

* Max in / max out validation

* Fix amounts not updated on weight change

* Fix modal max height (#47)

* Show error text on input error (#48)

* Refactor web3 store (#49)

* UI (#50)

* Navigate to NewPool page

* Add "My Liquidity" section to Home page

* Cut Wallet section from Sidebar

* Add fallback Infura ID

* Update Ethers.js to v5 and remove unused deps (#51)

* Update license to GPL-3

* Update Ethers.js to v5 and remove unused deps

* Fix encode and decode

* UX fixes (#54)

* Show ETH balance

* Fix MessageCustomToken checkbox

* Handle wrong pool address

* Disable action button if some tokens are locked

* Don't fetch token metadata in NewPool page

* Fix loading indicator for SelectToken modal

* Hide "Add Liquidity" button for empty pools

* Add account modal with logout (#52)

* Replace Infura with Alchemy (#53)

* Bug fixes & improvements (#55)

* Add balance buffer to join token amounts

* Custom gas estimation

* Handle rejected transactions (don't show error)

* Fix "join tx failed" message

* Fix joinswapExternAmountIn

* Use token precision for ListToken and Sidebar

* Add Etherscan links to Pool and Token page headers

* Add "max" button to eth unwrapping

* Add margin to private pool label

* Fix hasLockedToken for single-asset join

* Disable join button if transaction failed

* Use Coingecko to fetch prices (#56)

* Use Coingecko to fetch prices

* Fix linting

* Fix ether balance not shown

* Store balances as strings

* Sort user balances by usd value

* Fix linting

* Use price store to calculate pool liquidity

* Update config.json (#58)

* Add missing whitelisted tokens

* Update trustwallet whitelist

* Split error types

* Add scam token list

* Multiple fixes (#57)

* Fix lint

* Change holder user link format

* Remove default 0.15% swap fee

* Add page pool about with controller address

* Make pool swaps table responsive

* Show all tokens with ETH and WETH on top

* Fix pie (#59)

* Add Coinbase login (#61)

* Token errors (#60)

* Disable error and scam tokens in SelectToken modal

* Hide scam pools from UI

* Cut redundant condition

* Disable join for scam tokens

* Fix content alignment in Warning/Error messages

* Custom token warning

* Add getTokenBySymbol util method

* Remove scam list

* Cut unused import

* Update CustomToken message text

* Add custom token modal

* Multiple fixes (#62)

* Add error code -32603 to isTxRejected

* Switch subgraph endpoints

* Button hover state

* Fix Pie in PoolOverview

* Fix SelectToken filtering

* Fix invalid token ids

* Clear user state on logout

* Don't show symbols for custom tokens

* Button red styling

* Fix linting

* Fix allowance call in approve action

* Use _ticker in PoolOverview

* Fix Notifications styling

* Wait for 2 confirmations before getAllowances call

* Log out on network change

* Fix token warnings (#64)

* Fix custom token warning

* Update CustomToken message text

* Add Checkbox message to whitelisted pools

* Refactor: customTokenAccept -> checkboxAccept

* Load backup provider

* Fix add liquidity (#65)

* Fix add liquidity issues

* Add token count validation to NewPool view

* Fix infinite scroll (#66)

* Refactor config and reduce bundle size (#68)

* Remove bn.js duplicates

* Add IPFS deploy

* Components import for @vue/ui

* Refactor config

* Fix scrollbar

* Add similar pools section when creating a pool (#63)

* Display similar pools

* Add holder tab count

* Use beta subgraph

* Merge develop

* Refactor validation (#67)

* Refaction input validation

* Use getTokenBySymbol util method

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Increase icon size in warning/error messages

* Update DSProxy setup message box (#71)

* Add SimilarPools message

* Use SimilarPools message on NewPool view

* Use SimilarPools message on Pool view

* Use Vue.set to update amounts in NewPool

* Make the whole row clickable in SimilarPools

* Improve UI (#69)

* Remove bn.js duplicates

* Add IPFS deploy

* Components import for @vue/ui

* Refactor config

* Fix scrollbar

* Use subgraph for liquidity

* Change primary font

* Improve UI

* Fix multi-single selector

* Remove font

* Fix wrapper firefox

* Make generic toggle

* Add token names + router fixes (#72)

* Fix Pool view throws on invalid pool address

* Load pool on url change

* Move popular assets to the top of the token list

* Add token names to config

* Fetch token names

* Show token name in SelectToken modal

* BAL Whitelist - Round 6 (#74)

* Remove LEV

* Remove PRO

* Add ALEPH

* Add ARPA

* Add ARTE

* Add CARD

* Add CUR

* Add KAI

* Add NEC

* Add uDOO

* Suggest similar pools based on weights, fee, and liquidity (#73)

* Increase icon size in warning/error messages

* Add SimilarPools message

* Use SimilarPools message on NewPool view

* Use SimilarPools message on Pool view

* Use Vue.set to update amounts in NewPool

* Make the whole row clickable in SimilarPools

* Multiple enhancements (#75)

* Pool creation limit to 8 assets

* Add creation tx, BPT and swap infos

* Fix height table loading placeholder

* Show usd swap fee

* Add holder share value

* Remove coingecko pricing (#77)

* Fix mobile add / remove liquidity

* Update bActions proxy

* Abbrev numbers and filters with url (#76)

* Display abrev numbers

* Change url on filter change

* Move ipfs-deploy to dev dep

* Remove filter key

* Fixes from master and router history

* Fix margin unlogged

* Fix link

* Change config format  (#78)

* Change config format

* Update packages

* Cut custom warnings

* UX improvements (#83)

* Add loading state to button in Create view

* Redirect to Setup view if no proxy found

* Add loading state to Wrap/Unwrap buttons

* Add validation for Wrapper inputs

* Hide pool action buttons when web3 not connected

* Add message to Checkbox

* Bump @walletconnect/web3-provider

* Hide MessageSimilarPools for private pools

* Add $info style var

* Add Slippage message

* Cut Pie from PoolOverview

* Add Icon to Slippage message

* Decrease vertical margin for several messages

* Increase max-height for UiModal

* Move messages inside Add/Remove modal body

* Pool creation: redirect user if no proxy (#90) (#91)

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Increase precision for BTC-pegged assets (#92)

* Increase precision for BTC-pegged assets

* Update addresses on Kovan

* Fix linting

* Don't keep 0x0 proxy address in store (#93)

* Cut NewPool view

* Set dsProxyAddress as '' if proxy not found

* Padlock + pool creation confirmation modal (#88)

* Padlock and price confirmation modal

* UX improvements (#83) (#87)

* Add loading state to button in Create view

* Redirect to Setup view if no proxy found

* Add loading state to Wrap/Unwrap buttons

* Add validation for Wrapper inputs

* Hide pool action buttons when web3 not connected

* Add message to Checkbox

* Bump @walletconnect/web3-provider

* Hide MessageSimilarPools for private pools

* Add $info style var

* Add Slippage message

* Cut Pie from PoolOverview

* Add Icon to Slippage message

* Decrease vertical margin for several messages

* Increase max-height for UiModal

* Move messages inside Add/Remove modal body

* Fix linting

* Update icon set

* Add lock/unlock icons for padlock

* Fix linting

* Add icon-font-generator package

* Show unlock button if allowance not enough  (#94)

* Fix getTokenLogoUrl for custom tokens

* Show unlock button if allowance not enough

* Add meta description

* Add pool metric charts (#99)

* Add lightweight-charts package

* Fetch pool metrics from subgraph

* Add Chart component (draft)

* Fix linting

* Add liquidity and APY charts

* Hide pool name on mobile

* Use _num for APY formatting + rename tab

* Disable chart scrolling by mouse wheel

* Add poolLiquidity to metrics subgraph request

* Handle fresh pools (created less than 30 days ago)

* Chart fixes

* Increase loading progress size

* Use area chart for 'fee' dataset

* Fix chart on window resize

* Restore coingecko (#100)

* Use Coingecko pricing data

* Handle coingecko outage

* Fix linting

* UX improvements (#106)

* Restore coingecko (#100)

* Use Coingecko pricing data

* Handle coingecko outage

* Fix linting

* Fix onchain token metadata fetching

* Add info about padlock on PoolCreation modal

* Show decimals for token weights

* Use utils for percentage formatting

* Add info icon

* Show BPT amount when adding liquidity

* Use _num to format values

* Fix WETH input

* Add about modal (#102)

* Add modal about

* Fix unlock button align

* Lazy load connectors and add Fortmatic (#104)

* Use png logo for connectors

* Lazy load connectors

* Add Fortmatic

* Add CRPFactory ABI

* Update BActions ABI

* Update CRPFactory and BActions addresses on Kovan

* Rename: toggleOptions -> liquidityToggleOptions

* Make checkbox blue by default

* Add createSmartPool action

* Add 'smart pool' tab on Create view

* Fix linting

* Pass default CRP params

* Add Lock Vue plugin (#108)

* Add Lock Vue plugin

* Fix loading align

* Add ConfigurableRightsPool ABI

* Update BActions address

* Fix smart pool rights

* Fix linting

* Add Lock Vue plugin (#108) (#112)

* Add Lock Vue plugin

* Fix loading align

* Update CRPFactory address

* Update abi

* Add smart pools page

* Add smart pool details

* Update BActions ABI

* Add CRP-related actions

* Update BActions address

* Add crp count

* Connect to balancer-labs/asset repo (#114)

* Autoload abi

* Fix topnav mobile

* Update Lock integration

* Connect to balancer-labs/asset repo

* Set default branch for balancer-labs/assets

* Merge dev to smartpool (#115)

* Add Lock Vue plugin (#108)

* Add Lock Vue plugin

* Fix loading align

* Connect to balancer-labs/asset repo (#114)

* Autoload abi

* Fix topnav mobile

* Update Lock integration

* Connect to balancer-labs/asset repo

* Set default branch for balancer-labs/assets

* Route smart pool management actions thru BActions

* Add page my pools and CRP infos (#116)

* Add page "My pools"

* Use svg for checkboxes

* Add CRP name symbol and controller

* Fix title

* Show error if one of the tokens is locked (#117)

* Specify assets repo branch in package lock file

* Add token name and "remove all tokens" right (#120)

* Add token name and "remove all tokens" right

* Update BActions address

* Fix values not converted in broadcast

* Add updateWeight/removeToken related calcs to math

* Revert "Merge branch 'smartpool' into develop"

This reverts commit e2bbf75, reversing
changes made to ce1ef05.

* add message for sXMR tx fail (#122)

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>
Co-authored-by: rabmarut <67169632+rabmarut@users.noreply.github.com>
Co-authored-by: bonustrack <fabien@bonustrack.co>
Co-authored-by: Mike McDonald <mikeraymcdonald@gmail.com>

* Fix error custom asset (#126)

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>
Co-authored-by: rabmarut <67169632+rabmarut@users.noreply.github.com>
Co-authored-by: bonustrack <fabien@bonustrack.co>
Co-authored-by: Mike McDonald <mikeraymcdonald@gmail.com>
mikemcdonald added a commit that referenced this pull request Sep 9, 2020
* Swap table fixes (#28)

* Fix tx in swap table

* Show minutes in swap table

* Rename swap table column to "Transaction"

* Show token tickers in swap table

* Cut method underscore prefix

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Fix getTxHashFromId

* Add WalletConnect and Portis connectors (#27)

* Refactor login

* Add walletconnect

* Add portis

* Add connect modal

* Add Portis options for kovan

* Fix walletconnect error

* Use Balancer Portis id

* Change to Balancer Infura id

* Revert

* DSProxy creation flow (#29)

* Add createProxy action

* Rename action: getProxies -> getProxy

* Add Setup view

* Add missing semicolon

* Redirect to Setup page if user has no proxy

* Add top margin to setup message block

* Disable "Setup" button during loading

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Fix linting

* Add hasProxy store getter

* Fix imports in web3 store

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Ignore .env file (#30)

* Title case buttons and headers (#31)

* Title case buttons and headers

* Change label: "Trade vol. (24h)" -> "Volume (24h)"

* Hide pie chart if conic-gradient not supported (#32)

* Fix linting

* Hide pie chart if conic-gradient not supported

* Fix add liquidity tx (#33)

* Fix add liquidity tx params

* Store user balances as strings

* Fetch token decimals and balances onchain (#34)

* Use token decimals

* Fetch pool token balances

* Load onchain token metadata (decimals)

* Don't overwrite balance store

* Hide My Wallet section

* Single-asset deposit (#35)

* Rewrite PoolOverview component

* Add PoolOverview to AddLiquidity modal

* Add SingleMultiToggle component

* Show future share only if it's available

* Add Checkbox component

* Add Radio component

* Single-asset join

* Single-asset withdraw (#36)

* Single-asset exit

* Disable token balance fetching

* Eth wrapping/unwrapping (#38)

* Pass tx overrides to sendTransaction

* ETH wrapping/unwrapping

* Fix swap volume (#37)

* Make login persist (#39)

* Add Lock.js

* Use hardcoded name

* Fix token selector modal (#40)

* Fix token decimals in selector modal

* Set max height to token selector modal

* Cut console logging

* Set relative max height to token selector modal

* Custom token pool creation (#42)

* Show My Wallet section only when account is active

* Pool creation page

* Merge upstream (#41)

* Fix swap volume (#37)

* Make login persist (#39)

* Add Lock.js

* Use hardcoded name

* Fix token selector modal (#40)

* Fix token decimals in selector modal

* Set max height to token selector modal

* Cut console logging

* Set relative max height to token selector modal

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Create pool on button click

* Add route name

* Add custom token support to SelectToken modal

* Fix createPool action

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Refactor store and fetching (#43)

* Center search icon

* Refactor store and fetching

* Pool creation messages (#44)

* Add Error component

* Add CustomToken component

* Fix Checkbox component

* Add "error" and "custom token" messages

* Add warnings & errors for join & exit (#45)

* Align text to left in MessageError

* Add MessageWarning component

* Add MessageWarningRateChange component

* Fetch metadata for unknown tokens only

* Add warnings & errors for join & exit

* Disable action buttons on validation errors (#46)

* Fix linting

* Disable button on validation error in NewPool

* Max in / max out validation

* Fix amounts not updated on weight change

* Fix modal max height (#47)

* Show error text on input error (#48)

* Refactor web3 store (#49)

* UI (#50)

* Navigate to NewPool page

* Add "My Liquidity" section to Home page

* Cut Wallet section from Sidebar

* Add fallback Infura ID

* Update Ethers.js to v5 and remove unused deps (#51)

* Update license to GPL-3

* Update Ethers.js to v5 and remove unused deps

* Fix encode and decode

* UX fixes (#54)

* Show ETH balance

* Fix MessageCustomToken checkbox

* Handle wrong pool address

* Disable action button if some tokens are locked

* Don't fetch token metadata in NewPool page

* Fix loading indicator for SelectToken modal

* Hide "Add Liquidity" button for empty pools

* Add account modal with logout (#52)

* Replace Infura with Alchemy (#53)

* Bug fixes & improvements (#55)

* Add balance buffer to join token amounts

* Custom gas estimation

* Handle rejected transactions (don't show error)

* Fix "join tx failed" message

* Fix joinswapExternAmountIn

* Use token precision for ListToken and Sidebar

* Add Etherscan links to Pool and Token page headers

* Add "max" button to eth unwrapping

* Add margin to private pool label

* Fix hasLockedToken for single-asset join

* Disable join button if transaction failed

* Use Coingecko to fetch prices (#56)

* Use Coingecko to fetch prices

* Fix linting

* Fix ether balance not shown

* Store balances as strings

* Sort user balances by usd value

* Fix linting

* Use price store to calculate pool liquidity

* Update config.json (#58)

* Add missing whitelisted tokens

* Update trustwallet whitelist

* Split error types

* Add scam token list

* Multiple fixes (#57)

* Fix lint

* Change holder user link format

* Remove default 0.15% swap fee

* Add page pool about with controller address

* Make pool swaps table responsive

* Show all tokens with ETH and WETH on top

* Fix pie (#59)

* Add Coinbase login (#61)

* Token errors (#60)

* Disable error and scam tokens in SelectToken modal

* Hide scam pools from UI

* Cut redundant condition

* Disable join for scam tokens

* Fix content alignment in Warning/Error messages

* Custom token warning

* Add getTokenBySymbol util method

* Remove scam list

* Cut unused import

* Update CustomToken message text

* Add custom token modal

* Multiple fixes (#62)

* Add error code -32603 to isTxRejected

* Switch subgraph endpoints

* Button hover state

* Fix Pie in PoolOverview

* Fix SelectToken filtering

* Fix invalid token ids

* Clear user state on logout

* Don't show symbols for custom tokens

* Button red styling

* Fix linting

* Fix allowance call in approve action

* Use _ticker in PoolOverview

* Fix Notifications styling

* Wait for 2 confirmations before getAllowances call

* Log out on network change

* Fix token warnings (#64)

* Fix custom token warning

* Update CustomToken message text

* Add Checkbox message to whitelisted pools

* Refactor: customTokenAccept -> checkboxAccept

* Load backup provider

* Fix add liquidity (#65)

* Fix add liquidity issues

* Add token count validation to NewPool view

* Fix infinite scroll (#66)

* Refactor config and reduce bundle size (#68)

* Remove bn.js duplicates

* Add IPFS deploy

* Components import for @vue/ui

* Refactor config

* Fix scrollbar

* Add similar pools section when creating a pool (#63)

* Display similar pools

* Add holder tab count

* Use beta subgraph

* Merge develop

* Refactor validation (#67)

* Refaction input validation

* Use getTokenBySymbol util method

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Increase icon size in warning/error messages

* Update DSProxy setup message box (#71)

* Add SimilarPools message

* Use SimilarPools message on NewPool view

* Use SimilarPools message on Pool view

* Use Vue.set to update amounts in NewPool

* Make the whole row clickable in SimilarPools

* Improve UI (#69)

* Remove bn.js duplicates

* Add IPFS deploy

* Components import for @vue/ui

* Refactor config

* Fix scrollbar

* Use subgraph for liquidity

* Change primary font

* Improve UI

* Fix multi-single selector

* Remove font

* Fix wrapper firefox

* Make generic toggle

* Add token names + router fixes (#72)

* Fix Pool view throws on invalid pool address

* Load pool on url change

* Move popular assets to the top of the token list

* Add token names to config

* Fetch token names

* Show token name in SelectToken modal

* BAL Whitelist - Round 6 (#74)

* Remove LEV

* Remove PRO

* Add ALEPH

* Add ARPA

* Add ARTE

* Add CARD

* Add CUR

* Add KAI

* Add NEC

* Add uDOO

* Suggest similar pools based on weights, fee, and liquidity (#73)

* Increase icon size in warning/error messages

* Add SimilarPools message

* Use SimilarPools message on NewPool view

* Use SimilarPools message on Pool view

* Use Vue.set to update amounts in NewPool

* Make the whole row clickable in SimilarPools

* Multiple enhancements (#75)

* Pool creation limit to 8 assets

* Add creation tx, BPT and swap infos

* Fix height table loading placeholder

* Show usd swap fee

* Add holder share value

* Remove coingecko pricing (#77)

* Fix mobile add / remove liquidity

* Update bActions proxy

* Abbrev numbers and filters with url (#76)

* Display abrev numbers

* Change url on filter change

* Move ipfs-deploy to dev dep

* Remove filter key

* Fixes from master and router history

* Fix margin unlogged

* Fix link

* Change config format  (#78)

* Change config format

* Update packages

* Cut custom warnings

* UX improvements (#83)

* Add loading state to button in Create view

* Redirect to Setup view if no proxy found

* Add loading state to Wrap/Unwrap buttons

* Add validation for Wrapper inputs

* Hide pool action buttons when web3 not connected

* Add message to Checkbox

* Bump @walletconnect/web3-provider

* Hide MessageSimilarPools for private pools

* Add $info style var

* Add Slippage message

* Cut Pie from PoolOverview

* Add Icon to Slippage message

* Decrease vertical margin for several messages

* Increase max-height for UiModal

* Move messages inside Add/Remove modal body

* Pool creation: redirect user if no proxy (#90) (#91)

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Increase precision for BTC-pegged assets (#92)

* Increase precision for BTC-pegged assets

* Update addresses on Kovan

* Fix linting

* Don't keep 0x0 proxy address in store (#93)

* Cut NewPool view

* Set dsProxyAddress as '' if proxy not found

* Padlock + pool creation confirmation modal (#88)

* Padlock and price confirmation modal

* UX improvements (#83) (#87)

* Add loading state to button in Create view

* Redirect to Setup view if no proxy found

* Add loading state to Wrap/Unwrap buttons

* Add validation for Wrapper inputs

* Hide pool action buttons when web3 not connected

* Add message to Checkbox

* Bump @walletconnect/web3-provider

* Hide MessageSimilarPools for private pools

* Add $info style var

* Add Slippage message

* Cut Pie from PoolOverview

* Add Icon to Slippage message

* Decrease vertical margin for several messages

* Increase max-height for UiModal

* Move messages inside Add/Remove modal body

* Fix linting

* Update icon set

* Add lock/unlock icons for padlock

* Fix linting

* Add icon-font-generator package

* Show unlock button if allowance not enough  (#94)

* Fix getTokenLogoUrl for custom tokens

* Show unlock button if allowance not enough

* Add meta description

* Add pool metric charts (#99)

* Add lightweight-charts package

* Fetch pool metrics from subgraph

* Add Chart component (draft)

* Fix linting

* Add liquidity and APY charts

* Hide pool name on mobile

* Use _num for APY formatting + rename tab

* Disable chart scrolling by mouse wheel

* Add poolLiquidity to metrics subgraph request

* Handle fresh pools (created less than 30 days ago)

* Chart fixes

* Increase loading progress size

* Use area chart for 'fee' dataset

* Fix chart on window resize

* Restore coingecko (#100)

* Use Coingecko pricing data

* Handle coingecko outage

* Fix linting

* UX improvements (#106)

* Restore coingecko (#100)

* Use Coingecko pricing data

* Handle coingecko outage

* Fix linting

* Fix onchain token metadata fetching

* Add info about padlock on PoolCreation modal

* Show decimals for token weights

* Use utils for percentage formatting

* Add info icon

* Show BPT amount when adding liquidity

* Use _num to format values

* Fix WETH input

* Add about modal (#102)

* Add modal about

* Fix unlock button align

* Lazy load connectors and add Fortmatic (#104)

* Use png logo for connectors

* Lazy load connectors

* Add Fortmatic

* Add CRPFactory ABI

* Update BActions ABI

* Update CRPFactory and BActions addresses on Kovan

* Rename: toggleOptions -> liquidityToggleOptions

* Make checkbox blue by default

* Add createSmartPool action

* Add 'smart pool' tab on Create view

* Fix linting

* Pass default CRP params

* Add Lock Vue plugin (#108)

* Add Lock Vue plugin

* Fix loading align

* Add ConfigurableRightsPool ABI

* Update BActions address

* Fix smart pool rights

* Fix linting

* Add Lock Vue plugin (#108) (#112)

* Add Lock Vue plugin

* Fix loading align

* Update CRPFactory address

* Update abi

* Add smart pools page

* Add smart pool details

* Update BActions ABI

* Add CRP-related actions

* Update BActions address

* Add crp count

* Connect to balancer-labs/asset repo (#114)

* Autoload abi

* Fix topnav mobile

* Update Lock integration

* Connect to balancer-labs/asset repo

* Set default branch for balancer-labs/assets

* Merge dev to smartpool (#115)

* Add Lock Vue plugin (#108)

* Add Lock Vue plugin

* Fix loading align

* Connect to balancer-labs/asset repo (#114)

* Autoload abi

* Fix topnav mobile

* Update Lock integration

* Connect to balancer-labs/asset repo

* Set default branch for balancer-labs/assets

* Route smart pool management actions thru BActions

* Add page my pools and CRP infos (#116)

* Add page "My pools"

* Use svg for checkboxes

* Add CRP name symbol and controller

* Fix title

* Show error if one of the tokens is locked (#117)

* Specify assets repo branch in package lock file

* Add token name and "remove all tokens" right (#120)

* Add token name and "remove all tokens" right

* Update BActions address

* Fix values not converted in broadcast

* Add updateWeight/removeToken related calcs to math

* Revert "Merge branch 'smartpool' into develop"

This reverts commit e2bbf75, reversing
changes made to ce1ef05.

* add message for sXMR tx fail (#122)

* Fix charts in case there's no data for some days (#128)

* Merge upstream (#130)

* Fix fetch token list from assets repo + sXMR message (#124)

* Swap table fixes (#28)

* Fix tx in swap table

* Show minutes in swap table

* Rename swap table column to "Transaction"

* Show token tickers in swap table

* Cut method underscore prefix

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Fix getTxHashFromId

* Add WalletConnect and Portis connectors (#27)

* Refactor login

* Add walletconnect

* Add portis

* Add connect modal

* Add Portis options for kovan

* Fix walletconnect error

* Use Balancer Portis id

* Change to Balancer Infura id

* Revert

* DSProxy creation flow (#29)

* Add createProxy action

* Rename action: getProxies -> getProxy

* Add Setup view

* Add missing semicolon

* Redirect to Setup page if user has no proxy

* Add top margin to setup message block

* Disable "Setup" button during loading

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Fix linting

* Add hasProxy store getter

* Fix imports in web3 store

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Ignore .env file (#30)

* Title case buttons and headers (#31)

* Title case buttons and headers

* Change label: "Trade vol. (24h)" -> "Volume (24h)"

* Hide pie chart if conic-gradient not supported (#32)

* Fix linting

* Hide pie chart if conic-gradient not supported

* Fix add liquidity tx (#33)

* Fix add liquidity tx params

* Store user balances as strings

* Fetch token decimals and balances onchain (#34)

* Use token decimals

* Fetch pool token balances

* Load onchain token metadata (decimals)

* Don't overwrite balance store

* Hide My Wallet section

* Single-asset deposit (#35)

* Rewrite PoolOverview component

* Add PoolOverview to AddLiquidity modal

* Add SingleMultiToggle component

* Show future share only if it's available

* Add Checkbox component

* Add Radio component

* Single-asset join

* Single-asset withdraw (#36)

* Single-asset exit

* Disable token balance fetching

* Eth wrapping/unwrapping (#38)

* Pass tx overrides to sendTransaction

* ETH wrapping/unwrapping

* Fix swap volume (#37)

* Make login persist (#39)

* Add Lock.js

* Use hardcoded name

* Fix token selector modal (#40)

* Fix token decimals in selector modal

* Set max height to token selector modal

* Cut console logging

* Set relative max height to token selector modal

* Custom token pool creation (#42)

* Show My Wallet section only when account is active

* Pool creation page

* Merge upstream (#41)

* Fix swap volume (#37)

* Make login persist (#39)

* Add Lock.js

* Use hardcoded name

* Fix token selector modal (#40)

* Fix token decimals in selector modal

* Set max height to token selector modal

* Cut console logging

* Set relative max height to token selector modal

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Create pool on button click

* Add route name

* Add custom token support to SelectToken modal

* Fix createPool action

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Refactor store and fetching (#43)

* Center search icon

* Refactor store and fetching

* Pool creation messages (#44)

* Add Error component

* Add CustomToken component

* Fix Checkbox component

* Add "error" and "custom token" messages

* Add warnings & errors for join & exit (#45)

* Align text to left in MessageError

* Add MessageWarning component

* Add MessageWarningRateChange component

* Fetch metadata for unknown tokens only

* Add warnings & errors for join & exit

* Disable action buttons on validation errors (#46)

* Fix linting

* Disable button on validation error in NewPool

* Max in / max out validation

* Fix amounts not updated on weight change

* Fix modal max height (#47)

* Show error text on input error (#48)

* Refactor web3 store (#49)

* UI (#50)

* Navigate to NewPool page

* Add "My Liquidity" section to Home page

* Cut Wallet section from Sidebar

* Add fallback Infura ID

* Update Ethers.js to v5 and remove unused deps (#51)

* Update license to GPL-3

* Update Ethers.js to v5 and remove unused deps

* Fix encode and decode

* UX fixes (#54)

* Show ETH balance

* Fix MessageCustomToken checkbox

* Handle wrong pool address

* Disable action button if some tokens are locked

* Don't fetch token metadata in NewPool page

* Fix loading indicator for SelectToken modal

* Hide "Add Liquidity" button for empty pools

* Add account modal with logout (#52)

* Replace Infura with Alchemy (#53)

* Bug fixes & improvements (#55)

* Add balance buffer to join token amounts

* Custom gas estimation

* Handle rejected transactions (don't show error)

* Fix "join tx failed" message

* Fix joinswapExternAmountIn

* Use token precision for ListToken and Sidebar

* Add Etherscan links to Pool and Token page headers

* Add "max" button to eth unwrapping

* Add margin to private pool label

* Fix hasLockedToken for single-asset join

* Disable join button if transaction failed

* Use Coingecko to fetch prices (#56)

* Use Coingecko to fetch prices

* Fix linting

* Fix ether balance not shown

* Store balances as strings

* Sort user balances by usd value

* Fix linting

* Use price store to calculate pool liquidity

* Update config.json (#58)

* Add missing whitelisted tokens

* Update trustwallet whitelist

* Split error types

* Add scam token list

* Multiple fixes (#57)

* Fix lint

* Change holder user link format

* Remove default 0.15% swap fee

* Add page pool about with controller address

* Make pool swaps table responsive

* Show all tokens with ETH and WETH on top

* Fix pie (#59)

* Add Coinbase login (#61)

* Token errors (#60)

* Disable error and scam tokens in SelectToken modal

* Hide scam pools from UI

* Cut redundant condition

* Disable join for scam tokens

* Fix content alignment in Warning/Error messages

* Custom token warning

* Add getTokenBySymbol util method

* Remove scam list

* Cut unused import

* Update CustomToken message text

* Add custom token modal

* Multiple fixes (#62)

* Add error code -32603 to isTxRejected

* Switch subgraph endpoints

* Button hover state

* Fix Pie in PoolOverview

* Fix SelectToken filtering

* Fix invalid token ids

* Clear user state on logout

* Don't show symbols for custom tokens

* Button red styling

* Fix linting

* Fix allowance call in approve action

* Use _ticker in PoolOverview

* Fix Notifications styling

* Wait for 2 confirmations before getAllowances call

* Log out on network change

* Fix token warnings (#64)

* Fix custom token warning

* Update CustomToken message text

* Add Checkbox message to whitelisted pools

* Refactor: customTokenAccept -> checkboxAccept

* Load backup provider

* Fix add liquidity (#65)

* Fix add liquidity issues

* Add token count validation to NewPool view

* Fix infinite scroll (#66)

* Refactor config and reduce bundle size (#68)

* Remove bn.js duplicates

* Add IPFS deploy

* Components import for @vue/ui

* Refactor config

* Fix scrollbar

* Add similar pools section when creating a pool (#63)

* Display similar pools

* Add holder tab count

* Use beta subgraph

* Merge develop

* Refactor validation (#67)

* Refaction input validation

* Use getTokenBySymbol util method

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Increase icon size in warning/error messages

* Update DSProxy setup message box (#71)

* Add SimilarPools message

* Use SimilarPools message on NewPool view

* Use SimilarPools message on Pool view

* Use Vue.set to update amounts in NewPool

* Make the whole row clickable in SimilarPools

* Improve UI (#69)

* Remove bn.js duplicates

* Add IPFS deploy

* Components import for @vue/ui

* Refactor config

* Fix scrollbar

* Use subgraph for liquidity

* Change primary font

* Improve UI

* Fix multi-single selector

* Remove font

* Fix wrapper firefox

* Make generic toggle

* Add token names + router fixes (#72)

* Fix Pool view throws on invalid pool address

* Load pool on url change

* Move popular assets to the top of the token list

* Add token names to config

* Fetch token names

* Show token name in SelectToken modal

* BAL Whitelist - Round 6 (#74)

* Remove LEV

* Remove PRO

* Add ALEPH

* Add ARPA

* Add ARTE

* Add CARD

* Add CUR

* Add KAI

* Add NEC

* Add uDOO

* Suggest similar pools based on weights, fee, and liquidity (#73)

* Increase icon size in warning/error messages

* Add SimilarPools message

* Use SimilarPools message on NewPool view

* Use SimilarPools message on Pool view

* Use Vue.set to update amounts in NewPool

* Make the whole row clickable in SimilarPools

* Multiple enhancements (#75)

* Pool creation limit to 8 assets

* Add creation tx, BPT and swap infos

* Fix height table loading placeholder

* Show usd swap fee

* Add holder share value

* Remove coingecko pricing (#77)

* Fix mobile add / remove liquidity

* Update bActions proxy

* Abbrev numbers and filters with url (#76)

* Display abrev numbers

* Change url on filter change

* Move ipfs-deploy to dev dep

* Remove filter key

* Fixes from master and router history

* Fix margin unlogged

* Fix link

* Change config format  (#78)

* Change config format

* Update packages

* Cut custom warnings

* UX improvements (#83)

* Add loading state to button in Create view

* Redirect to Setup view if no proxy found

* Add loading state to Wrap/Unwrap buttons

* Add validation for Wrapper inputs

* Hide pool action buttons when web3 not connected

* Add message to Checkbox

* Bump @walletconnect/web3-provider

* Hide MessageSimilarPools for private pools

* Add $info style var

* Add Slippage message

* Cut Pie from PoolOverview

* Add Icon to Slippage message

* Decrease vertical margin for several messages

* Increase max-height for UiModal

* Move messages inside Add/Remove modal body

* Pool creation: redirect user if no proxy (#90) (#91)

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Increase precision for BTC-pegged assets (#92)

* Increase precision for BTC-pegged assets

* Update addresses on Kovan

* Fix linting

* Don't keep 0x0 proxy address in store (#93)

* Cut NewPool view

* Set dsProxyAddress as '' if proxy not found

* Padlock + pool creation confirmation modal (#88)

* Padlock and price confirmation modal

* UX improvements (#83) (#87)

* Add loading state to button in Create view

* Redirect to Setup view if no proxy found

* Add loading state to Wrap/Unwrap buttons

* Add validation for Wrapper inputs

* Hide pool action buttons when web3 not connected

* Add message to Checkbox

* Bump @walletconnect/web3-provider

* Hide MessageSimilarPools for private pools

* Add $info style var

* Add Slippage message

* Cut Pie from PoolOverview

* Add Icon to Slippage message

* Decrease vertical margin for several messages

* Increase max-height for UiModal

* Move messages inside Add/Remove modal body

* Fix linting

* Update icon set

* Add lock/unlock icons for padlock

* Fix linting

* Add icon-font-generator package

* Show unlock button if allowance not enough  (#94)

* Fix getTokenLogoUrl for custom tokens

* Show unlock button if allowance not enough

* Add meta description

* Add pool metric charts (#99)

* Add lightweight-charts package

* Fetch pool metrics from subgraph

* Add Chart component (draft)

* Fix linting

* Add liquidity and APY charts

* Hide pool name on mobile

* Use _num for APY formatting + rename tab

* Disable chart scrolling by mouse wheel

* Add poolLiquidity to metrics subgraph request

* Handle fresh pools (created less than 30 days ago)

* Chart fixes

* Increase loading progress size

* Use area chart for 'fee' dataset

* Fix chart on window resize

* Restore coingecko (#100)

* Use Coingecko pricing data

* Handle coingecko outage

* Fix linting

* UX improvements (#106)

* Restore coingecko (#100)

* Use Coingecko pricing data

* Handle coingecko outage

* Fix linting

* Fix onchain token metadata fetching

* Add info about padlock on PoolCreation modal

* Show decimals for token weights

* Use utils for percentage formatting

* Add info icon

* Show BPT amount when adding liquidity

* Use _num to format values

* Fix WETH input

* Add about modal (#102)

* Add modal about

* Fix unlock button align

* Lazy load connectors and add Fortmatic (#104)

* Use png logo for connectors

* Lazy load connectors

* Add Fortmatic

* Add CRPFactory ABI

* Update BActions ABI

* Update CRPFactory and BActions addresses on Kovan

* Rename: toggleOptions -> liquidityToggleOptions

* Make checkbox blue by default

* Add createSmartPool action

* Add 'smart pool' tab on Create view

* Fix linting

* Pass default CRP params

* Add Lock Vue plugin (#108)

* Add Lock Vue plugin

* Fix loading align

* Add ConfigurableRightsPool ABI

* Update BActions address

* Fix smart pool rights

* Fix linting

* Add Lock Vue plugin (#108) (#112)

* Add Lock Vue plugin

* Fix loading align

* Update CRPFactory address

* Update abi

* Add smart pools page

* Add smart pool details

* Update BActions ABI

* Add CRP-related actions

* Update BActions address

* Add crp count

* Connect to balancer-labs/asset repo (#114)

* Autoload abi

* Fix topnav mobile

* Update Lock integration

* Connect to balancer-labs/asset repo

* Set default branch for balancer-labs/assets

* Merge dev to smartpool (#115)

* Add Lock Vue plugin (#108)

* Add Lock Vue plugin

* Fix loading align

* Connect to balancer-labs/asset repo (#114)

* Autoload abi

* Fix topnav mobile

* Update Lock integration

* Connect to balancer-labs/asset repo

* Set default branch for balancer-labs/assets

* Route smart pool management actions thru BActions

* Add page my pools and CRP infos (#116)

* Add page "My pools"

* Use svg for checkboxes

* Add CRP name symbol and controller

* Fix title

* Show error if one of the tokens is locked (#117)

* Specify assets repo branch in package lock file

* Add token name and "remove all tokens" right (#120)

* Add token name and "remove all tokens" right

* Update BActions address

* Fix values not converted in broadcast

* Add updateWeight/removeToken related calcs to math

* Revert "Merge branch 'smartpool' into develop"

This reverts commit e2bbf75, reversing
changes made to ce1ef05.

* add message for sXMR tx fail (#122)

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>
Co-authored-by: rabmarut <67169632+rabmarut@users.noreply.github.com>
Co-authored-by: bonustrack <fabien@bonustrack.co>
Co-authored-by: Mike McDonald <mikeraymcdonald@gmail.com>

* Fix error custom asset (#126)

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>
Co-authored-by: rabmarut <67169632+rabmarut@users.noreply.github.com>
Co-authored-by: bonustrack <fabien@bonustrack.co>
Co-authored-by: Mike McDonald <mikeraymcdonald@gmail.com>

* Fix ether balance in Sidebar (#131)

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>
Co-authored-by: rabmarut <67169632+rabmarut@users.noreply.github.com>
Co-authored-by: bonustrack <fabien@bonustrack.co>
Co-authored-by: Mike McDonald <mikeraymcdonald@gmail.com>
Destiner pushed a commit that referenced this pull request Sep 18, 2020
* Swap table fixes (#28)

* Fix tx in swap table

* Show minutes in swap table

* Rename swap table column to "Transaction"

* Show token tickers in swap table

* Cut method underscore prefix

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Fix getTxHashFromId

* Add WalletConnect and Portis connectors (#27)

* Refactor login

* Add walletconnect

* Add portis

* Add connect modal

* Add Portis options for kovan

* Fix walletconnect error

* Use Balancer Portis id

* Change to Balancer Infura id

* Revert

* DSProxy creation flow (#29)

* Add createProxy action

* Rename action: getProxies -> getProxy

* Add Setup view

* Add missing semicolon

* Redirect to Setup page if user has no proxy

* Add top margin to setup message block

* Disable "Setup" button during loading

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Fix linting

* Add hasProxy store getter

* Fix imports in web3 store

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Ignore .env file (#30)

* Title case buttons and headers (#31)

* Title case buttons and headers

* Change label: "Trade vol. (24h)" -> "Volume (24h)"

* Hide pie chart if conic-gradient not supported (#32)

* Fix linting

* Hide pie chart if conic-gradient not supported

* Fix add liquidity tx (#33)

* Fix add liquidity tx params

* Store user balances as strings

* Fetch token decimals and balances onchain (#34)

* Use token decimals

* Fetch pool token balances

* Load onchain token metadata (decimals)

* Don't overwrite balance store

* Hide My Wallet section

* Single-asset deposit (#35)

* Rewrite PoolOverview component

* Add PoolOverview to AddLiquidity modal

* Add SingleMultiToggle component

* Show future share only if it's available

* Add Checkbox component

* Add Radio component

* Single-asset join

* Single-asset withdraw (#36)

* Single-asset exit

* Disable token balance fetching

* Eth wrapping/unwrapping (#38)

* Pass tx overrides to sendTransaction

* ETH wrapping/unwrapping

* Fix swap volume (#37)

* Make login persist (#39)

* Add Lock.js

* Use hardcoded name

* Fix token selector modal (#40)

* Fix token decimals in selector modal

* Set max height to token selector modal

* Cut console logging

* Set relative max height to token selector modal

* Custom token pool creation (#42)

* Show My Wallet section only when account is active

* Pool creation page

* Merge upstream (#41)

* Fix swap volume (#37)

* Make login persist (#39)

* Add Lock.js

* Use hardcoded name

* Fix token selector modal (#40)

* Fix token decimals in selector modal

* Set max height to token selector modal

* Cut console logging

* Set relative max height to token selector modal

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Create pool on button click

* Add route name

* Add custom token support to SelectToken modal

* Fix createPool action

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Refactor store and fetching (#43)

* Center search icon

* Refactor store and fetching

* Pool creation messages (#44)

* Add Error component

* Add CustomToken component

* Fix Checkbox component

* Add "error" and "custom token" messages

* Add warnings & errors for join & exit (#45)

* Align text to left in MessageError

* Add MessageWarning component

* Add MessageWarningRateChange component

* Fetch metadata for unknown tokens only

* Add warnings & errors for join & exit

* Disable action buttons on validation errors (#46)

* Fix linting

* Disable button on validation error in NewPool

* Max in / max out validation

* Fix amounts not updated on weight change

* Fix modal max height (#47)

* Show error text on input error (#48)

* Refactor web3 store (#49)

* UI (#50)

* Navigate to NewPool page

* Add "My Liquidity" section to Home page

* Cut Wallet section from Sidebar

* Add fallback Infura ID

* Update Ethers.js to v5 and remove unused deps (#51)

* Update license to GPL-3

* Update Ethers.js to v5 and remove unused deps

* Fix encode and decode

* UX fixes (#54)

* Show ETH balance

* Fix MessageCustomToken checkbox

* Handle wrong pool address

* Disable action button if some tokens are locked

* Don't fetch token metadata in NewPool page

* Fix loading indicator for SelectToken modal

* Hide "Add Liquidity" button for empty pools

* Add account modal with logout (#52)

* Replace Infura with Alchemy (#53)

* Bug fixes & improvements (#55)

* Add balance buffer to join token amounts

* Custom gas estimation

* Handle rejected transactions (don't show error)

* Fix "join tx failed" message

* Fix joinswapExternAmountIn

* Use token precision for ListToken and Sidebar

* Add Etherscan links to Pool and Token page headers

* Add "max" button to eth unwrapping

* Add margin to private pool label

* Fix hasLockedToken for single-asset join

* Disable join button if transaction failed

* Use Coingecko to fetch prices (#56)

* Use Coingecko to fetch prices

* Fix linting

* Fix ether balance not shown

* Store balances as strings

* Sort user balances by usd value

* Fix linting

* Use price store to calculate pool liquidity

* Update config.json (#58)

* Add missing whitelisted tokens

* Update trustwallet whitelist

* Split error types

* Add scam token list

* Multiple fixes (#57)

* Fix lint

* Change holder user link format

* Remove default 0.15% swap fee

* Add page pool about with controller address

* Make pool swaps table responsive

* Show all tokens with ETH and WETH on top

* Fix pie (#59)

* Add Coinbase login (#61)

* Token errors (#60)

* Disable error and scam tokens in SelectToken modal

* Hide scam pools from UI

* Cut redundant condition

* Disable join for scam tokens

* Fix content alignment in Warning/Error messages

* Custom token warning

* Add getTokenBySymbol util method

* Remove scam list

* Cut unused import

* Update CustomToken message text

* Add custom token modal

* Multiple fixes (#62)

* Add error code -32603 to isTxRejected

* Switch subgraph endpoints

* Button hover state

* Fix Pie in PoolOverview

* Fix SelectToken filtering

* Fix invalid token ids

* Clear user state on logout

* Don't show symbols for custom tokens

* Button red styling

* Fix linting

* Fix allowance call in approve action

* Use _ticker in PoolOverview

* Fix Notifications styling

* Wait for 2 confirmations before getAllowances call

* Log out on network change

* Fix token warnings (#64)

* Fix custom token warning

* Update CustomToken message text

* Add Checkbox message to whitelisted pools

* Refactor: customTokenAccept -> checkboxAccept

* Load backup provider

* Fix add liquidity (#65)

* Fix add liquidity issues

* Add token count validation to NewPool view

* Fix infinite scroll (#66)

* Refactor config and reduce bundle size (#68)

* Remove bn.js duplicates

* Add IPFS deploy

* Components import for @vue/ui

* Refactor config

* Fix scrollbar

* Add similar pools section when creating a pool (#63)

* Display similar pools

* Add holder tab count

* Use beta subgraph

* Merge develop

* Refactor validation (#67)

* Refaction input validation

* Use getTokenBySymbol util method

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Increase icon size in warning/error messages

* Update DSProxy setup message box (#71)

* Add SimilarPools message

* Use SimilarPools message on NewPool view

* Use SimilarPools message on Pool view

* Use Vue.set to update amounts in NewPool

* Make the whole row clickable in SimilarPools

* Improve UI (#69)

* Remove bn.js duplicates

* Add IPFS deploy

* Components import for @vue/ui

* Refactor config

* Fix scrollbar

* Use subgraph for liquidity

* Change primary font

* Improve UI

* Fix multi-single selector

* Remove font

* Fix wrapper firefox

* Make generic toggle

* Add token names + router fixes (#72)

* Fix Pool view throws on invalid pool address

* Load pool on url change

* Move popular assets to the top of the token list

* Add token names to config

* Fetch token names

* Show token name in SelectToken modal

* BAL Whitelist - Round 6 (#74)

* Remove LEV

* Remove PRO

* Add ALEPH

* Add ARPA

* Add ARTE

* Add CARD

* Add CUR

* Add KAI

* Add NEC

* Add uDOO

* Suggest similar pools based on weights, fee, and liquidity (#73)

* Increase icon size in warning/error messages

* Add SimilarPools message

* Use SimilarPools message on NewPool view

* Use SimilarPools message on Pool view

* Use Vue.set to update amounts in NewPool

* Make the whole row clickable in SimilarPools

* Multiple enhancements (#75)

* Pool creation limit to 8 assets

* Add creation tx, BPT and swap infos

* Fix height table loading placeholder

* Show usd swap fee

* Add holder share value

* Remove coingecko pricing (#77)

* Fix mobile add / remove liquidity

* Update bActions proxy

* Abbrev numbers and filters with url (#76)

* Display abrev numbers

* Change url on filter change

* Move ipfs-deploy to dev dep

* Remove filter key

* Fixes from master and router history

* Fix margin unlogged

* Fix link

* Change config format  (#78)

* Change config format

* Update packages

* Cut custom warnings

* UX improvements (#83)

* Add loading state to button in Create view

* Redirect to Setup view if no proxy found

* Add loading state to Wrap/Unwrap buttons

* Add validation for Wrapper inputs

* Hide pool action buttons when web3 not connected

* Add message to Checkbox

* Bump @walletconnect/web3-provider

* Hide MessageSimilarPools for private pools

* Add $info style var

* Add Slippage message

* Cut Pie from PoolOverview

* Add Icon to Slippage message

* Decrease vertical margin for several messages

* Increase max-height for UiModal

* Move messages inside Add/Remove modal body

* Pool creation: redirect user if no proxy (#90) (#91)

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Increase precision for BTC-pegged assets (#92)

* Increase precision for BTC-pegged assets

* Update addresses on Kovan

* Fix linting

* Don't keep 0x0 proxy address in store (#93)

* Cut NewPool view

* Set dsProxyAddress as '' if proxy not found

* Padlock + pool creation confirmation modal (#88)

* Padlock and price confirmation modal

* UX improvements (#83) (#87)

* Add loading state to button in Create view

* Redirect to Setup view if no proxy found

* Add loading state to Wrap/Unwrap buttons

* Add validation for Wrapper inputs

* Hide pool action buttons when web3 not connected

* Add message to Checkbox

* Bump @walletconnect/web3-provider

* Hide MessageSimilarPools for private pools

* Add $info style var

* Add Slippage message

* Cut Pie from PoolOverview

* Add Icon to Slippage message

* Decrease vertical margin for several messages

* Increase max-height for UiModal

* Move messages inside Add/Remove modal body

* Fix linting

* Update icon set

* Add lock/unlock icons for padlock

* Fix linting

* Add icon-font-generator package

* Show unlock button if allowance not enough  (#94)

* Fix getTokenLogoUrl for custom tokens

* Show unlock button if allowance not enough

* Add meta description

* Add pool metric charts (#99)

* Add lightweight-charts package

* Fetch pool metrics from subgraph

* Add Chart component (draft)

* Fix linting

* Add liquidity and APY charts

* Hide pool name on mobile

* Use _num for APY formatting + rename tab

* Disable chart scrolling by mouse wheel

* Add poolLiquidity to metrics subgraph request

* Handle fresh pools (created less than 30 days ago)

* Chart fixes

* Increase loading progress size

* Use area chart for 'fee' dataset

* Fix chart on window resize

* Restore coingecko (#100)

* Use Coingecko pricing data

* Handle coingecko outage

* Fix linting

* UX improvements (#106)

* Restore coingecko (#100)

* Use Coingecko pricing data

* Handle coingecko outage

* Fix linting

* Fix onchain token metadata fetching

* Add info about padlock on PoolCreation modal

* Show decimals for token weights

* Use utils for percentage formatting

* Add info icon

* Show BPT amount when adding liquidity

* Use _num to format values

* Fix WETH input

* Add about modal (#102)

* Add modal about

* Fix unlock button align

* Lazy load connectors and add Fortmatic (#104)

* Use png logo for connectors

* Lazy load connectors

* Add Fortmatic

* Add CRPFactory ABI

* Update BActions ABI

* Update CRPFactory and BActions addresses on Kovan

* Rename: toggleOptions -> liquidityToggleOptions

* Make checkbox blue by default

* Add createSmartPool action

* Add 'smart pool' tab on Create view

* Fix linting

* Pass default CRP params

* Add Lock Vue plugin (#108)

* Add Lock Vue plugin

* Fix loading align

* Add ConfigurableRightsPool ABI

* Update BActions address

* Fix smart pool rights

* Fix linting

* Add Lock Vue plugin (#108) (#112)

* Add Lock Vue plugin

* Fix loading align

* Update CRPFactory address

* Update abi

* Add smart pools page

* Add smart pool details

* Update BActions ABI

* Add CRP-related actions

* Update BActions address

* Add crp count

* Connect to balancer-labs/asset repo (#114)

* Autoload abi

* Fix topnav mobile

* Update Lock integration

* Connect to balancer-labs/asset repo

* Set default branch for balancer-labs/assets

* Merge dev to smartpool (#115)

* Add Lock Vue plugin (#108)

* Add Lock Vue plugin

* Fix loading align

* Connect to balancer-labs/asset repo (#114)

* Autoload abi

* Fix topnav mobile

* Update Lock integration

* Connect to balancer-labs/asset repo

* Set default branch for balancer-labs/assets

* Route smart pool management actions thru BActions

* Add page my pools and CRP infos (#116)

* Add page "My pools"

* Use svg for checkboxes

* Add CRP name symbol and controller

* Fix title

* Show error if one of the tokens is locked (#117)

* Specify assets repo branch in package lock file

* Add token name and "remove all tokens" right (#120)

* Add token name and "remove all tokens" right

* Update BActions address

* Fix values not converted in broadcast

* Add updateWeight/removeToken related calcs to math

* Revert "Merge branch 'smartpool' into develop"

This reverts commit e2bbf75, reversing
changes made to ce1ef05.

* add message for sXMR tx fail (#122)

* Fix charts in case there's no data for some days (#128)

* Merge upstream (#130)

* Fix fetch token list from assets repo + sXMR message (#124)

* Swap table fixes (#28)

* Fix tx in swap table

* Show minutes in swap table

* Rename swap table column to "Transaction"

* Show token tickers in swap table

* Cut method underscore prefix

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Fix getTxHashFromId

* Add WalletConnect and Portis connectors (#27)

* Refactor login

* Add walletconnect

* Add portis

* Add connect modal

* Add Portis options for kovan

* Fix walletconnect error

* Use Balancer Portis id

* Change to Balancer Infura id

* Revert

* DSProxy creation flow (#29)

* Add createProxy action

* Rename action: getProxies -> getProxy

* Add Setup view

* Add missing semicolon

* Redirect to Setup page if user has no proxy

* Add top margin to setup message block

* Disable "Setup" button during loading

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Fix linting

* Add hasProxy store getter

* Fix imports in web3 store

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Ignore .env file (#30)

* Title case buttons and headers (#31)

* Title case buttons and headers

* Change label: "Trade vol. (24h)" -> "Volume (24h)"

* Hide pie chart if conic-gradient not supported (#32)

* Fix linting

* Hide pie chart if conic-gradient not supported

* Fix add liquidity tx (#33)

* Fix add liquidity tx params

* Store user balances as strings

* Fetch token decimals and balances onchain (#34)

* Use token decimals

* Fetch pool token balances

* Load onchain token metadata (decimals)

* Don't overwrite balance store

* Hide My Wallet section

* Single-asset deposit (#35)

* Rewrite PoolOverview component

* Add PoolOverview to AddLiquidity modal

* Add SingleMultiToggle component

* Show future share only if it's available

* Add Checkbox component

* Add Radio component

* Single-asset join

* Single-asset withdraw (#36)

* Single-asset exit

* Disable token balance fetching

* Eth wrapping/unwrapping (#38)

* Pass tx overrides to sendTransaction

* ETH wrapping/unwrapping

* Fix swap volume (#37)

* Make login persist (#39)

* Add Lock.js

* Use hardcoded name

* Fix token selector modal (#40)

* Fix token decimals in selector modal

* Set max height to token selector modal

* Cut console logging

* Set relative max height to token selector modal

* Custom token pool creation (#42)

* Show My Wallet section only when account is active

* Pool creation page

* Merge upstream (#41)

* Fix swap volume (#37)

* Make login persist (#39)

* Add Lock.js

* Use hardcoded name

* Fix token selector modal (#40)

* Fix token decimals in selector modal

* Set max height to token selector modal

* Cut console logging

* Set relative max height to token selector modal

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Create pool on button click

* Add route name

* Add custom token support to SelectToken modal

* Fix createPool action

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Refactor store and fetching (#43)

* Center search icon

* Refactor store and fetching

* Pool creation messages (#44)

* Add Error component

* Add CustomToken component

* Fix Checkbox component

* Add "error" and "custom token" messages

* Add warnings & errors for join & exit (#45)

* Align text to left in MessageError

* Add MessageWarning component

* Add MessageWarningRateChange component

* Fetch metadata for unknown tokens only

* Add warnings & errors for join & exit

* Disable action buttons on validation errors (#46)

* Fix linting

* Disable button on validation error in NewPool

* Max in / max out validation

* Fix amounts not updated on weight change

* Fix modal max height (#47)

* Show error text on input error (#48)

* Refactor web3 store (#49)

* UI (#50)

* Navigate to NewPool page

* Add "My Liquidity" section to Home page

* Cut Wallet section from Sidebar

* Add fallback Infura ID

* Update Ethers.js to v5 and remove unused deps (#51)

* Update license to GPL-3

* Update Ethers.js to v5 and remove unused deps

* Fix encode and decode

* UX fixes (#54)

* Show ETH balance

* Fix MessageCustomToken checkbox

* Handle wrong pool address

* Disable action button if some tokens are locked

* Don't fetch token metadata in NewPool page

* Fix loading indicator for SelectToken modal

* Hide "Add Liquidity" button for empty pools

* Add account modal with logout (#52)

* Replace Infura with Alchemy (#53)

* Bug fixes & improvements (#55)

* Add balance buffer to join token amounts

* Custom gas estimation

* Handle rejected transactions (don't show error)

* Fix "join tx failed" message

* Fix joinswapExternAmountIn

* Use token precision for ListToken and Sidebar

* Add Etherscan links to Pool and Token page headers

* Add "max" button to eth unwrapping

* Add margin to private pool label

* Fix hasLockedToken for single-asset join

* Disable join button if transaction failed

* Use Coingecko to fetch prices (#56)

* Use Coingecko to fetch prices

* Fix linting

* Fix ether balance not shown

* Store balances as strings

* Sort user balances by usd value

* Fix linting

* Use price store to calculate pool liquidity

* Update config.json (#58)

* Add missing whitelisted tokens

* Update trustwallet whitelist

* Split error types

* Add scam token list

* Multiple fixes (#57)

* Fix lint

* Change holder user link format

* Remove default 0.15% swap fee

* Add page pool about with controller address

* Make pool swaps table responsive

* Show all tokens with ETH and WETH on top

* Fix pie (#59)

* Add Coinbase login (#61)

* Token errors (#60)

* Disable error and scam tokens in SelectToken modal

* Hide scam pools from UI

* Cut redundant condition

* Disable join for scam tokens

* Fix content alignment in Warning/Error messages

* Custom token warning

* Add getTokenBySymbol util method

* Remove scam list

* Cut unused import

* Update CustomToken message text

* Add custom token modal

* Multiple fixes (#62)

* Add error code -32603 to isTxRejected

* Switch subgraph endpoints

* Button hover state

* Fix Pie in PoolOverview

* Fix SelectToken filtering

* Fix invalid token ids

* Clear user state on logout

* Don't show symbols for custom tokens

* Button red styling

* Fix linting

* Fix allowance call in approve action

* Use _ticker in PoolOverview

* Fix Notifications styling

* Wait for 2 confirmations before getAllowances call

* Log out on network change

* Fix token warnings (#64)

* Fix custom token warning

* Update CustomToken message text

* Add Checkbox message to whitelisted pools

* Refactor: customTokenAccept -> checkboxAccept

* Load backup provider

* Fix add liquidity (#65)

* Fix add liquidity issues

* Add token count validation to NewPool view

* Fix infinite scroll (#66)

* Refactor config and reduce bundle size (#68)

* Remove bn.js duplicates

* Add IPFS deploy

* Components import for @vue/ui

* Refactor config

* Fix scrollbar

* Add similar pools section when creating a pool (#63)

* Display similar pools

* Add holder tab count

* Use beta subgraph

* Merge develop

* Refactor validation (#67)

* Refaction input validation

* Use getTokenBySymbol util method

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Increase icon size in warning/error messages

* Update DSProxy setup message box (#71)

* Add SimilarPools message

* Use SimilarPools message on NewPool view

* Use SimilarPools message on Pool view

* Use Vue.set to update amounts in NewPool

* Make the whole row clickable in SimilarPools

* Improve UI (#69)

* Remove bn.js duplicates

* Add IPFS deploy

* Components import for @vue/ui

* Refactor config

* Fix scrollbar

* Use subgraph for liquidity

* Change primary font

* Improve UI

* Fix multi-single selector

* Remove font

* Fix wrapper firefox

* Make generic toggle

* Add token names + router fixes (#72)

* Fix Pool view throws on invalid pool address

* Load pool on url change

* Move popular assets to the top of the token list

* Add token names to config

* Fetch token names

* Show token name in SelectToken modal

* BAL Whitelist - Round 6 (#74)

* Remove LEV

* Remove PRO

* Add ALEPH

* Add ARPA

* Add ARTE

* Add CARD

* Add CUR

* Add KAI

* Add NEC

* Add uDOO

* Suggest similar pools based on weights, fee, and liquidity (#73)

* Increase icon size in warning/error messages

* Add SimilarPools message

* Use SimilarPools message on NewPool view

* Use SimilarPools message on Pool view

* Use Vue.set to update amounts in NewPool

* Make the whole row clickable in SimilarPools

* Multiple enhancements (#75)

* Pool creation limit to 8 assets

* Add creation tx, BPT and swap infos

* Fix height table loading placeholder

* Show usd swap fee

* Add holder share value

* Remove coingecko pricing (#77)

* Fix mobile add / remove liquidity

* Update bActions proxy

* Abbrev numbers and filters with url (#76)

* Display abrev numbers

* Change url on filter change

* Move ipfs-deploy to dev dep

* Remove filter key

* Fixes from master and router history

* Fix margin unlogged

* Fix link

* Change config format  (#78)

* Change config format

* Update packages

* Cut custom warnings

* UX improvements (#83)

* Add loading state to button in Create view

* Redirect to Setup view if no proxy found

* Add loading state to Wrap/Unwrap buttons

* Add validation for Wrapper inputs

* Hide pool action buttons when web3 not connected

* Add message to Checkbox

* Bump @walletconnect/web3-provider

* Hide MessageSimilarPools for private pools

* Add $info style var

* Add Slippage message

* Cut Pie from PoolOverview

* Add Icon to Slippage message

* Decrease vertical margin for several messages

* Increase max-height for UiModal

* Move messages inside Add/Remove modal body

* Pool creation: redirect user if no proxy (#90) (#91)

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Increase precision for BTC-pegged assets (#92)

* Increase precision for BTC-pegged assets

* Update addresses on Kovan

* Fix linting

* Don't keep 0x0 proxy address in store (#93)

* Cut NewPool view

* Set dsProxyAddress as '' if proxy not found

* Padlock + pool creation confirmation modal (#88)

* Padlock and price confirmation modal

* UX improvements (#83) (#87)

* Add loading state to button in Create view

* Redirect to Setup view if no proxy found

* Add loading state to Wrap/Unwrap buttons

* Add validation for Wrapper inputs

* Hide pool action buttons when web3 not connected

* Add message to Checkbox

* Bump @walletconnect/web3-provider

* Hide MessageSimilarPools for private pools

* Add $info style var

* Add Slippage message

* Cut Pie from PoolOverview

* Add Icon to Slippage message

* Decrease vertical margin for several messages

* Increase max-height for UiModal

* Move messages inside Add/Remove modal body

* Fix linting

* Update icon set

* Add lock/unlock icons for padlock

* Fix linting

* Add icon-font-generator package

* Show unlock button if allowance not enough  (#94)

* Fix getTokenLogoUrl for custom tokens

* Show unlock button if allowance not enough

* Add meta description

* Add pool metric charts (#99)

* Add lightweight-charts package

* Fetch pool metrics from subgraph

* Add Chart component (draft)

* Fix linting

* Add liquidity and APY charts

* Hide pool name on mobile

* Use _num for APY formatting + rename tab

* Disable chart scrolling by mouse wheel

* Add poolLiquidity to metrics subgraph request

* Handle fresh pools (created less than 30 days ago)

* Chart fixes

* Increase loading progress size

* Use area chart for 'fee' dataset

* Fix chart on window resize

* Restore coingecko (#100)

* Use Coingecko pricing data

* Handle coingecko outage

* Fix linting

* UX improvements (#106)

* Restore coingecko (#100)

* Use Coingecko pricing data

* Handle coingecko outage

* Fix linting

* Fix onchain token metadata fetching

* Add info about padlock on PoolCreation modal

* Show decimals for token weights

* Use utils for percentage formatting

* Add info icon

* Show BPT amount when adding liquidity

* Use _num to format values

* Fix WETH input

* Add about modal (#102)

* Add modal about

* Fix unlock button align

* Lazy load connectors and add Fortmatic (#104)

* Use png logo for connectors

* Lazy load connectors

* Add Fortmatic

* Add CRPFactory ABI

* Update BActions ABI

* Update CRPFactory and BActions addresses on Kovan

* Rename: toggleOptions -> liquidityToggleOptions

* Make checkbox blue by default

* Add createSmartPool action

* Add 'smart pool' tab on Create view

* Fix linting

* Pass default CRP params

* Add Lock Vue plugin (#108)

* Add Lock Vue plugin

* Fix loading align

* Add ConfigurableRightsPool ABI

* Update BActions address

* Fix smart pool rights

* Fix linting

* Add Lock Vue plugin (#108) (#112)

* Add Lock Vue plugin

* Fix loading align

* Update CRPFactory address

* Update abi

* Add smart pools page

* Add smart pool details

* Update BActions ABI

* Add CRP-related actions

* Update BActions address

* Add crp count

* Connect to balancer-labs/asset repo (#114)

* Autoload abi

* Fix topnav mobile

* Update Lock integration

* Connect to balancer-labs/asset repo

* Set default branch for balancer-labs/assets

* Merge dev to smartpool (#115)

* Add Lock Vue plugin (#108)

* Add Lock Vue plugin

* Fix loading align

* Connect to balancer-labs/asset repo (#114)

* Autoload abi

* Fix topnav mobile

* Update Lock integration

* Connect to balancer-labs/asset repo

* Set default branch for balancer-labs/assets

* Route smart pool management actions thru BActions

* Add page my pools and CRP infos (#116)

* Add page "My pools"

* Use svg for checkboxes

* Add CRP name symbol and controller

* Fix title

* Show error if one of the tokens is locked (#117)

* Specify assets repo branch in package lock file

* Add token name and "remove all tokens" right (#120)

* Add token name and "remove all tokens" right

* Update BActions address

* Fix values not converted in broadcast

* Add updateWeight/removeToken related calcs to math

* Revert "Merge branch 'smartpool' into develop"

This reverts commit e2bbf75, reversing
changes made to ce1ef05.

* add message for sXMR tx fail (#122)

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>
Co-authored-by: rabmarut <67169632+rabmarut@users.noreply.github.com>
Co-authored-by: bonustrack <fabien@bonustrack.co>
Co-authored-by: Mike McDonald <mikeraymcdonald@gmail.com>

* Fix error custom asset (#126)

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>
Co-authored-by: rabmarut <67169632+rabmarut@users.noreply.github.com>
Co-authored-by: bonustrack <fabien@bonustrack.co>
Co-authored-by: Mike McDonald <mikeraymcdonald@gmail.com>

* Fix ether balance in Sidebar (#131)

* Query BPT balance from node (#133)

* Show token amount out even if BPT amount > balance (#135)

* Show token amount out even if BPT amount > balance

* Fix crash when withdrawing 100% in single-asset

* Fetch BPT total supply onchain (#137)

* Cut redundant import

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>
Co-authored-by: rabmarut <67169632+rabmarut@users.noreply.github.com>
Co-authored-by: bonustrack <fabien@bonustrack.co>
Co-authored-by: Mike McDonald <mikeraymcdonald@gmail.com>
bonustrack added a commit that referenced this pull request Sep 25, 2020
* Swap table fixes (#28)

* Fix tx in swap table

* Show minutes in swap table

* Rename swap table column to "Transaction"

* Show token tickers in swap table

* Cut method underscore prefix

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Fix getTxHashFromId

* Add WalletConnect and Portis connectors (#27)

* Refactor login

* Add walletconnect

* Add portis

* Add connect modal

* Add Portis options for kovan

* Fix walletconnect error

* Use Balancer Portis id

* Change to Balancer Infura id

* Revert

* DSProxy creation flow (#29)

* Add createProxy action

* Rename action: getProxies -> getProxy

* Add Setup view

* Add missing semicolon

* Redirect to Setup page if user has no proxy

* Add top margin to setup message block

* Disable "Setup" button during loading

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Fix linting

* Add hasProxy store getter

* Fix imports in web3 store

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Ignore .env file (#30)

* Title case buttons and headers (#31)

* Title case buttons and headers

* Change label: "Trade vol. (24h)" -> "Volume (24h)"

* Hide pie chart if conic-gradient not supported (#32)

* Fix linting

* Hide pie chart if conic-gradient not supported

* Fix add liquidity tx (#33)

* Fix add liquidity tx params

* Store user balances as strings

* Fetch token decimals and balances onchain (#34)

* Use token decimals

* Fetch pool token balances

* Load onchain token metadata (decimals)

* Don't overwrite balance store

* Hide My Wallet section

* Single-asset deposit (#35)

* Rewrite PoolOverview component

* Add PoolOverview to AddLiquidity modal

* Add SingleMultiToggle component

* Show future share only if it's available

* Add Checkbox component

* Add Radio component

* Single-asset join

* Single-asset withdraw (#36)

* Single-asset exit

* Disable token balance fetching

* Eth wrapping/unwrapping (#38)

* Pass tx overrides to sendTransaction

* ETH wrapping/unwrapping

* Fix swap volume (#37)

* Make login persist (#39)

* Add Lock.js

* Use hardcoded name

* Fix token selector modal (#40)

* Fix token decimals in selector modal

* Set max height to token selector modal

* Cut console logging

* Set relative max height to token selector modal

* Custom token pool creation (#42)

* Show My Wallet section only when account is active

* Pool creation page

* Merge upstream (#41)

* Fix swap volume (#37)

* Make login persist (#39)

* Add Lock.js

* Use hardcoded name

* Fix token selector modal (#40)

* Fix token decimals in selector modal

* Set max height to token selector modal

* Cut console logging

* Set relative max height to token selector modal

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Create pool on button click

* Add route name

* Add custom token support to SelectToken modal

* Fix createPool action

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Refactor store and fetching (#43)

* Center search icon

* Refactor store and fetching

* Pool creation messages (#44)

* Add Error component

* Add CustomToken component

* Fix Checkbox component

* Add "error" and "custom token" messages

* Add warnings & errors for join & exit (#45)

* Align text to left in MessageError

* Add MessageWarning component

* Add MessageWarningRateChange component

* Fetch metadata for unknown tokens only

* Add warnings & errors for join & exit

* Disable action buttons on validation errors (#46)

* Fix linting

* Disable button on validation error in NewPool

* Max in / max out validation

* Fix amounts not updated on weight change

* Fix modal max height (#47)

* Show error text on input error (#48)

* Refactor web3 store (#49)

* UI (#50)

* Navigate to NewPool page

* Add "My Liquidity" section to Home page

* Cut Wallet section from Sidebar

* Add fallback Infura ID

* Update Ethers.js to v5 and remove unused deps (#51)

* Update license to GPL-3

* Update Ethers.js to v5 and remove unused deps

* Fix encode and decode

* UX fixes (#54)

* Show ETH balance

* Fix MessageCustomToken checkbox

* Handle wrong pool address

* Disable action button if some tokens are locked

* Don't fetch token metadata in NewPool page

* Fix loading indicator for SelectToken modal

* Hide "Add Liquidity" button for empty pools

* Add account modal with logout (#52)

* Replace Infura with Alchemy (#53)

* Bug fixes & improvements (#55)

* Add balance buffer to join token amounts

* Custom gas estimation

* Handle rejected transactions (don't show error)

* Fix "join tx failed" message

* Fix joinswapExternAmountIn

* Use token precision for ListToken and Sidebar

* Add Etherscan links to Pool and Token page headers

* Add "max" button to eth unwrapping

* Add margin to private pool label

* Fix hasLockedToken for single-asset join

* Disable join button if transaction failed

* Use Coingecko to fetch prices (#56)

* Use Coingecko to fetch prices

* Fix linting

* Fix ether balance not shown

* Store balances as strings

* Sort user balances by usd value

* Fix linting

* Use price store to calculate pool liquidity

* Update config.json (#58)

* Add missing whitelisted tokens

* Update trustwallet whitelist

* Split error types

* Add scam token list

* Multiple fixes (#57)

* Fix lint

* Change holder user link format

* Remove default 0.15% swap fee

* Add page pool about with controller address

* Make pool swaps table responsive

* Show all tokens with ETH and WETH on top

* Fix pie (#59)

* Add Coinbase login (#61)

* Token errors (#60)

* Disable error and scam tokens in SelectToken modal

* Hide scam pools from UI

* Cut redundant condition

* Disable join for scam tokens

* Fix content alignment in Warning/Error messages

* Custom token warning

* Add getTokenBySymbol util method

* Remove scam list

* Cut unused import

* Update CustomToken message text

* Add custom token modal

* Multiple fixes (#62)

* Add error code -32603 to isTxRejected

* Switch subgraph endpoints

* Button hover state

* Fix Pie in PoolOverview

* Fix SelectToken filtering

* Fix invalid token ids

* Clear user state on logout

* Don't show symbols for custom tokens

* Button red styling

* Fix linting

* Fix allowance call in approve action

* Use _ticker in PoolOverview

* Fix Notifications styling

* Wait for 2 confirmations before getAllowances call

* Log out on network change

* Fix token warnings (#64)

* Fix custom token warning

* Update CustomToken message text

* Add Checkbox message to whitelisted pools

* Refactor: customTokenAccept -> checkboxAccept

* Load backup provider

* Fix add liquidity (#65)

* Fix add liquidity issues

* Add token count validation to NewPool view

* Fix infinite scroll (#66)

* Refactor config and reduce bundle size (#68)

* Remove bn.js duplicates

* Add IPFS deploy

* Components import for @vue/ui

* Refactor config

* Fix scrollbar

* Add similar pools section when creating a pool (#63)

* Display similar pools

* Add holder tab count

* Use beta subgraph

* Merge develop

* Refactor validation (#67)

* Refaction input validation

* Use getTokenBySymbol util method

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Increase icon size in warning/error messages

* Update DSProxy setup message box (#71)

* Add SimilarPools message

* Use SimilarPools message on NewPool view

* Use SimilarPools message on Pool view

* Use Vue.set to update amounts in NewPool

* Make the whole row clickable in SimilarPools

* Improve UI (#69)

* Remove bn.js duplicates

* Add IPFS deploy

* Components import for @vue/ui

* Refactor config

* Fix scrollbar

* Use subgraph for liquidity

* Change primary font

* Improve UI

* Fix multi-single selector

* Remove font

* Fix wrapper firefox

* Make generic toggle

* Add token names + router fixes (#72)

* Fix Pool view throws on invalid pool address

* Load pool on url change

* Move popular assets to the top of the token list

* Add token names to config

* Fetch token names

* Show token name in SelectToken modal

* BAL Whitelist - Round 6 (#74)

* Remove LEV

* Remove PRO

* Add ALEPH

* Add ARPA

* Add ARTE

* Add CARD

* Add CUR

* Add KAI

* Add NEC

* Add uDOO

* Suggest similar pools based on weights, fee, and liquidity (#73)

* Increase icon size in warning/error messages

* Add SimilarPools message

* Use SimilarPools message on NewPool view

* Use SimilarPools message on Pool view

* Use Vue.set to update amounts in NewPool

* Make the whole row clickable in SimilarPools

* Multiple enhancements (#75)

* Pool creation limit to 8 assets

* Add creation tx, BPT and swap infos

* Fix height table loading placeholder

* Show usd swap fee

* Add holder share value

* Remove coingecko pricing (#77)

* Fix mobile add / remove liquidity

* Update bActions proxy

* Abbrev numbers and filters with url (#76)

* Display abrev numbers

* Change url on filter change

* Move ipfs-deploy to dev dep

* Remove filter key

* Fixes from master and router history

* Fix margin unlogged

* Fix link

* Change config format  (#78)

* Change config format

* Update packages

* Cut custom warnings

* UX improvements (#83)

* Add loading state to button in Create view

* Redirect to Setup view if no proxy found

* Add loading state to Wrap/Unwrap buttons

* Add validation for Wrapper inputs

* Hide pool action buttons when web3 not connected

* Add message to Checkbox

* Bump @walletconnect/web3-provider

* Hide MessageSimilarPools for private pools

* Add $info style var

* Add Slippage message

* Cut Pie from PoolOverview

* Add Icon to Slippage message

* Decrease vertical margin for several messages

* Increase max-height for UiModal

* Move messages inside Add/Remove modal body

* Pool creation: redirect user if no proxy (#90) (#91)

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Increase precision for BTC-pegged assets (#92)

* Increase precision for BTC-pegged assets

* Update addresses on Kovan

* Fix linting

* Don't keep 0x0 proxy address in store (#93)

* Cut NewPool view

* Set dsProxyAddress as '' if proxy not found

* Padlock + pool creation confirmation modal (#88)

* Padlock and price confirmation modal

* UX improvements (#83) (#87)

* Add loading state to button in Create view

* Redirect to Setup view if no proxy found

* Add loading state to Wrap/Unwrap buttons

* Add validation for Wrapper inputs

* Hide pool action buttons when web3 not connected

* Add message to Checkbox

* Bump @walletconnect/web3-provider

* Hide MessageSimilarPools for private pools

* Add $info style var

* Add Slippage message

* Cut Pie from PoolOverview

* Add Icon to Slippage message

* Decrease vertical margin for several messages

* Increase max-height for UiModal

* Move messages inside Add/Remove modal body

* Fix linting

* Update icon set

* Add lock/unlock icons for padlock

* Fix linting

* Add icon-font-generator package

* Show unlock button if allowance not enough  (#94)

* Fix getTokenLogoUrl for custom tokens

* Show unlock button if allowance not enough

* Add meta description

* Add pool metric charts (#99)

* Add lightweight-charts package

* Fetch pool metrics from subgraph

* Add Chart component (draft)

* Fix linting

* Add liquidity and APY charts

* Hide pool name on mobile

* Use _num for APY formatting + rename tab

* Disable chart scrolling by mouse wheel

* Add poolLiquidity to metrics subgraph request

* Handle fresh pools (created less than 30 days ago)

* Chart fixes

* Increase loading progress size

* Use area chart for 'fee' dataset

* Fix chart on window resize

* Restore coingecko (#100)

* Use Coingecko pricing data

* Handle coingecko outage

* Fix linting

* UX improvements (#106)

* Restore coingecko (#100)

* Use Coingecko pricing data

* Handle coingecko outage

* Fix linting

* Fix onchain token metadata fetching

* Add info about padlock on PoolCreation modal

* Show decimals for token weights

* Use utils for percentage formatting

* Add info icon

* Show BPT amount when adding liquidity

* Use _num to format values

* Fix WETH input

* Add about modal (#102)

* Add modal about

* Fix unlock button align

* Lazy load connectors and add Fortmatic (#104)

* Use png logo for connectors

* Lazy load connectors

* Add Fortmatic

* Add CRPFactory ABI

* Update BActions ABI

* Update CRPFactory and BActions addresses on Kovan

* Rename: toggleOptions -> liquidityToggleOptions

* Make checkbox blue by default

* Add createSmartPool action

* Add 'smart pool' tab on Create view

* Fix linting

* Pass default CRP params

* Add Lock Vue plugin (#108)

* Add Lock Vue plugin

* Fix loading align

* Add ConfigurableRightsPool ABI

* Update BActions address

* Fix smart pool rights

* Fix linting

* Add Lock Vue plugin (#108) (#112)

* Add Lock Vue plugin

* Fix loading align

* Update CRPFactory address

* Update abi

* Add smart pools page

* Add smart pool details

* Update BActions ABI

* Add CRP-related actions

* Update BActions address

* Add crp count

* Connect to balancer-labs/asset repo (#114)

* Autoload abi

* Fix topnav mobile

* Update Lock integration

* Connect to balancer-labs/asset repo

* Set default branch for balancer-labs/assets

* Merge dev to smartpool (#115)

* Add Lock Vue plugin (#108)

* Add Lock Vue plugin

* Fix loading align

* Connect to balancer-labs/asset repo (#114)

* Autoload abi

* Fix topnav mobile

* Update Lock integration

* Connect to balancer-labs/asset repo

* Set default branch for balancer-labs/assets

* Route smart pool management actions thru BActions

* Add page my pools and CRP infos (#116)

* Add page "My pools"

* Use svg for checkboxes

* Add CRP name symbol and controller

* Fix title

* Show error if one of the tokens is locked (#117)

* Specify assets repo branch in package lock file

* Add token name and "remove all tokens" right (#120)

* Add token name and "remove all tokens" right

* Update BActions address

* Fix values not converted in broadcast

* Add updateWeight/removeToken related calcs to math

* Revert "Merge branch 'smartpool' into develop"

This reverts commit e2bbf75, reversing
changes made to ce1ef05.

* add message for sXMR tx fail (#122)

* Fix charts in case there's no data for some days (#128)

* Merge upstream (#130)

* Fix fetch token list from assets repo + sXMR message (#124)

* Swap table fixes (#28)

* Fix tx in swap table

* Show minutes in swap table

* Rename swap table column to "Transaction"

* Show token tickers in swap table

* Cut method underscore prefix

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Fix getTxHashFromId

* Add WalletConnect and Portis connectors (#27)

* Refactor login

* Add walletconnect

* Add portis

* Add connect modal

* Add Portis options for kovan

* Fix walletconnect error

* Use Balancer Portis id

* Change to Balancer Infura id

* Revert

* DSProxy creation flow (#29)

* Add createProxy action

* Rename action: getProxies -> getProxy

* Add Setup view

* Add missing semicolon

* Redirect to Setup page if user has no proxy

* Add top margin to setup message block

* Disable "Setup" button during loading

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Fix linting

* Add hasProxy store getter

* Fix imports in web3 store

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Ignore .env file (#30)

* Title case buttons and headers (#31)

* Title case buttons and headers

* Change label: "Trade vol. (24h)" -> "Volume (24h)"

* Hide pie chart if conic-gradient not supported (#32)

* Fix linting

* Hide pie chart if conic-gradient not supported

* Fix add liquidity tx (#33)

* Fix add liquidity tx params

* Store user balances as strings

* Fetch token decimals and balances onchain (#34)

* Use token decimals

* Fetch pool token balances

* Load onchain token metadata (decimals)

* Don't overwrite balance store

* Hide My Wallet section

* Single-asset deposit (#35)

* Rewrite PoolOverview component

* Add PoolOverview to AddLiquidity modal

* Add SingleMultiToggle component

* Show future share only if it's available

* Add Checkbox component

* Add Radio component

* Single-asset join

* Single-asset withdraw (#36)

* Single-asset exit

* Disable token balance fetching

* Eth wrapping/unwrapping (#38)

* Pass tx overrides to sendTransaction

* ETH wrapping/unwrapping

* Fix swap volume (#37)

* Make login persist (#39)

* Add Lock.js

* Use hardcoded name

* Fix token selector modal (#40)

* Fix token decimals in selector modal

* Set max height to token selector modal

* Cut console logging

* Set relative max height to token selector modal

* Custom token pool creation (#42)

* Show My Wallet section only when account is active

* Pool creation page

* Merge upstream (#41)

* Fix swap volume (#37)

* Make login persist (#39)

* Add Lock.js

* Use hardcoded name

* Fix token selector modal (#40)

* Fix token decimals in selector modal

* Set max height to token selector modal

* Cut console logging

* Set relative max height to token selector modal

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Create pool on button click

* Add route name

* Add custom token support to SelectToken modal

* Fix createPool action

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Refactor store and fetching (#43)

* Center search icon

* Refactor store and fetching

* Pool creation messages (#44)

* Add Error component

* Add CustomToken component

* Fix Checkbox component

* Add "error" and "custom token" messages

* Add warnings & errors for join & exit (#45)

* Align text to left in MessageError

* Add MessageWarning component

* Add MessageWarningRateChange component

* Fetch metadata for unknown tokens only

* Add warnings & errors for join & exit

* Disable action buttons on validation errors (#46)

* Fix linting

* Disable button on validation error in NewPool

* Max in / max out validation

* Fix amounts not updated on weight change

* Fix modal max height (#47)

* Show error text on input error (#48)

* Refactor web3 store (#49)

* UI (#50)

* Navigate to NewPool page

* Add "My Liquidity" section to Home page

* Cut Wallet section from Sidebar

* Add fallback Infura ID

* Update Ethers.js to v5 and remove unused deps (#51)

* Update license to GPL-3

* Update Ethers.js to v5 and remove unused deps

* Fix encode and decode

* UX fixes (#54)

* Show ETH balance

* Fix MessageCustomToken checkbox

* Handle wrong pool address

* Disable action button if some tokens are locked

* Don't fetch token metadata in NewPool page

* Fix loading indicator for SelectToken modal

* Hide "Add Liquidity" button for empty pools

* Add account modal with logout (#52)

* Replace Infura with Alchemy (#53)

* Bug fixes & improvements (#55)

* Add balance buffer to join token amounts

* Custom gas estimation

* Handle rejected transactions (don't show error)

* Fix "join tx failed" message

* Fix joinswapExternAmountIn

* Use token precision for ListToken and Sidebar

* Add Etherscan links to Pool and Token page headers

* Add "max" button to eth unwrapping

* Add margin to private pool label

* Fix hasLockedToken for single-asset join

* Disable join button if transaction failed

* Use Coingecko to fetch prices (#56)

* Use Coingecko to fetch prices

* Fix linting

* Fix ether balance not shown

* Store balances as strings

* Sort user balances by usd value

* Fix linting

* Use price store to calculate pool liquidity

* Update config.json (#58)

* Add missing whitelisted tokens

* Update trustwallet whitelist

* Split error types

* Add scam token list

* Multiple fixes (#57)

* Fix lint

* Change holder user link format

* Remove default 0.15% swap fee

* Add page pool about with controller address

* Make pool swaps table responsive

* Show all tokens with ETH and WETH on top

* Fix pie (#59)

* Add Coinbase login (#61)

* Token errors (#60)

* Disable error and scam tokens in SelectToken modal

* Hide scam pools from UI

* Cut redundant condition

* Disable join for scam tokens

* Fix content alignment in Warning/Error messages

* Custom token warning

* Add getTokenBySymbol util method

* Remove scam list

* Cut unused import

* Update CustomToken message text

* Add custom token modal

* Multiple fixes (#62)

* Add error code -32603 to isTxRejected

* Switch subgraph endpoints

* Button hover state

* Fix Pie in PoolOverview

* Fix SelectToken filtering

* Fix invalid token ids

* Clear user state on logout

* Don't show symbols for custom tokens

* Button red styling

* Fix linting

* Fix allowance call in approve action

* Use _ticker in PoolOverview

* Fix Notifications styling

* Wait for 2 confirmations before getAllowances call

* Log out on network change

* Fix token warnings (#64)

* Fix custom token warning

* Update CustomToken message text

* Add Checkbox message to whitelisted pools

* Refactor: customTokenAccept -> checkboxAccept

* Load backup provider

* Fix add liquidity (#65)

* Fix add liquidity issues

* Add token count validation to NewPool view

* Fix infinite scroll (#66)

* Refactor config and reduce bundle size (#68)

* Remove bn.js duplicates

* Add IPFS deploy

* Components import for @vue/ui

* Refactor config

* Fix scrollbar

* Add similar pools section when creating a pool (#63)

* Display similar pools

* Add holder tab count

* Use beta subgraph

* Merge develop

* Refactor validation (#67)

* Refaction input validation

* Use getTokenBySymbol util method

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Increase icon size in warning/error messages

* Update DSProxy setup message box (#71)

* Add SimilarPools message

* Use SimilarPools message on NewPool view

* Use SimilarPools message on Pool view

* Use Vue.set to update amounts in NewPool

* Make the whole row clickable in SimilarPools

* Improve UI (#69)

* Remove bn.js duplicates

* Add IPFS deploy

* Components import for @vue/ui

* Refactor config

* Fix scrollbar

* Use subgraph for liquidity

* Change primary font

* Improve UI

* Fix multi-single selector

* Remove font

* Fix wrapper firefox

* Make generic toggle

* Add token names + router fixes (#72)

* Fix Pool view throws on invalid pool address

* Load pool on url change

* Move popular assets to the top of the token list

* Add token names to config

* Fetch token names

* Show token name in SelectToken modal

* BAL Whitelist - Round 6 (#74)

* Remove LEV

* Remove PRO

* Add ALEPH

* Add ARPA

* Add ARTE

* Add CARD

* Add CUR

* Add KAI

* Add NEC

* Add uDOO

* Suggest similar pools based on weights, fee, and liquidity (#73)

* Increase icon size in warning/error messages

* Add SimilarPools message

* Use SimilarPools message on NewPool view

* Use SimilarPools message on Pool view

* Use Vue.set to update amounts in NewPool

* Make the whole row clickable in SimilarPools

* Multiple enhancements (#75)

* Pool creation limit to 8 assets

* Add creation tx, BPT and swap infos

* Fix height table loading placeholder

* Show usd swap fee

* Add holder share value

* Remove coingecko pricing (#77)

* Fix mobile add / remove liquidity

* Update bActions proxy

* Abbrev numbers and filters with url (#76)

* Display abrev numbers

* Change url on filter change

* Move ipfs-deploy to dev dep

* Remove filter key

* Fixes from master and router history

* Fix margin unlogged

* Fix link

* Change config format  (#78)

* Change config format

* Update packages

* Cut custom warnings

* UX improvements (#83)

* Add loading state to button in Create view

* Redirect to Setup view if no proxy found

* Add loading state to Wrap/Unwrap buttons

* Add validation for Wrapper inputs

* Hide pool action buttons when web3 not connected

* Add message to Checkbox

* Bump @walletconnect/web3-provider

* Hide MessageSimilarPools for private pools

* Add $info style var

* Add Slippage message

* Cut Pie from PoolOverview

* Add Icon to Slippage message

* Decrease vertical margin for several messages

* Increase max-height for UiModal

* Move messages inside Add/Remove modal body

* Pool creation: redirect user if no proxy (#90) (#91)

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Increase precision for BTC-pegged assets (#92)

* Increase precision for BTC-pegged assets

* Update addresses on Kovan

* Fix linting

* Don't keep 0x0 proxy address in store (#93)

* Cut NewPool view

* Set dsProxyAddress as '' if proxy not found

* Padlock + pool creation confirmation modal (#88)

* Padlock and price confirmation modal

* UX improvements (#83) (#87)

* Add loading state to button in Create view

* Redirect to Setup view if no proxy found

* Add loading state to Wrap/Unwrap buttons

* Add validation for Wrapper inputs

* Hide pool action buttons when web3 not connected

* Add message to Checkbox

* Bump @walletconnect/web3-provider

* Hide MessageSimilarPools for private pools

* Add $info style var

* Add Slippage message

* Cut Pie from PoolOverview

* Add Icon to Slippage message

* Decrease vertical margin for several messages

* Increase max-height for UiModal

* Move messages inside Add/Remove modal body

* Fix linting

* Update icon set

* Add lock/unlock icons for padlock

* Fix linting

* Add icon-font-generator package

* Show unlock button if allowance not enough  (#94)

* Fix getTokenLogoUrl for custom tokens

* Show unlock button if allowance not enough

* Add meta description

* Add pool metric charts (#99)

* Add lightweight-charts package

* Fetch pool metrics from subgraph

* Add Chart component (draft)

* Fix linting

* Add liquidity and APY charts

* Hide pool name on mobile

* Use _num for APY formatting + rename tab

* Disable chart scrolling by mouse wheel

* Add poolLiquidity to metrics subgraph request

* Handle fresh pools (created less than 30 days ago)

* Chart fixes

* Increase loading progress size

* Use area chart for 'fee' dataset

* Fix chart on window resize

* Restore coingecko (#100)

* Use Coingecko pricing data

* Handle coingecko outage

* Fix linting

* UX improvements (#106)

* Restore coingecko (#100)

* Use Coingecko pricing data

* Handle coingecko outage

* Fix linting

* Fix onchain token metadata fetching

* Add info about padlock on PoolCreation modal

* Show decimals for token weights

* Use utils for percentage formatting

* Add info icon

* Show BPT amount when adding liquidity

* Use _num to format values

* Fix WETH input

* Add about modal (#102)

* Add modal about

* Fix unlock button align

* Lazy load connectors and add Fortmatic (#104)

* Use png logo for connectors

* Lazy load connectors

* Add Fortmatic

* Add CRPFactory ABI

* Update BActions ABI

* Update CRPFactory and BActions addresses on Kovan

* Rename: toggleOptions -> liquidityToggleOptions

* Make checkbox blue by default

* Add createSmartPool action

* Add 'smart pool' tab on Create view

* Fix linting

* Pass default CRP params

* Add Lock Vue plugin (#108)

* Add Lock Vue plugin

* Fix loading align

* Add ConfigurableRightsPool ABI

* Update BActions address

* Fix smart pool rights

* Fix linting

* Add Lock Vue plugin (#108) (#112)

* Add Lock Vue plugin

* Fix loading align

* Update CRPFactory address

* Update abi

* Add smart pools page

* Add smart pool details

* Update BActions ABI

* Add CRP-related actions

* Update BActions address

* Add crp count

* Connect to balancer-labs/asset repo (#114)

* Autoload abi

* Fix topnav mobile

* Update Lock integration

* Connect to balancer-labs/asset repo

* Set default branch for balancer-labs/assets

* Merge dev to smartpool (#115)

* Add Lock Vue plugin (#108)

* Add Lock Vue plugin

* Fix loading align

* Connect to balancer-labs/asset repo (#114)

* Autoload abi

* Fix topnav mobile

* Update Lock integration

* Connect to balancer-labs/asset repo

* Set default branch for balancer-labs/assets

* Route smart pool management actions thru BActions

* Add page my pools and CRP infos (#116)

* Add page "My pools"

* Use svg for checkboxes

* Add CRP name symbol and controller

* Fix title

* Show error if one of the tokens is locked (#117)

* Specify assets repo branch in package lock file

* Add token name and "remove all tokens" right (#120)

* Add token name and "remove all tokens" right

* Update BActions address

* Fix values not converted in broadcast

* Add updateWeight/removeToken related calcs to math

* Revert "Merge branch 'smartpool' into develop"

This reverts commit e2bbf75, reversing
changes made to ce1ef05.

* add message for sXMR tx fail (#122)

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>
Co-authored-by: rabmarut <67169632+rabmarut@users.noreply.github.com>
Co-authored-by: bonustrack <fabien@bonustrack.co>
Co-authored-by: Mike McDonald <mikeraymcdonald@gmail.com>

* Fix error custom asset (#126)

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>
Co-authored-by: rabmarut <67169632+rabmarut@users.noreply.github.com>
Co-authored-by: bonustrack <fabien@bonustrack.co>
Co-authored-by: Mike McDonald <mikeraymcdonald@gmail.com>

* Fix ether balance in Sidebar (#131)

* Query BPT balance from node (#133)

* Show token amount out even if BPT amount > balance (#135)

* Show token amount out even if BPT amount > balance

* Fix crash when withdrawing 100% in single-asset

* Fetch BPT total supply onchain (#137)

* Cut redundant import

* Fix pool liquidity (#141)

* Update Pool.vue

* Update PoolBoxes.vue

* Sync user state & pool balances (#142)

* Clear user subgraph data on account change

* Refactor: getMyPools -> getUserPools etc

* Fetch ETH/WETH balance after wrapping/unwrapping

* Sync balances/shares in background

* Fetch pool balances onchain

Co-authored-by: Timur Badretdinov <destinerx@gmail.com>
Co-authored-by: rabmarut <67169632+rabmarut@users.noreply.github.com>
Co-authored-by: Mike McDonald <mikeraymcdonald@gmail.com>
Destiner pushed a commit that referenced this pull request Sep 25, 2020
…146)

* Swap table fixes (#28)

* Fix tx in swap table

* Show minutes in swap table

* Rename swap table column to "Transaction"

* Show token tickers in swap table

* Cut method underscore prefix

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Fix getTxHashFromId

* Add WalletConnect and Portis connectors (#27)

* Refactor login

* Add walletconnect

* Add portis

* Add connect modal

* Add Portis options for kovan

* Fix walletconnect error

* Use Balancer Portis id

* Change to Balancer Infura id

* Revert

* DSProxy creation flow (#29)

* Add createProxy action

* Rename action: getProxies -> getProxy

* Add Setup view

* Add missing semicolon

* Redirect to Setup page if user has no proxy

* Add top margin to setup message block

* Disable "Setup" button during loading

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Fix linting

* Add hasProxy store getter

* Fix imports in web3 store

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Ignore .env file (#30)

* Title case buttons and headers (#31)

* Title case buttons and headers

* Change label: "Trade vol. (24h)" -> "Volume (24h)"

* Hide pie chart if conic-gradient not supported (#32)

* Fix linting

* Hide pie chart if conic-gradient not supported

* Fix add liquidity tx (#33)

* Fix add liquidity tx params

* Store user balances as strings

* Fetch token decimals and balances onchain (#34)

* Use token decimals

* Fetch pool token balances

* Load onchain token metadata (decimals)

* Don't overwrite balance store

* Hide My Wallet section

* Single-asset deposit (#35)

* Rewrite PoolOverview component

* Add PoolOverview to AddLiquidity modal

* Add SingleMultiToggle component

* Show future share only if it's available

* Add Checkbox component

* Add Radio component

* Single-asset join

* Single-asset withdraw (#36)

* Single-asset exit

* Disable token balance fetching

* Eth wrapping/unwrapping (#38)

* Pass tx overrides to sendTransaction

* ETH wrapping/unwrapping

* Fix swap volume (#37)

* Make login persist (#39)

* Add Lock.js

* Use hardcoded name

* Fix token selector modal (#40)

* Fix token decimals in selector modal

* Set max height to token selector modal

* Cut console logging

* Set relative max height to token selector modal

* Custom token pool creation (#42)

* Show My Wallet section only when account is active

* Pool creation page

* Merge upstream (#41)

* Fix swap volume (#37)

* Make login persist (#39)

* Add Lock.js

* Use hardcoded name

* Fix token selector modal (#40)

* Fix token decimals in selector modal

* Set max height to token selector modal

* Cut console logging

* Set relative max height to token selector modal

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Create pool on button click

* Add route name

* Add custom token support to SelectToken modal

* Fix createPool action

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Refactor store and fetching (#43)

* Center search icon

* Refactor store and fetching

* Pool creation messages (#44)

* Add Error component

* Add CustomToken component

* Fix Checkbox component

* Add "error" and "custom token" messages

* Add warnings & errors for join & exit (#45)

* Align text to left in MessageError

* Add MessageWarning component

* Add MessageWarningRateChange component

* Fetch metadata for unknown tokens only

* Add warnings & errors for join & exit

* Disable action buttons on validation errors (#46)

* Fix linting

* Disable button on validation error in NewPool

* Max in / max out validation

* Fix amounts not updated on weight change

* Fix modal max height (#47)

* Show error text on input error (#48)

* Refactor web3 store (#49)

* UI (#50)

* Navigate to NewPool page

* Add "My Liquidity" section to Home page

* Cut Wallet section from Sidebar

* Add fallback Infura ID

* Update Ethers.js to v5 and remove unused deps (#51)

* Update license to GPL-3

* Update Ethers.js to v5 and remove unused deps

* Fix encode and decode

* UX fixes (#54)

* Show ETH balance

* Fix MessageCustomToken checkbox

* Handle wrong pool address

* Disable action button if some tokens are locked

* Don't fetch token metadata in NewPool page

* Fix loading indicator for SelectToken modal

* Hide "Add Liquidity" button for empty pools

* Add account modal with logout (#52)

* Replace Infura with Alchemy (#53)

* Bug fixes & improvements (#55)

* Add balance buffer to join token amounts

* Custom gas estimation

* Handle rejected transactions (don't show error)

* Fix "join tx failed" message

* Fix joinswapExternAmountIn

* Use token precision for ListToken and Sidebar

* Add Etherscan links to Pool and Token page headers

* Add "max" button to eth unwrapping

* Add margin to private pool label

* Fix hasLockedToken for single-asset join

* Disable join button if transaction failed

* Use Coingecko to fetch prices (#56)

* Use Coingecko to fetch prices

* Fix linting

* Fix ether balance not shown

* Store balances as strings

* Sort user balances by usd value

* Fix linting

* Use price store to calculate pool liquidity

* Update config.json (#58)

* Add missing whitelisted tokens

* Update trustwallet whitelist

* Split error types

* Add scam token list

* Multiple fixes (#57)

* Fix lint

* Change holder user link format

* Remove default 0.15% swap fee

* Add page pool about with controller address

* Make pool swaps table responsive

* Show all tokens with ETH and WETH on top

* Fix pie (#59)

* Add Coinbase login (#61)

* Token errors (#60)

* Disable error and scam tokens in SelectToken modal

* Hide scam pools from UI

* Cut redundant condition

* Disable join for scam tokens

* Fix content alignment in Warning/Error messages

* Custom token warning

* Add getTokenBySymbol util method

* Remove scam list

* Cut unused import

* Update CustomToken message text

* Add custom token modal

* Multiple fixes (#62)

* Add error code -32603 to isTxRejected

* Switch subgraph endpoints

* Button hover state

* Fix Pie in PoolOverview

* Fix SelectToken filtering

* Fix invalid token ids

* Clear user state on logout

* Don't show symbols for custom tokens

* Button red styling

* Fix linting

* Fix allowance call in approve action

* Use _ticker in PoolOverview

* Fix Notifications styling

* Wait for 2 confirmations before getAllowances call

* Log out on network change

* Fix token warnings (#64)

* Fix custom token warning

* Update CustomToken message text

* Add Checkbox message to whitelisted pools

* Refactor: customTokenAccept -> checkboxAccept

* Load backup provider

* Fix add liquidity (#65)

* Fix add liquidity issues

* Add token count validation to NewPool view

* Fix infinite scroll (#66)

* Refactor config and reduce bundle size (#68)

* Remove bn.js duplicates

* Add IPFS deploy

* Components import for @vue/ui

* Refactor config

* Fix scrollbar

* Add similar pools section when creating a pool (#63)

* Display similar pools

* Add holder tab count

* Use beta subgraph

* Merge develop

* Refactor validation (#67)

* Refaction input validation

* Use getTokenBySymbol util method

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Increase icon size in warning/error messages

* Update DSProxy setup message box (#71)

* Add SimilarPools message

* Use SimilarPools message on NewPool view

* Use SimilarPools message on Pool view

* Use Vue.set to update amounts in NewPool

* Make the whole row clickable in SimilarPools

* Improve UI (#69)

* Remove bn.js duplicates

* Add IPFS deploy

* Components import for @vue/ui

* Refactor config

* Fix scrollbar

* Use subgraph for liquidity

* Change primary font

* Improve UI

* Fix multi-single selector

* Remove font

* Fix wrapper firefox

* Make generic toggle

* Add token names + router fixes (#72)

* Fix Pool view throws on invalid pool address

* Load pool on url change

* Move popular assets to the top of the token list

* Add token names to config

* Fetch token names

* Show token name in SelectToken modal

* BAL Whitelist - Round 6 (#74)

* Remove LEV

* Remove PRO

* Add ALEPH

* Add ARPA

* Add ARTE

* Add CARD

* Add CUR

* Add KAI

* Add NEC

* Add uDOO

* Suggest similar pools based on weights, fee, and liquidity (#73)

* Increase icon size in warning/error messages

* Add SimilarPools message

* Use SimilarPools message on NewPool view

* Use SimilarPools message on Pool view

* Use Vue.set to update amounts in NewPool

* Make the whole row clickable in SimilarPools

* Multiple enhancements (#75)

* Pool creation limit to 8 assets

* Add creation tx, BPT and swap infos

* Fix height table loading placeholder

* Show usd swap fee

* Add holder share value

* Remove coingecko pricing (#77)

* Fix mobile add / remove liquidity

* Update bActions proxy

* Abbrev numbers and filters with url (#76)

* Display abrev numbers

* Change url on filter change

* Move ipfs-deploy to dev dep

* Remove filter key

* Fixes from master and router history

* Fix margin unlogged

* Fix link

* Change config format  (#78)

* Change config format

* Update packages

* Cut custom warnings

* UX improvements (#83)

* Add loading state to button in Create view

* Redirect to Setup view if no proxy found

* Add loading state to Wrap/Unwrap buttons

* Add validation for Wrapper inputs

* Hide pool action buttons when web3 not connected

* Add message to Checkbox

* Bump @walletconnect/web3-provider

* Hide MessageSimilarPools for private pools

* Add $info style var

* Add Slippage message

* Cut Pie from PoolOverview

* Add Icon to Slippage message

* Decrease vertical margin for several messages

* Increase max-height for UiModal

* Move messages inside Add/Remove modal body

* Pool creation: redirect user if no proxy (#90) (#91)

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Increase precision for BTC-pegged assets (#92)

* Increase precision for BTC-pegged assets

* Update addresses on Kovan

* Fix linting

* Don't keep 0x0 proxy address in store (#93)

* Cut NewPool view

* Set dsProxyAddress as '' if proxy not found

* Padlock + pool creation confirmation modal (#88)

* Padlock and price confirmation modal

* UX improvements (#83) (#87)

* Add loading state to button in Create view

* Redirect to Setup view if no proxy found

* Add loading state to Wrap/Unwrap buttons

* Add validation for Wrapper inputs

* Hide pool action buttons when web3 not connected

* Add message to Checkbox

* Bump @walletconnect/web3-provider

* Hide MessageSimilarPools for private pools

* Add $info style var

* Add Slippage message

* Cut Pie from PoolOverview

* Add Icon to Slippage message

* Decrease vertical margin for several messages

* Increase max-height for UiModal

* Move messages inside Add/Remove modal body

* Fix linting

* Update icon set

* Add lock/unlock icons for padlock

* Fix linting

* Add icon-font-generator package

* Show unlock button if allowance not enough  (#94)

* Fix getTokenLogoUrl for custom tokens

* Show unlock button if allowance not enough

* Add meta description

* Add pool metric charts (#99)

* Add lightweight-charts package

* Fetch pool metrics from subgraph

* Add Chart component (draft)

* Fix linting

* Add liquidity and APY charts

* Hide pool name on mobile

* Use _num for APY formatting + rename tab

* Disable chart scrolling by mouse wheel

* Add poolLiquidity to metrics subgraph request

* Handle fresh pools (created less than 30 days ago)

* Chart fixes

* Increase loading progress size

* Use area chart for 'fee' dataset

* Fix chart on window resize

* Restore coingecko (#100)

* Use Coingecko pricing data

* Handle coingecko outage

* Fix linting

* UX improvements (#106)

* Restore coingecko (#100)

* Use Coingecko pricing data

* Handle coingecko outage

* Fix linting

* Fix onchain token metadata fetching

* Add info about padlock on PoolCreation modal

* Show decimals for token weights

* Use utils for percentage formatting

* Add info icon

* Show BPT amount when adding liquidity

* Use _num to format values

* Fix WETH input

* Add about modal (#102)

* Add modal about

* Fix unlock button align

* Lazy load connectors and add Fortmatic (#104)

* Use png logo for connectors

* Lazy load connectors

* Add Fortmatic

* Add CRPFactory ABI

* Update BActions ABI

* Update CRPFactory and BActions addresses on Kovan

* Rename: toggleOptions -> liquidityToggleOptions

* Make checkbox blue by default

* Add createSmartPool action

* Add 'smart pool' tab on Create view

* Fix linting

* Pass default CRP params

* Add Lock Vue plugin (#108)

* Add Lock Vue plugin

* Fix loading align

* Add ConfigurableRightsPool ABI

* Update BActions address

* Fix smart pool rights

* Fix linting

* Add Lock Vue plugin (#108) (#112)

* Add Lock Vue plugin

* Fix loading align

* Update CRPFactory address

* Update abi

* Add smart pools page

* Add smart pool details

* Update BActions ABI

* Add CRP-related actions

* Update BActions address

* Add crp count

* Connect to balancer-labs/asset repo (#114)

* Autoload abi

* Fix topnav mobile

* Update Lock integration

* Connect to balancer-labs/asset repo

* Set default branch for balancer-labs/assets

* Merge dev to smartpool (#115)

* Add Lock Vue plugin (#108)

* Add Lock Vue plugin

* Fix loading align

* Connect to balancer-labs/asset repo (#114)

* Autoload abi

* Fix topnav mobile

* Update Lock integration

* Connect to balancer-labs/asset repo

* Set default branch for balancer-labs/assets

* Route smart pool management actions thru BActions

* Add page my pools and CRP infos (#116)

* Add page "My pools"

* Use svg for checkboxes

* Add CRP name symbol and controller

* Fix title

* Show error if one of the tokens is locked (#117)

* Specify assets repo branch in package lock file

* Add token name and "remove all tokens" right (#120)

* Add token name and "remove all tokens" right

* Update BActions address

* Fix values not converted in broadcast

* Add updateWeight/removeToken related calcs to math

* Revert "Merge branch 'smartpool' into develop"

This reverts commit e2bbf75, reversing
changes made to ce1ef05.

* add message for sXMR tx fail (#122)

* Fix charts in case there's no data for some days (#128)

* Merge upstream (#130)

* Fix fetch token list from assets repo + sXMR message (#124)

* Swap table fixes (#28)

* Fix tx in swap table

* Show minutes in swap table

* Rename swap table column to "Transaction"

* Show token tickers in swap table

* Cut method underscore prefix

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Fix getTxHashFromId

* Add WalletConnect and Portis connectors (#27)

* Refactor login

* Add walletconnect

* Add portis

* Add connect modal

* Add Portis options for kovan

* Fix walletconnect error

* Use Balancer Portis id

* Change to Balancer Infura id

* Revert

* DSProxy creation flow (#29)

* Add createProxy action

* Rename action: getProxies -> getProxy

* Add Setup view

* Add missing semicolon

* Redirect to Setup page if user has no proxy

* Add top margin to setup message block

* Disable "Setup" button during loading

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Fix linting

* Add hasProxy store getter

* Fix imports in web3 store

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Ignore .env file (#30)

* Title case buttons and headers (#31)

* Title case buttons and headers

* Change label: "Trade vol. (24h)" -> "Volume (24h)"

* Hide pie chart if conic-gradient not supported (#32)

* Fix linting

* Hide pie chart if conic-gradient not supported

* Fix add liquidity tx (#33)

* Fix add liquidity tx params

* Store user balances as strings

* Fetch token decimals and balances onchain (#34)

* Use token decimals

* Fetch pool token balances

* Load onchain token metadata (decimals)

* Don't overwrite balance store

* Hide My Wallet section

* Single-asset deposit (#35)

* Rewrite PoolOverview component

* Add PoolOverview to AddLiquidity modal

* Add SingleMultiToggle component

* Show future share only if it's available

* Add Checkbox component

* Add Radio component

* Single-asset join

* Single-asset withdraw (#36)

* Single-asset exit

* Disable token balance fetching

* Eth wrapping/unwrapping (#38)

* Pass tx overrides to sendTransaction

* ETH wrapping/unwrapping

* Fix swap volume (#37)

* Make login persist (#39)

* Add Lock.js

* Use hardcoded name

* Fix token selector modal (#40)

* Fix token decimals in selector modal

* Set max height to token selector modal

* Cut console logging

* Set relative max height to token selector modal

* Custom token pool creation (#42)

* Show My Wallet section only when account is active

* Pool creation page

* Merge upstream (#41)

* Fix swap volume (#37)

* Make login persist (#39)

* Add Lock.js

* Use hardcoded name

* Fix token selector modal (#40)

* Fix token decimals in selector modal

* Set max height to token selector modal

* Cut console logging

* Set relative max height to token selector modal

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Create pool on button click

* Add route name

* Add custom token support to SelectToken modal

* Fix createPool action

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Refactor store and fetching (#43)

* Center search icon

* Refactor store and fetching

* Pool creation messages (#44)

* Add Error component

* Add CustomToken component

* Fix Checkbox component

* Add "error" and "custom token" messages

* Add warnings & errors for join & exit (#45)

* Align text to left in MessageError

* Add MessageWarning component

* Add MessageWarningRateChange component

* Fetch metadata for unknown tokens only

* Add warnings & errors for join & exit

* Disable action buttons on validation errors (#46)

* Fix linting

* Disable button on validation error in NewPool

* Max in / max out validation

* Fix amounts not updated on weight change

* Fix modal max height (#47)

* Show error text on input error (#48)

* Refactor web3 store (#49)

* UI (#50)

* Navigate to NewPool page

* Add "My Liquidity" section to Home page

* Cut Wallet section from Sidebar

* Add fallback Infura ID

* Update Ethers.js to v5 and remove unused deps (#51)

* Update license to GPL-3

* Update Ethers.js to v5 and remove unused deps

* Fix encode and decode

* UX fixes (#54)

* Show ETH balance

* Fix MessageCustomToken checkbox

* Handle wrong pool address

* Disable action button if some tokens are locked

* Don't fetch token metadata in NewPool page

* Fix loading indicator for SelectToken modal

* Hide "Add Liquidity" button for empty pools

* Add account modal with logout (#52)

* Replace Infura with Alchemy (#53)

* Bug fixes & improvements (#55)

* Add balance buffer to join token amounts

* Custom gas estimation

* Handle rejected transactions (don't show error)

* Fix "join tx failed" message

* Fix joinswapExternAmountIn

* Use token precision for ListToken and Sidebar

* Add Etherscan links to Pool and Token page headers

* Add "max" button to eth unwrapping

* Add margin to private pool label

* Fix hasLockedToken for single-asset join

* Disable join button if transaction failed

* Use Coingecko to fetch prices (#56)

* Use Coingecko to fetch prices

* Fix linting

* Fix ether balance not shown

* Store balances as strings

* Sort user balances by usd value

* Fix linting

* Use price store to calculate pool liquidity

* Update config.json (#58)

* Add missing whitelisted tokens

* Update trustwallet whitelist

* Split error types

* Add scam token list

* Multiple fixes (#57)

* Fix lint

* Change holder user link format

* Remove default 0.15% swap fee

* Add page pool about with controller address

* Make pool swaps table responsive

* Show all tokens with ETH and WETH on top

* Fix pie (#59)

* Add Coinbase login (#61)

* Token errors (#60)

* Disable error and scam tokens in SelectToken modal

* Hide scam pools from UI

* Cut redundant condition

* Disable join for scam tokens

* Fix content alignment in Warning/Error messages

* Custom token warning

* Add getTokenBySymbol util method

* Remove scam list

* Cut unused import

* Update CustomToken message text

* Add custom token modal

* Multiple fixes (#62)

* Add error code -32603 to isTxRejected

* Switch subgraph endpoints

* Button hover state

* Fix Pie in PoolOverview

* Fix SelectToken filtering

* Fix invalid token ids

* Clear user state on logout

* Don't show symbols for custom tokens

* Button red styling

* Fix linting

* Fix allowance call in approve action

* Use _ticker in PoolOverview

* Fix Notifications styling

* Wait for 2 confirmations before getAllowances call

* Log out on network change

* Fix token warnings (#64)

* Fix custom token warning

* Update CustomToken message text

* Add Checkbox message to whitelisted pools

* Refactor: customTokenAccept -> checkboxAccept

* Load backup provider

* Fix add liquidity (#65)

* Fix add liquidity issues

* Add token count validation to NewPool view

* Fix infinite scroll (#66)

* Refactor config and reduce bundle size (#68)

* Remove bn.js duplicates

* Add IPFS deploy

* Components import for @vue/ui

* Refactor config

* Fix scrollbar

* Add similar pools section when creating a pool (#63)

* Display similar pools

* Add holder tab count

* Use beta subgraph

* Merge develop

* Refactor validation (#67)

* Refaction input validation

* Use getTokenBySymbol util method

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Increase icon size in warning/error messages

* Update DSProxy setup message box (#71)

* Add SimilarPools message

* Use SimilarPools message on NewPool view

* Use SimilarPools message on Pool view

* Use Vue.set to update amounts in NewPool

* Make the whole row clickable in SimilarPools

* Improve UI (#69)

* Remove bn.js duplicates

* Add IPFS deploy

* Components import for @vue/ui

* Refactor config

* Fix scrollbar

* Use subgraph for liquidity

* Change primary font

* Improve UI

* Fix multi-single selector

* Remove font

* Fix wrapper firefox

* Make generic toggle

* Add token names + router fixes (#72)

* Fix Pool view throws on invalid pool address

* Load pool on url change

* Move popular assets to the top of the token list

* Add token names to config

* Fetch token names

* Show token name in SelectToken modal

* BAL Whitelist - Round 6 (#74)

* Remove LEV

* Remove PRO

* Add ALEPH

* Add ARPA

* Add ARTE

* Add CARD

* Add CUR

* Add KAI

* Add NEC

* Add uDOO

* Suggest similar pools based on weights, fee, and liquidity (#73)

* Increase icon size in warning/error messages

* Add SimilarPools message

* Use SimilarPools message on NewPool view

* Use SimilarPools message on Pool view

* Use Vue.set to update amounts in NewPool

* Make the whole row clickable in SimilarPools

* Multiple enhancements (#75)

* Pool creation limit to 8 assets

* Add creation tx, BPT and swap infos

* Fix height table loading placeholder

* Show usd swap fee

* Add holder share value

* Remove coingecko pricing (#77)

* Fix mobile add / remove liquidity

* Update bActions proxy

* Abbrev numbers and filters with url (#76)

* Display abrev numbers

* Change url on filter change

* Move ipfs-deploy to dev dep

* Remove filter key

* Fixes from master and router history

* Fix margin unlogged

* Fix link

* Change config format  (#78)

* Change config format

* Update packages

* Cut custom warnings

* UX improvements (#83)

* Add loading state to button in Create view

* Redirect to Setup view if no proxy found

* Add loading state to Wrap/Unwrap buttons

* Add validation for Wrapper inputs

* Hide pool action buttons when web3 not connected

* Add message to Checkbox

* Bump @walletconnect/web3-provider

* Hide MessageSimilarPools for private pools

* Add $info style var

* Add Slippage message

* Cut Pie from PoolOverview

* Add Icon to Slippage message

* Decrease vertical margin for several messages

* Increase max-height for UiModal

* Move messages inside Add/Remove modal body

* Pool creation: redirect user if no proxy (#90) (#91)

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>

* Increase precision for BTC-pegged assets (#92)

* Increase precision for BTC-pegged assets

* Update addresses on Kovan

* Fix linting

* Don't keep 0x0 proxy address in store (#93)

* Cut NewPool view

* Set dsProxyAddress as '' if proxy not found

* Padlock + pool creation confirmation modal (#88)

* Padlock and price confirmation modal

* UX improvements (#83) (#87)

* Add loading state to button in Create view

* Redirect to Setup view if no proxy found

* Add loading state to Wrap/Unwrap buttons

* Add validation for Wrapper inputs

* Hide pool action buttons when web3 not connected

* Add message to Checkbox

* Bump @walletconnect/web3-provider

* Hide MessageSimilarPools for private pools

* Add $info style var

* Add Slippage message

* Cut Pie from PoolOverview

* Add Icon to Slippage message

* Decrease vertical margin for several messages

* Increase max-height for UiModal

* Move messages inside Add/Remove modal body

* Fix linting

* Update icon set

* Add lock/unlock icons for padlock

* Fix linting

* Add icon-font-generator package

* Show unlock button if allowance not enough  (#94)

* Fix getTokenLogoUrl for custom tokens

* Show unlock button if allowance not enough

* Add meta description

* Add pool metric charts (#99)

* Add lightweight-charts package

* Fetch pool metrics from subgraph

* Add Chart component (draft)

* Fix linting

* Add liquidity and APY charts

* Hide pool name on mobile

* Use _num for APY formatting + rename tab

* Disable chart scrolling by mouse wheel

* Add poolLiquidity to metrics subgraph request

* Handle fresh pools (created less than 30 days ago)

* Chart fixes

* Increase loading progress size

* Use area chart for 'fee' dataset

* Fix chart on window resize

* Restore coingecko (#100)

* Use Coingecko pricing data

* Handle coingecko outage

* Fix linting

* UX improvements (#106)

* Restore coingecko (#100)

* Use Coingecko pricing data

* Handle coingecko outage

* Fix linting

* Fix onchain token metadata fetching

* Add info about padlock on PoolCreation modal

* Show decimals for token weights

* Use utils for percentage formatting

* Add info icon

* Show BPT amount when adding liquidity

* Use _num to format values

* Fix WETH input

* Add about modal (#102)

* Add modal about

* Fix unlock button align

* Lazy load connectors and add Fortmatic (#104)

* Use png logo for connectors

* Lazy load connectors

* Add Fortmatic

* Add CRPFactory ABI

* Update BActions ABI

* Update CRPFactory and BActions addresses on Kovan

* Rename: toggleOptions -> liquidityToggleOptions

* Make checkbox blue by default

* Add createSmartPool action

* Add 'smart pool' tab on Create view

* Fix linting

* Pass default CRP params

* Add Lock Vue plugin (#108)

* Add Lock Vue plugin

* Fix loading align

* Add ConfigurableRightsPool ABI

* Update BActions address

* Fix smart pool rights

* Fix linting

* Add Lock Vue plugin (#108) (#112)

* Add Lock Vue plugin

* Fix loading align

* Update CRPFactory address

* Update abi

* Add smart pools page

* Add smart pool details

* Update BActions ABI

* Add CRP-related actions

* Update BActions address

* Add crp count

* Connect to balancer-labs/asset repo (#114)

* Autoload abi

* Fix topnav mobile

* Update Lock integration

* Connect to balancer-labs/asset repo

* Set default branch for balancer-labs/assets

* Merge dev to smartpool (#115)

* Add Lock Vue plugin (#108)

* Add Lock Vue plugin

* Fix loading align

* Connect to balancer-labs/asset repo (#114)

* Autoload abi

* Fix topnav mobile

* Update Lock integration

* Connect to balancer-labs/asset repo

* Set default branch for balancer-labs/assets

* Route smart pool management actions thru BActions

* Add page my pools and CRP infos (#116)

* Add page "My pools"

* Use svg for checkboxes

* Add CRP name symbol and controller

* Fix title

* Show error if one of the tokens is locked (#117)

* Specify assets repo branch in package lock file

* Add token name and "remove all tokens" right (#120)

* Add token name and "remove all tokens" right

* Update BActions address

* Fix values not converted in broadcast

* Add updateWeight/removeToken related calcs to math

* Revert "Merge branch 'smartpool' into develop"

This reverts commit e2bbf75, reversing
changes made to ce1ef05.

* add message for sXMR tx fail (#122)

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>
Co-authored-by: rabmarut <67169632+rabmarut@users.noreply.github.com>
Co-authored-by: bonustrack <fabien@bonustrack.co>
Co-authored-by: Mike McDonald <mikeraymcdonald@gmail.com>

* Fix error custom asset (#126)

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>
Co-authored-by: rabmarut <67169632+rabmarut@users.noreply.github.com>
Co-authored-by: bonustrack <fabien@bonustrack.co>
Co-authored-by: Mike McDonald <mikeraymcdonald@gmail.com>

* Fix ether balance in Sidebar (#131)

* Query BPT balance from node (#133)

* Show token amount out even if BPT amount > balance (#135)

* Show token amount out even if BPT amount > balance

* Fix crash when withdrawing 100% in single-asset

* Fetch BPT total supply onchain (#137)

* Cut redundant import

* Fix pool liquidity (#141)

* Update Pool.vue

* Update PoolBoxes.vue

* Sync user state & pool balances (#142)

* Clear user subgraph data on account change

* Refactor: getMyPools -> getUserPools etc

* Fetch ETH/WETH balance after wrapping/unwrapping

* Sync balances/shares in background

* Fetch pool balances onchain

* Add frontrunning protection with 1% buffer for single-asset actions (#144)

* Add balance buffer to single-asset join

* Add balance buffer to single-asset exit

* Add balance buffer to exit

* Fix TS

Co-authored-by: Fabien <bonustrack@users.noreply.github.com>
Co-authored-by: rabmarut <67169632+rabmarut@users.noreply.github.com>
Co-authored-by: bonustrack <fabien@bonustrack.co>
Co-authored-by: Mike McDonald <mikeraymcdonald@gmail.com>
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.

2 participants