Norbi
63f0b41006
added slippage to trade approval ( #1252 )
2022-03-25 12:51:56 +00:00
Bogdan Fazakas
61d60fd173
Fix edit asset issues ( #1190 )
...
* fix loading
* fix cancel acction and some cleanups
* style typo
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
* fix title and replace router with link
* add proper loading to edit components
* add page title
* add more top spacing to form description
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-03-23 15:11:42 +00:00
EnzoVezzaro
aeb6f06f75
catch user signing rejection on download ( #1237 )
...
* catch user signing rejection on download
* change LoggerInstance.log to LoggerInstance.error
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-03-23 14:59:57 +00:00
claudiaHash
5f174bca88
Remove collect tokens button ( #1235 )
...
Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
2022-03-23 13:30:03 +00:00
EnzoVezzaro
926838862a
Fix No error message for swapping more than max tokens ( #1230 )
...
* moved Error (field) component in shared components
- moved Error.tsx from Pricing
- change paths to Error.tsx in publish
* added Error component with field validation
* change setTimeout with lodash.debounce
2022-03-22 15:50:51 +00:00
Bogdan Fazakas
ad09e2c99d
bump oceanjs to 1.0.0.next.29 ( #1228 )
...
* bump lib to 1.0.0.next.29
* add mising param to collectBT
2022-03-22 10:14:01 +02:00
Norbi
d1d24ef4d5
disable price calculation for free price ( #1198 )
...
* disable price calculation for free price
* make file icon visible on component mount
* check if accessDetails are present
2022-03-18 13:22:26 +00:00
Moritz Kirstein
9d1b7794a3
Feat: Display NFT in asset details ( #1125 )
...
* feat: add decodeTokenUri helper
* refactor: restructure of MetaMain component
* feat: add nft tooltip
* feat: add opensea link for nfts
* style: adjust nft image size in tooltip
* feat: add nft data to publish preview
* fix: readd owner to nft metadata
* refactor: conditional display of nft tooltip
* style: fix link styles in nft tooltip
* feat: add placeholder graphic as fallback if nft data does not contain one
* fix: display openSea link only on supported networks
* fix: rename ddo props to asset in metamain related components
* feat: add original publisher to asset details
* chore: remove unused imports
* fix: remove unused prop
* feat: convert publisher address to checksum address
* chore: remove console.error when decoding tokenURI
* Revert "chore: remove console.error when decoding tokenURI"
This reverts commit f387175970
.
* feat: shorten nft address in tooltip preview
* fix: use Web3.utils instead of the actual web3 instance to convert wei in ether
Co-authored-by: Luca Milanese <luca.milanese90@gmail.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2022-03-16 19:01:51 +00:00
Norbi
8b331c0a63
Fix/issue 1151 pool chart fill color ( #1193 )
...
* added colours for dark and light mode and refetch on appearance change
* keep same border colour
2022-03-16 15:35:31 +00:00
EnzoVezzaro
fc6e00669c
Feature/issue 1175 catch user rejection buy ( #1177 )
...
* fix approval rejection on buyDtFromPool
* fix approval rejection on order
2022-03-11 11:25:51 +00:00
ccb50b56e5
Preview action fixes ( #1171 )
...
* disable pool/trade tab in preview again
* hide collection button on preview
* cleanup
* render fix
2022-03-09 14:12:37 +00: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
claudiaHash
b63c644962
Collect tokens by publisher ( #1120 )
...
* get tokens balance wip
* use ButtonBuy component
* collect and sum base tokens
* delete logs, get tx
* center button
* feedback and loader added
* query by exchangeId
* fixes
* correct token symbol, set balance to 0 after collect
Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
2022-02-25 02:36:32 -08:00
Bogdan Fazakas
73f3080daf
Restore edit functionality ( #1107 )
...
* add content on edit pages
* display edit for user only
* add form actions
* add restore part of edit metadata logic
* adjust edit metadata
* wip edit compute settings
* added console logs
* wip edit compute
* updated edit compute flow
* updated style
* fix pricing various fixes
* fix edit acctions
* add debug on edit compute tab
* add debug on edit metadata tab
* more fixes
* lint fixes
* add pricing to edit metada
* restore timout edit
* protect edit route
* small fixes
* fixes and add edit feetback, loading, error, succes on submit
* timeout init values fix
* added setNftMetadata helper
* moved transfor asset to assetSelection from aquarius class
* fixed links, removed dispenser hacks
* fixed sample
Co-authored-by: mihaisc <mihai@oceanprotocol.com>
2022-02-25 02:33:07 -08: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
mihaisc
fc1f396c96
updates ( #1084 )
...
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2022-02-11 13:26:58 +02:00
mihaisc
463c850fc4
update ( #1065 )
2022-02-07 08:31:22 -08: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
d51d909a66
disable all inputs during submission in add/remove liquidity ( #1062 )
2022-02-04 18:21:35 +00:00
24fd4de584
fix file info ( #1061 )
2022-02-04 15:58:11 +00:00
8074a6143c
Refactor Asset context provider ( #1055 )
...
* refactor Asset context provider
* use useIsMounted hook
* typings and effect tweaks
* use chainId
* effect tweak
2022-02-03 14:31:43 +00:00
mihaisc
57be62a6b1
Refactor pricing and various components that are involved ( #1046 )
...
* update
* merge pr #1012
* fix header
* fix
* abort controller
* up next.8
* build fix
* update lock
* fix
* another fix
* ssh fix
* another ssh fix
* remove optional
* order mock
* small cleanup
* fix package
* price updates
* finish getPrice
* fix consume
* fix consume
* getConsumeDetails comments
* restore functionality after consumeDetails
* fix some compute typings
* more price fetching updates
* 'minor' refactors and fixed build
* package-lock fix
* minor comments
* minor naming changes
* fix
* fix pool badge
* remove console.log
2022-02-03 03:29:39 -08:00
ef6a5fda7f
calculate user liquidity with subgraph values ( #1053 )
2022-02-02 11:49:59 +00:00
2fb7ed3516
Merge pull request #1020 from oceanprotocol/v4-pool-graph
...
Pool chart updates, combine all pool data subgraph queries
2022-01-31 13:58:57 +00:00
claudiaHash
4b6be6da0c
Invalid transction link fix ( #1035 )
...
* get nft updates fix
* fix
* use nft update type
* message case fixed
* update message fix
Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
2022-01-31 13:15:52 +00:00
1eaec10ea9
center single data point
2022-01-31 12:42:23 +00:00
d4b42bf7a4
generated typing fix
2022-01-31 12:42:23 +00:00
1e54a9d573
merge all the pool data subgraph queries into one
2022-01-31 12:42:23 +00:00
1e24972aa7
tooltip styling fixes
2022-01-31 12:42:23 +00:00
fde7449aad
typescript, yolo
2022-01-31 12:42:23 +00:00
5683d7b187
re-render fixes
2022-01-31 12:42:23 +00:00
7a5651e3a8
spacing, more file moving around
2022-01-31 12:42:22 +00:00
58f1c884de
split up fetching & data manipulation, refactor
2022-01-31 12:42:22 +00:00
1e4446116b
update and migrate to chart.js & react-chartjs new major versions
2022-01-31 12:42:22 +00:00
52437616f2
add volume graph
2022-01-31 12:42:22 +00:00
d43920548f
fix liquidity & price graph
2022-01-31 12:42:22 +00:00
8293e9ad5f
subgraph update fixes
2022-01-31 12:41:58 +00:00
2f6323f141
Merge pull request #1017 from oceanprotocol/v4-liquidity
...
Restore add/remove liquidity
2022-01-28 11:54:41 +00:00
claudiaHash
c0f87410c5
No file info shown for valid files ( #1029 )
...
* get asset file info
* additional verification, logs deleted
* fixes
Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
2022-01-28 11:49:14 +00:00
9ce1f6f7d5
remove all the custom field change overwrites
2022-01-26 14:07:33 +00:00
a9aeed4aec
define token address & symbol only once
2022-01-26 12:41:21 +00:00
0db0bea3f6
more generic TokenApproval props, more logging
2022-01-26 12:06:09 +00:00
c10ca06dbc
fixes
2022-01-26 11:55:21 +00:00
08a691ceee
token approval & allowance fixes
2022-01-26 10:43:32 +00:00
8b31746e57
make remove output calculation work
2022-01-26 10:23:33 +00:00
bfdf7e1b24
prepare to use getAmountInExactOut
2022-01-26 10:23:33 +00:00
eaf29003c3
make remove work
2022-01-26 10:23:33 +00:00
a541cbcee0
refactor to use less hardcoded OCEAN
...
* ref #468
2022-01-26 10:23:33 +00:00