1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

12 Commits

Author SHA1 Message Date
65045ba7b9
put back Remove Liquidity components (#1551)
* put back Remove Liquidity components

* remove Pool Share Lock action
2022-06-28 14:44:32 +01:00
fc2aa5bf0e
V3 Sunset, the Start (#1456)
* Remove publish (#1451)

* gitignore Next.js stuff

* remove publish

* remove pricing creation components

* Remove Trade (#1453)

* Add market version dropdown (#1185)

* Add market version dropdown and disable publish

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Remove old tests and forms

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Update dropdown design

* roll back Pool button change

* new iteration

Co-authored-by: Matthias Kretschmann <m@kretschmann.io>

* put up announcement banner (#1455)

* Migration v3-v4 interface  (#1146)

* Adding start migration component

* Adding styles and updating text

* Conditional rendering - only showing start migration to the owner of the asset

* Removing unused imports

* creating Migration context provider

* Importing types from local v4-migration-lib package

* Adding migration contract addesses

* Setting migration contract address and creating fetchMigrationStatus function

* Updating MigrationStatusProvider interface & exports

* Updating the statMigration function

* Passing token name and symbol to smart contract

* creating lockPoolShares component

* Adding getUserPoolShareBalance

* Showing lockPoolShares component on asset detail page

* Adding migration context component

* Setting encrypted files

* Passing through dtAddress and poolAddress when starting migration

* Fixing build issues

* fixing type issues

* Updating the DT and NFT names / symbols

* Removing add / remove liquidity option when the pool migration is in progress

* Using useMigrationStatus in pool tab

* Lock pool shares not shown for pool owner

* Adding i-progress message

* Checking if threshold has been met

* Fixing approvals on lock pool shares

* Adding CreateV4Pool component

* Checking if deadline has passed

* Creating Cancel Migration component

* Updating Migration provider to fetch poolShares for user

* First draft migration

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Install test v4-migration-lib

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Fix linting and apollo errors

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Remove test component

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Update v4-migration-lib version

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Cover more emigration cases

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Fix migration message

* Update market migration with new workflow

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Update migration contract address

* Clean up console.logs

* add more networks

* Removing migration not started message + updating gitignore

* Refactoring to remove the migration not started yet message

* Fixing - hide lock poolshares button when shares are already locked

* Removing console log

* Adjusting message logic to create default message

* Removing block counter

* Removing threshold met contract call

* Updating message content for the migration

* Simplifying MigrationAction enum

* Removing console.log

* fix package-lock

* don't use old npm versions as it adds git+ssh all over the place, making Node.js v14 CI runs fail

* Simplifying logic for showing message and action

* Fixing getMessageAndAction()

* Removing unused state variable

* Removing unused state variables from Migration context provider

* more cleanup, leave only Rinkeby as test network

Co-authored-by: Jamie Hewitt <jamie.hewitt15@gmail.com>
Co-authored-by: alexcos20 <alex.coseru@gmail.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>

* Updating locked shares message + ensuring the message changes when the shares are locked (#1457)

* Adding start migration component

* Adding styles and updating text

* Conditional rendering - only showing start migration to the owner of the asset

* Removing unused imports

* creating Migration context provider

* Importing types from local v4-migration-lib package

* Adding migration contract addesses

* Setting migration contract address and creating fetchMigrationStatus function

* Updating MigrationStatusProvider interface & exports

* Updating the statMigration function

* Passing token name and symbol to smart contract

* creating lockPoolShares component

* Adding getUserPoolShareBalance

* Showing lockPoolShares component on asset detail page

* Adding migration context component

* Setting encrypted files

* Passing through dtAddress and poolAddress when starting migration

* Fixing build issues

* fixing type issues

* Updating the DT and NFT names / symbols

* Removing add / remove liquidity option when the pool migration is in progress

* Using useMigrationStatus in pool tab

* Lock pool shares not shown for pool owner

* Adding i-progress message

* Checking if threshold has been met

* Fixing approvals on lock pool shares

* Adding CreateV4Pool component

* Checking if deadline has passed

* Creating Cancel Migration component

* Updating Migration provider to fetch poolShares for user

* First draft migration

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Install test v4-migration-lib

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Fix linting and apollo errors

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Remove test component

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Update v4-migration-lib version

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Cover more emigration cases

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Fix migration message

* Update market migration with new workflow

Signed-off-by: Pablo Maldonado <pablo@oceanprotocol.com>

* Update migration contract address

* Clean up console.logs

* add more networks

* Removing migration not started message + updating gitignore

* Refactoring to remove the migration not started yet message

* Fixing - hide lock poolshares button when shares are already locked

* Removing console log

* Adjusting message logic to create default message

* Removing block counter

* Removing threshold met contract call

* Updating message content for the migration

* Simplifying MigrationAction enum

* Removing console.log

* fix package-lock

* don't use old npm versions as it adds git+ssh all over the place, making Node.js v14 CI runs fail

* Simplifying logic for showing message and action

* Fixing getMessageAndAction()

* Removing unused state variable

* Removing unused state variables from Migration context provider

* Adding startMigration function in for testing + updating refreshMigration function

* Updating locked shares message

Co-authored-by: Pablo Maldonado <pablo@oceanprotocol.com>
Co-authored-by: alexcos20 <alex.coseru@gmail.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>

* Checking if adding shares is allowed for Asset (#1458)

* fix dark mode banner text color (#1459)

* Update V4 Migration smartcontract address (#1460)

Update V4 Migration smartcontract address on Rinkeby

* Removing all code that was in V3 branch for testing (#1461)

* Removing all code that was in place for testing

* Removing complete migration function

* remove unused CSS files (#1462)

* remove Add/Remove for good (#1463)

* alert color tweaks, effect dependencies (#1464)

* V3 fix pool shares rounding (#1466)

* Changing UI to show pool shares rounded to 3 decimal places

* Fixing NaN shown in the UI when changing account

* Displaying locked pool shares to 3 decimals (#1467)

* Displaying locked pool shares to 3 decimals

* Removing else condition

* Updating text - removing mentions of migration (#1468)

* V3 fixes (#1469)

* Fixing - making sure migration status is not shown after changing accounts

* Updating text to remove V4 migration status+ fix typo + renaming data pool to datatoken pool

* Fixing typo - Please note

* Making title shorter

* Update title (#1470)

* Update MIGRATION_CONTRACT_ADDRESS for production (#1472)

* update banner: (#1474)

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

Co-authored-by: md0x <pablomaldonadoturci@gmail.com>
Co-authored-by: Jamie Hewitt <jamie.hewitt15@gmail.com>
Co-authored-by: alexcos20 <alex.coseru@gmail.com>
Co-authored-by: Pablo Maldonado <pablo@oceanprotocol.com>
Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2022-05-25 15:28:01 +03:00
Norbi
4b34e2f347
Token approval split-up (#640)
* Token approval component

* check if datatoken approved

* display token amount on button, add approve function

* approve token based on token type

* approve token for trade, remove for pool lequidity remove action

* verify approval on amount change

* show action button only if amount is approved

* catch approve error and stop loadin

* display token amount with 2 decimals on trade token approval

* infinite approval and UI fixes

* fixed alert warning not showing, account id for approve

* wip

* fixed displayed token amount to approve for swap

* token amount text fix

* lint error fix

* package version update

* version fix

* downgrade version

* fixed error for no wallet connected

* update package-lock

* display token name, and changed amount precision

* removed empty file, fixed token switch error

* refactor for better user experience

* move content

* ExplorerLink console error fixes

* UI tweaks

* slightly changed button logic

* fix Trade form approvals

* cleanup

* don't block add liquidity button

* merge fixes

* hook dependency cleanup

* dtItem fix, error fixes based on asset network match

* disable action button if field is not valid, undefined trade tokens

* fix infiniteApproval user preference saving

* remove unneccessary string conversion

* used Decimal for dtAmount and oceanAmount

* changed token spender address

* bump ocean.js to vo.17.5

* fix lint

* replace Number with Decimal

* fix getting to add liquidity screen without wallet connected

* fix crash when switching coins after value input

Co-authored-by: Norbi <katunanorbert@gmai.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
Co-authored-by: mihaisc <mihai@oceanprotocol.com>
2021-09-30 12:54:44 +02:00
bdccb0966f
Web3/Ocean splitup + full Polygon/Matic support (#433) 2021-03-17 11:44:26 +01:00
mihaisc
bb80c4df78
Swap tokens (#204)
* swap

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* validation and calculation

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* refactor

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* remove unused effect

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* fix interval

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* increase refresh timer, remove optional params

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* make inputs show up without wallet

* style fixes

* restyling

* styling

* more styling

* fix refresh price

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* remove test effect

* fixes, get data as early as possible from DDO and initial state

* refactor

* refactor

* refactor

* label tweaks

* copy

* typo

* prototype output

* remove price header

* ouput swap fee

* fix

* spacing

* copy

* refactor pool transaction titles

* copy

* update math

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* use messaging tweaks

* tab tweaks, output refactor

* fix dark mode selection style

* prototype output

* method tweaks

* slippage to 1%, added warnig banner

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* form tweaks

* error fix

* empty inputs by default

* longer intervals

* maxOcean validation fix

* slippage tolerance UI

* modified slippage UI

* refactor, refresh ocean user balance

* move typings/models around

* typing fix

* fixed output values

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* bump oceanlib

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* remove console.log

* remove placeholder

* tweak

* non-web3 browser tweak

Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
2020-11-16 16:21:15 +01:00
be8307f34d
User pool transactions on asset details (#193)
* refactored pool transactions component, output pool transactions on asset details

* styling

* remove sticky around asset actions

* hasAddedLiquidity simplification

* owner from useMetadata

* refactor, styling, number formatting

* refactor

* toggle pattern
2020-11-02 19:18:21 +01:00
0695390c41
fix remove liquidity message 2020-10-28 13:02:24 +01:00
e14d4ad9e0
disabled buttons 2020-10-26 18:20:34 +01:00
6a7c6819e4
refactor EtherscanLink 2020-10-23 15:22:01 +02:00
f33b3bb023
all successes need confetti 2020-10-16 10:00:16 +02:00
5eef2275fe
adding liquidity success output tweaks 2020-10-07 13:55:54 +02:00
56dc96a6c1
refactor 2020-08-31 11:34:56 +02:00