Jamie Hewitt
8819a66e67
Remove risks warning ( #1420 )
...
* Removing risks warning from add liquidity tab
* Removing risks warning from add trade tab
* Removing isWarningAccepted state variable
2022-05-11 13:29:07 +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
claudiaHash
6324e85b0f
Incorrect wallet balance on trade tab fix ( #1310 )
...
* display the actual base token wallet amount
* delete logs
* balance dt fix
* width changes
* remove last commit changes
* sell values
* balance fix for dt item
* logs and comments removed
* fix max calculations
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* disable inputs on trade actions
* clear inputs after submit and catch tx errors
* fix dep
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fetch reserver from contracts
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix null and tag key
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* fix
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* label change and cleanup
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
Co-authored-by: ClaudiaHolhos <claudia@oceanprotocol.com>
Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
Co-authored-by: Enzo Vezzaro <enzo-vezzaro@live.it>
2022-05-05 15:14:37 +03: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
Norbi
63f0b41006
added slippage to trade approval ( #1252 )
2022-03-25 12:51:56 +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
Matthias Kretschmann
d51d909a66
disable all inputs during submission in add/remove liquidity ( #1062 )
2022-02-04 18:21:35 +00:00
Matthias Kretschmann
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
Matthias Kretschmann
ef6a5fda7f
calculate user liquidity with subgraph values ( #1053 )
2022-02-02 11:49:59 +00:00
Matthias Kretschmann
a9aeed4aec
define token address & symbol only once
2022-01-26 12:41:21 +00:00
Matthias Kretschmann
64a25f3f3e
use Asset from ocean.js, adapt to new structure
2022-01-11 19:45:14 +00:00
Matthias Kretschmann
b5b0297ae4
refactor for new ocean.js, make the build work
2022-01-11 19:05:07 +00:00
mihaisc
4caf72d0c9
Fix/old lib dep ( #959 )
...
* fixes
* change aqua url
* update future v4 url
2021-12-10 03:33:47 -08:00
Matthias Kretschmann
3d4b30c00f
new DDO ( #941 )
...
* type out new DDO
* remove all DDO ocean.js imports
* move over as much as possible to new DDO structure
* DDO/Asset split-up
* use Asset typing instead of DDO almost everywhere
* more typings
* more DDO refactor
* ddo typings updates
* more DDO updates
* updates
* ddo updates
2021-11-11 07:51:13 +00:00
Matthias Kretschmann
3729c63581
migrate to Next.js ( #935 )
...
* migrate to Next.js
* migrate scripts
* generate markdown pages
* make all the markdown work
* fix profile, fix image loading
* git+ssh → git+https, again
* bump packages
* maybe windows build fix
* add public to gitignore
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
* Next.js v12! Webpack 5! No build hacks anymore
* json import fixes
* fixes
Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2021-10-27 11:30:32 +01:00
Matthias Kretschmann
51785d54dd
more reorganization
2021-10-27 11:29:03 +01:00
Matthias Kretschmann
f951910dc2
reorganize all the things
2021-10-27 11:28:59 +01:00