1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

16 Commits

Author SHA1 Message Date
Miquel A. Cabot
cab4d5b1a7 restore estApprove() function and add estTransfer() function 2022-05-16 15:48:40 +02:00
Miquel A. Cabot
0a0d96aa01 Merge branch 'v4main' into add-transfer-function-to-tokenutils 2022-05-16 15:23:39 +02:00
Miquel A. Cabot
f1f5792114 Merge branch 'v4main' into add-transfer-function-to-tokenutils 2022-05-12 17:49:16 +02:00
Miquel A. Cabot
fa6c27292c Merge branch 'v4main' into issue-1391-generic-estimategas-function 2022-05-12 17:28:30 +02:00
Miquel A. Cabot
f8a42d9559
Issue-#1409: Excessive contract calls (#1424)
* add decimals parameter to unitsToAmount() and amountToUnits()

* unify use of amountToUnits() and unitsToAmount()

* use tokenDecimals in TokenUtils

* add tokenDecimals to functions in SideStaking

* add parameters to doc comments

* calculate amountToUnits and unitsToAmount using  decimals in FixedRateExchange

* remove unused amountToUnits() function from SideStaking

* use decimals in unitsToAmount() function in Pool

* add tokenInDecimals and tokenOutDecimals to TokenInOutMarket interface

* use decimals in amountToUnits() function in Pool

* fix errors related to pool decimals

Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2022-05-03 19:06:39 +03:00
Miquel A. Cabot
9ac87e9173 Merge branch 'v4main' into add-transfer-function-to-tokenutils 2022-04-28 17:20:13 +02:00
mihaisc
548f31ced3
fix (#1426)
Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>
2022-04-20 16:49:27 +03:00
Miquel A. Cabot
652ec73892 solve lint errors 2022-04-05 17:21:41 +02:00
Miquel A. Cabot
1380661c97 use estimateGas() function in TokenUtils 2022-04-05 16:26:40 +02:00
Miquel A. Cabot
605812ee7f estimate gas without using the function signature 2022-04-05 10:24:27 +02:00
Miquel A. Cabot
2fe89b476a update comments 2022-04-04 10:22:03 +02:00
Miquel A. Cabot
f34573be44 create a generic estimateGas() function 2022-04-04 09:37:30 +02:00
Miquel A. Cabot
0735a4b4e3 update comments related to amount units 2022-04-01 16:31:37 +02:00
Miquel A. Cabot
02fa3b8912 remove unused parameters 2022-04-01 16:27:41 +02:00
Miquel A. Cabot
a4a7a7e469 add transfer() and estTransfer() functions 2022-04-01 12:49:38 +02:00
mihaisc
56a3aad20d
heleper+ remove old ibs (#1238)
* heleper+ remove old ibs

* fix tests

* fix gaslimt

* fix approve

* fix

* remove console.log

* upate package-lock
2022-01-25 08:32:55 -08:00