mihaisc
bf31cdfed5
Various fixes ( #1441 )
...
* fixes
* more fixes
2022-05-18 17:25:44 +01:00
EnzoVezzaro
29e6636d71
handle poolData shares when empty ( #1424 )
...
* handle poolData shares when it's empty
* rm log
2022-05-13 12:48:24 +01:00
mihaisc
88b40e5985
fix pool context ( #1416 )
...
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2022-05-10 20:10:16 +01:00
mihaisc
aa54795c2b
add decimals to pool calls ( #1393 )
...
* add decimals to pool calls
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix lock
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix ssh
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* update ocean
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* update ocean
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove screen fixes
* update lib, contracts
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix package-lock
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-05-10 14:19:41 +03:00
mihaisc
2107eab979
Fix order and price ( #1375 )
...
* fix loading
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* add order fee
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix opc
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove cache from urql
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* update urlq dep
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* update urlq dep
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix lock
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix states
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2022-04-29 21:14:14 +02:00
mihaisc
d1e21b7f03
Various fixes in the pool component ( #1327 )
...
* remove legacy check to prevent rug pull
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* various fixes
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove old prop
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove old prop
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* add expected output to remove
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove console.logs
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix max calculations
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* refactors
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* temp fixes for build
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fixes
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* local calc for pice and liquidity
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove var
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix profile liquidity
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* global context, opc fee
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* comment
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* various fixes
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* refactor global context
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove nesting from market context
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix build
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix undefined appConfig
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* direct import of appConfig & siteContent
* this never changes on run time, so we should never have to wait for it and have it in js bundle at all times
* in utility methods, import directly
* for components, import directly in MarketMetadata context and pass through
* remove screen CSS fixes
* put back auto-fetching indicator, move manual refresh action behind debug
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-04-22 02:38:35 +02:00
EnzoVezzaro
3b023054dd
restore fetchAllData for any user ( #1318 )
2022-04-05 10:09:28 -07:00
EnzoVezzaro
4ded93afed
fix missing chain id on preview ( #1305 )
...
* fix missing chain id when user is not connected
* remove log
2022-04-04 17:56:05 +03:00
EnzoVezzaro
b574daee30
fix wrong TVL on pool tab ( #1281 )
...
* remove multiplier from totalLiquidityInOcean
* Revert "remove multiplier from totalLiquidityInOcean"
This reverts commit e6b5cc15d6
.
* restore totalLiquidityInOcean calculation
* getting user / owner liquidity from calcSingleOutGivenPoolIn + some clean up
* removed web3 hook in favor of dummyWeb3 connection
* remove calc on user liquidity (YVL)
2022-04-04 14:29:31 +01:00
EnzoVezzaro
47144d80b5
fix remove liquidity issues ( #1258 )
...
* reset slider after transaction
* fix issue on remove button hover
* restore transform on Button.module.css
* added check on accountId to avoid failing calls
* disable remove button on amountPercent = 0
2022-04-01 11:22:38 +03:00
6e2e46d8ea
Disable pool fetching interval ( #1265 )
...
* disable pool fetching interval
* change requestPolicy
* trigger refetch on back button click for add/remove
* fix memory leak error
* refetch on refocus
* add manual refresh button
2022-03-29 14:32:45 +01:00
claudiaHash
4331c24c0d
Restore Pool Shares section ( #1139 )
...
* get poolShares dt addresses
* style fixes
* class names fix
* remove useless changes
* fix
* try/catch blocks, loading fix
* show pool shares fix
* delete logs, fix build
* more try/catch blocks
* check subgraph url, add try/catch block
* fixes
* pool fields fix
* minor code fixes
* fix subgraph fetch
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove unused function, fixes
* use LoggerInstance, remove useless setter
* error messages fix, get rid of dt column
* small tweaks and tests
* fixes
* fixes
* modified flow for pool shares
* loading UX fixes
* unified calculations for pool liquidity
* stop the refetch madness
* profile provider already sets interval fetching for pool shares
* pool shares will change when chainIds, accountId is changed so no need to listen for changes again
* calculation tweaks
* pool stats tweak
* fix pool transactions
* fix data display in pool shares section
* minor fix, delete comment
* subgraph typings generation fix
* pool stats display tweaks
* price sizing fix
* rabbit hole fixes
* more price UI fixes
* cleanup
* wording consistency
* render all frontpage sections by default, load in assets after
Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
Co-authored-by: mihaisc <mihai@oceanprotocol.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-03-09 12:58:54 +00:00
mihaisc
af60018500
fix max add/remove liquidity ( #1141 )
...
* fix max add/remove liquidity
* fix graph liquidity
* small comment
* change liquidity graph to tvl, fix swap
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* change label
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* remove todo
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix max remove liquidity
2022-03-03 12:23:23 +00:00
claudiaHash
8a5bddbf6e
Restore trade tab ( #1047 )
...
* get swap fee, max values
* use baseToken instead of ocean
* build fixes
* set form trade tx - WIP
* use pool info
* logs deleted
* merge fixes
* use local ocean.js, get spot price
* handle value changes, logs deleted
* fixes after v4 merge
* valid user liquidity displayed
* get correct token amount
* more fixes
* form trade fixes
* positive input values fix
* use proper swap functions
* use appConfig's marketFeeAddress
* remove redundant setters
* use consumeMarketPoolSwapFee
* use poolInfo, remove log
* code fixes
* some more fixes
* fees fix
* use poolInfo data
* various fixes
* fixes and cleanup
* fix build
* partial decimal fix
* add swap fee
* fix sub updates
* remove console
* fix package
* fix package-lock
* remove ssh
* fix blockies and package
* fix comments
* remove unused var
Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
Co-authored-by: mihaisc <mihai@oceanprotocol.com>
2022-03-03 10:49:04 +00:00
mihaisc
677563d7c2
fix pool tab ( #1121 )
...
* query update
* fixes
2022-02-17 16:00:08 +00:00
mihaisc
8d1782a800
Restore order ( #1068 )
...
* minor refactors
* minor refactors
* fixes
* buy dt
* consumePrice + estimation
* various fixes
* cleanup
* fix build
* fix ssh issue
* feedback
* build fix
* ssh fix
* remove console.log
* suggested fixes
* other fixes
* switch to decimal
* more fixes
* more fixes
* fix
* some fee refactors
* more fee refactoring
* lib update, fre rename
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* minor refactors
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* build fixes
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* update + more refactoring
* calc price
* fix build
* restore accountId in effect
* fix order
* fix build and update lib
* fix order index
* fix comments
* pool fix
* remove console.log
* fix order fixed rate exchange
* fixed free order and messaging
* add comment
* minor type fix
* more type fixes
2022-02-14 08:27:36 -08:00
942ead1b4c
disable exhaustive-deps warning in Pool context ( #1094 )
2022-02-14 15:23:18 +00:00
EnzoVezzaro
b6dc52c0ab
change undefined with 0 as value to fix new Decimal error ( #1089 )
...
* change undefined with 0 as value to fix new Decimal error
* correction for fix changed undefined value with 0 as value to fix new Decimal error
2022-02-14 15:22:50 +00:00
b8c2b01b54
Pool stats updates and pool context provider ( #1057 )
...
* remove datatokens from liquidity stats, multiply base token
* naming: Pool Creator Statistics → Owner Liquidity
* remove all the noise
* more pool stats data
* simplify user liquidity data structure, remove datatoken calculations
* chart tweaks, new calculation for liquidity
* tweaks
* todo
* frontpage error fixes
* account switch fixes
* comment out fees
* pool context provider
* double pool share
* move subgraph-related methods into context provider
* typing fix
2022-02-07 14:58:47 +00:00