Commit Graph

116 Commits

Author SHA1 Message Date
Kirill Litvinov
ac6b331eca is trade buy 2024-05-22 22:51:03 +03:00
Kirill Litvinov
32836a2bde is exact receive 2024-05-22 22:09:11 +03:00
TheJuze
ed60833d58 Merge remote-tracking branch 'refs/remotes/origin/main' into remove-exactReceive
# Conflicts:
#	package.json
2024-05-15 16:58:02 +03:00
Kirill Litvinov
ed9fe7651e remove exactReceive 2024-05-13 15:19:31 +03:00
Mikhail Gladchenko
f8e4b643c3 Merge branch 'refs/heads/main' into OP-5247-frontend-optimization
# Conflicts:
#	package.json
2024-04-17 09:26:42 +01:00
KS
c821d8a802 removed crypto-js dependency 2024-04-04 17:55:26 +03:00
Kirill Litvinov
9e49345771 0.20.79-rc1 2024-04-02 15:07:26 +03:00
Mikhail Gladchenko
d024d475a7 fix: fix frontage config 2024-03-29 14:07:23 +00:00
Mikhail Gladchenko
12533dbb4a fix: fix for frontage config 2024-03-29 13:29:02 +00:00
Mikhail Gladchenko
8c27f339fc feat: frontage was added to Unit 2024-03-29 12:15:59 +00:00
Mikhail Gladchenko
57474d2872 feat: added frontage service 2024-03-29 08:49:00 +00:00
KS
b0873ab04c added PMM-sample.md , fixed order schema 2024-03-29 07:26:15 +03:00
Mikhail Gladchenko
555e26f842 feat: get from wallet first fix 2024-03-20 13:47:40 +00:00
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