Bogdan Fazakas
41881ac6eb
fix getFairGasPrice
2022-08-10 16:19:04 +03:00
Bogdan Fazakas
8b1842e1e9
use try catch in sendTx
2022-08-10 15:52:43 +03:00
Bogdan Fazakas
7941829ad6
update fee calculations
2022-08-10 15:37:49 +03:00
Bogdan Fazakas
60a3f5af20
add suport for eip 1559
2022-08-10 15:25:43 +03:00
Miquel A. Cabot
8a4ca6c178
fix lint issues
2022-06-21 12:21:13 +02:00
Miquel A. Cabot
d387076a08
Remove try...catch from ContractUtils
2022-06-21 11:42:55 +02:00
Miquel A. Cabot
74b623cacc
set calculateEstimatedGas return value to any
2022-06-12 11:13:26 +02:00
Miquel A. Cabot
2cbb3c3ba8
rename estimateGas() to calculateEstimatedGas()
2022-06-11 23:38:22 +02:00
Miquel A. Cabot
d435d3c2be
change return type for estimateGas()
2022-06-10 22:52:07 +02:00
Miquel A. Cabot
f8d6610c64
remove unused imports
2022-06-09 13:08:44 +02:00
Miquel A. Cabot
252ff6a0f4
move functions from ContractUtils to Datatoken
2022-06-09 13:04:14 +02:00
Miquel A. Cabot
ad560ce4ef
move functions from ContractUtils to NFTFactory
2022-06-09 13:02:26 +02:00
Miquel A. Cabot
2636352a72
refactor utils/ imports
2022-06-03 14:12:00 +02:00
Miquel A. Cabot
f7a1183c90
remove default exports
2022-06-03 14:01:54 +02:00
Miquel A. Cabot
e4b1942e70
change Config file to src/config
2022-06-02 19:07:52 +02:00
Miquel A. Cabot
b3102c78c1
add decimals() function
2022-05-27 10:55:12 +02:00
Miquel A. Cabot
6f74add54b
revert console.log estimateGas() result
2022-05-12 21:33:16 +02:00
Miquel A. Cabot
079a583041
console.log estimateGas() result
2022-05-12 19:02:44 +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
ec10f43ac7
Use ZERO_ADDRESS constant in src folder files
2022-04-11 13:19:26 +02:00
Miquel A. Cabot
ea74e4fc38
use ZERO_ADDRESS constant
2022-04-06 14:25:34 +02:00
Miquel A. Cabot
2af104497a
change return type
2022-04-05 15:28:35 +02:00
Miquel A. Cabot
23101a185f
add generic estimateGas() function
2022-04-05 14:53:04 +02:00
Soon Huat
4c5da01d66
change address[1] to paymentCollector based on smart contract ( #1375 )
...
Co-authored-by: Soon Huat <soon_huat.phan@daimler.com>
2022-03-29 15:40:30 +01:00
Norbi
a0e43235dd
Replace toWei/fromWei when base token conversion ( #1318 )
...
* replaced toWei inside FRE
* added amountToUnits for maxPrice inside pool
* replaced fromWei
* add web3 param to getPoolCreationParams
* added await before amountToUnits inside swapExactAmount
* swapExactAmount update
* add await to unitsToAmount inside setRate
* convert newRate to string
* replaced unitToAmounts with amountToUnits inside setRate
* replace unitToAmounts with amountToUnits
* added await
* replaced String() with toSting()
* replaced String() in Provider
* transform newRate into wei inside estimateSetRate
* replace toWei inside getFreCreationParams
* added web3 param to getFreCreationParams
* add amountToUnits inside getFreOrderParams
* added logs
* removed unitsToAmount from fixed rate
* removed amountToUnits inside marketFee
* removed logs
2022-03-16 12:44:53 +02:00
mihaisc
de4dde37b3
fix fixed order params ( #1287 )
2022-02-14 07:15:21 -08:00
mihaisc
3845335251
Remove redundant get in calcBaseInGivenOutDT
( #1283 )
...
* fix
* fix unitsToAmount
* fix
2022-02-14 03:34:46 -08:00
mihaisc
6f12e28ada
fix redundancy ( #1278 )
...
* fix redundancy
* convert to wei fixed price
* fix test
2022-02-11 04:45:15 -08:00
mihaisc
3c315eb49d
fixes ( #1273 )
...
* fixes
* fix test
* fix swap
* fix test
* fix test
* more fixes
* fixes
* change swapMarketFee from wei to decimal
* fix
2022-02-10 07:38:48 -08:00
Bogdan Fazakas
14862f6a3a
Moved interfaces under types and some small fixes ( #1253 )
...
* moved interfaces and some fixes
* throw proper error messages on try catch blocks in pool class
2022-02-07 08:06:58 -08: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
Bogdan Fazakas
ed2fe3a40e
Merge branch 'v4main' into feature/own-gas-contract-options
2022-01-20 09:20:32 +02:00
Bogdan Fazakas
34074a74a6
applied suggestions on ContractUtils helper
2022-01-20 09:13:39 +02:00
Bogdan Fazakas
4d60a16f6e
added default contract options and gas in config
2022-01-12 22:56:36 +02:00