Commit Graph

103 Commits

Author SHA1 Message Date
KS
13f6a9fa7d fixed typos, added pmm.getContractAddress() method 2024-03-11 12:34:29 +03:00
KS
6f5b537c47 added PMM 2024-03-10 20:28:00 +03:00
Mikhail Gladchenko
c597fa0805 Make Indexer optional (#231)
* feature: added new Thena exchange and indexer was made optional

* fix: updated indexer types

* Update package.json

* fix: updated indexer types

* fix: updated indexer types

* fix: updated indexer types

---------

Co-authored-by: TheJuze <dimanikus0106@gmail.com>
2024-02-02 10:39:02 +03:00
Steam Deck User
769719293f fix: make matcher, feeAsset, fee fields of BaseGenerateSwapCalldata optional 2024-01-16 19:32:26 +04:00
Alex Kraiz
c42e660867 fix: swapMarket and swapLimit 2024-01-04 17:47:53 +04:00
Alex Kraiz
0633f9c113 fix: swapMarket / swapLimit 2024-01-04 11:21:04 +04:00
Alex Kraiz
994e6d44fa feat: return back swap market / limit 2024-01-04 02:59:34 +04:00
Alex Kraiz
c16c34514d Merge branch 'main' into main 2024-01-04 02:40:54 +04:00
Steam Deck User
a0bed6b5b6 transform all addresses to lower case x2 2023-12-18 13:38:09 +04:00
Steam Deck User
7672b9daf8 transform all addresses to lower case 2023-12-18 13:10:08 +04:00
Steam Deck User
06f1f3d8cf add debug console.log 2023-12-18 13:01:56 +04:00
Steam Deck User
fc00a8bff0 fix types 2023-12-18 12:42:38 +04:00
Steam Deck User
b38f0ba424 convert addresslike to string 2023-12-18 11:56:27 +04:00
Steam Deck User
7cd71b2c60 fee parameter should be in exchange decimals 2023-12-18 11:10:35 +04:00
Steam Deck User
54bf512d21 delete depricated addLiquidityToPool functionality 2023-12-15 18:04:51 +04:00
Steam Deck User
826b3b508c added fee payment to matcher if dst.Token === feeToken 2023-12-15 17:55:44 +04:00
Steam Deck User
1af36a83ca fix don't check allowance when token is native 2023-12-13 19:15:50 +04:00
Alex Kraiz
47d671a9f7 fix: params count in swap funct; feat: added comments 2023-12-11 13:39:23 +04:00
Steam Deck User
99d02a42cd fix not zero eth value when srcToken not eth 2023-12-08 16:05:41 +04:00
Steam Deck User
2698434ab1 fix build, delete unused imports 2023-12-08 15:13:17 +04:00
Steam Deck User
bbf7f664c7 add useExchageBalance function, add balance and allowance validation 2023-12-08 15:08:56 +04:00
lomonoshka
3c56cd0926 fix incorrect definition of useExchangeBalance 2023-11-30 14:59:40 +04:00
lomonoshka
4d2e006db0 dont use exchangeBalance if it's 0 2023-11-30 14:46:52 +04:00
lomonoshka
9d794b5428 fix return eth value type BigInt => bigint 2023-11-30 14:28:20 +04:00
lomonoshka
e0acb78d4f swaps nativeToken => anyToken use exchangeBalance as a priority; generateSwapCalldata now also returns eth value for transaction 2023-11-30 14:15:49 +04:00
lomonoshka
ff8729a1d3 fix: fix bug with curve calldata generation while in crossfactory 2023-11-29 20:03:47 +04:00
lomonoshka
91b5ca3239 hotfix: fix calldata generation for nativeAsset => anyAsset 2023-11-29 18:41:46 +04:00
Dmitry
d38d8bd715 OP-4758: fix generateSwapCallData (#214) 2023-11-27 15:56:34 +03:00
lomonoshka
8fe0c4314c hotfix: support for ticker and address in generateSwapCalldata 2023-11-09 19:04:47 +04:00
Dmitry
a0d2df3cd5 Rename integrator to indexer (#207) 2023-11-09 10:56:32 +03:00
lomonoshka
ad40b10f78 fix exchangeToNativeDecimal function 2023-11-03 18:34:43 +04:00
lomonoshka
827b2d32cd fix passing ticker instead of token address 2023-11-03 14:59:04 +04:00
lomonoshka
fa0a9d09ce remove unused imports and variables 2023-11-03 13:21:45 +04:00
lomonoshka
47e68cc7fa fix denormolized wallet balance error 2023-11-03 13:16:16 +04:00
lomonoshka
8e018aa1b0 fix: correct exchange::generateSwapCalldata params type 2023-11-01 13:02:08 +04:00
lomonoshka
935412724e fix: correct swapDescription.flags initialization to enable contract balance for swaps 2023-10-31 20:56:25 +04:00
lomonoshka
fa5863b42c Fix patching with eth balance 2023-10-31 10:44:23 +04:00
lomonoshka
83f4a54ef8 Fix single factory srcReceiver bug 2023-10-30 20:43:39 +04:00
lomonoshka
4d9f09bc21 Add final transfer from executor in any case 2023-10-30 20:24:58 +04:00
lomonoshka
43e0fa0abe fix build 2023-10-30 20:10:50 +04:00
lomonoshka
31efda9969 Return exchange precision in swapDescription 2023-10-30 20:07:06 +04:00
lomonoshka
cdc3a78eb9 Change final transfer location. Add wrap/unwrap functionality 2023-10-30 19:54:47 +04:00
lomonoshka
92d7e2028e export generateCalldata function without unit param 2023-10-27 15:41:22 +04:00
lomonoshka
c23958ad6e Fixed ethers contracts version 2023-10-11 16:27:57 +04:00
lomonoshka
20cf407de2 Minor review fixes 2023-10-10 19:26:28 +04:00
lomonoshka
9880459e3c Merged with main 2023-10-10 19:03:38 +04:00
Dmitry Leleko
5037ca66ab Merge branch 'main' into integrator_service 2023-10-04 09:08:54 +02:00
Alex Kraiz
902b5f3994 consistent imports 2023-10-03 16:54:40 +04:00
Mikhail Gladchenko
b18a2fa2ef Merge remote-tracking branch 'origin/main' into feat/ethers-v6
# Conflicts:
#	package-lock.json
#	package.json
2023-10-02 15:46:31 +01:00
Kirill Litvinov
bff9be6d83 remove console log 2023-10-02 16:57:10 +03:00