Commit Graph

97 Commits (master)

Author SHA1 Message Date
George Tsagkarelis a9be69b281
multi: use isExternalAddr flag 3 months ago
András Bánki-Horváth 7dd30a731e
Merge pull request #644 from bhandras/easy-autoloop-destaddr-fixup
liquidity: dest address support for easy autloop
7 months ago
Andras Banki-Horvath 87c8ca0d8b
liquidity: dest address support for easy autloop 7 months ago
Oliver Gugger 08026dab93
multi: update linter, fix issues 7 months ago
Slyghtning fd6a9cf3e9
loopin: consider settled invoices success 8 months ago
George Tsagkarelis e9bc1dcc9e
multi: add initiator to mocked interfaces for tests 9 months ago
George Tsagkarelis 921f4d06e7
multi: integrate initiator string to various calls 9 months ago
Slyghtning 21281e3eb8
liquidity: xpub support for autoloop 9 months ago
Konstantin Nick 0781cafbfb
Merge pull request #585 from sputn1ck/sqlite
Migrate from boltdb to sql
10 months ago
sputn1ck becc8a38d8
multi: use context in loopdb call
This commit adds a context to our loopdb interface, which we should use
in the sqlite migration.
10 months ago
George Tsagkarelis afca558817
liquidity: add false-positive checks on autoloop tests 11 months ago
George Tsagkarelis dbb49cfa05
liquidity: test low feeppm case for easyautoloop 11 months ago
George Tsagkarelis 64d2cbe5d6
liquidity: respect feeppm if set for easyautoloop 11 months ago
George Tsagkarelis 319a519309
Merge pull request #591 from GeorgeTsagk/autoloop-easy-tag
Autoloop easy tag
11 months ago
George Tsagkarelis dcc28936ce
liquidity: bump miner multiplier in autoloop-in test
After the FeePPM miner fee fix there has probably been a race condition
in this test. The test would expect only one of the two quotes to work,
as one had a marginally high miner fee. After the FeePPM fix that miner
fee was considered valid and we dispatched two swaps instead of one,
with the test setup examining the first one that reached the go channel.
11 months ago
George Tsagkarelis 1f72dcc095
liquidity: use easy autoloop labels 11 months ago
George Tsagkarelis a48924a664
liquidity: get autoloop flag directly from params
Previously we would exclusively pass the autoloop boolean to multiple
functions while they had directly access to the manager's parameters.
With this commit we remove this explicit flag from the various function
interfaces and retrieve the value directly from the parameters.
11 months ago
George Tsagkarelis 9a9766775a
liquidity: add easy autoloop test 11 months ago
George Tsagkarelis fad9f40ae3
liquidity+loopd: add easy autoloop
Adds the easy autoloop function which executes a budget update and the
best easy-autoloop swap. The easy-autoloop function re-uses functions
used in the normal autoloop that relate to on-going swaps and traffic
summary.
11 months ago
George Tsagkarelis 36f014ac0a
liquidity: fix tests to reflect new miner fee scaling 12 months ago
George Tsagkarelis 102d3cdd1a
liquidity: differentiate autoloop expected vs max miner fees 12 months ago
George Tsagkarelis bf4f72fd8d
liquidity: exclude prepay from total swap fees 1 year ago
Andras Banki-Horvath 4d34eb97ce
build: fixup new linter issues 1 year ago
George Tsagkarelis 55c769ef9d
liquidity: parse old auto budget to new parameters 1 year ago
George Tsagkarelis aca6428b0e
liquidity+loopd: move last budget refresh to parameters 1 year ago
George Tsagkarelis c17e5a6fc6
liquidity: fix tests for autoloop sticky loop out 1 year ago
George Tsagkarelis af7a470aea
liquidity+loopd: add sticky loop out swap with amount backoff 1 year ago
George Tsagkarelis 3b896babc6
liquidity: add test for recurring budget 1 year ago
George Tsagkarelis 5d6be011f9
liquidity: tweak autoloop tests for recurring budget 1 year ago
George Tsagkarelis b025b9ae37
multi: add recurring autoloop budget 1 year ago
George Tsagkarelis a14f6e8bd6
liquidity: add autoloop test for outaddr 1 year ago
George Tsagkarelis fa0393b331
multi: add OutAddr parameter for autoloop loop out 1 year ago
Andras Banki-Horvath 88956455b4
multi: completely remove support for NP2WSH htlcs
This commit removes all code related to NP2WSH htlcs. These were
historically used when segwit adoption was very sporadic and are not
used anywhere anymore. Some historical swaps stored in the DB may be
listed with incorrect htlc adresses from here on.
1 year ago
sputn1ck 0f924b36cd
multi: bump lndclient and lnd version to latest
Co-authored-by: Oliver Gugger <gugger@gmail.com>
2 years ago
Andras Banki-Horvath 391ef57ea3
loopout: enable p2tr without keyspend 2 years ago
Andras Banki-Horvath 901a935514
loopin: enable p2tr htlcs without keyspend 2 years ago
yyforyongyu 425a007aaf
loopd+liquidity: persist parameters on disk
This commit saves the RPC request used to construct the `Parameters` on
disk. Since it's a proto message, an easy way to read/write it is to
rely on the proto marshal/unmarshal methods. A side effect is that
migration also becomes easy as proto message have its own internal
mechanism to keep track of the compatibility.
2 years ago
yyforyongyu 8217ee31c3
liquidity+loopd: refactor `SetParameters` to take a rpc request
This commit refactors the method `manager.SetParameters` to take a
`SetLiquidityParamsRequest`. As we'll see in the following commit, this
will enable us saving the params to disk more easily.
2 years ago
yyforyongyu 9c5ac0fb36
liquidity: move parameters into a new file
This commit refactors the `liquidity` by moving `Parameters` related
code into one file.
2 years ago
Oliver Gugger d5952f1202
multi: bump all dependency to use lnd 0.15.0-beta.rc4
This commit bumps all dependencies to be in line with what's required
for the current release candidate of lnd 0.15.0-beta.
2 years ago
sputn1ck a1271fee40
multi: fix linter issues 2 years ago
Harsha Goli 7a16e3b25d
multi: bump btcec/v2 and btcutil to new versions 2 years ago
carla 66d16f52a7
liquidity/test: add autoloop in tests 2 years ago
carla 5280721636
multi: add ability to autoloop in 2 years ago
carla f6c3d77c51
liquidity/test: use mock for server restrictions
This change makes the test easier to change when we add loop in
restrictions as well.
2 years ago
carla 5e47a0c6e9
multi: add loop in swap builder implementation 2 years ago
carla 26886731d4
multi: remove shadowed label variable in loopin swaps
We already have a Label field in the embedded SwapContract
field for loop in swaps. This commit removes an erroneously
added Label field in LoopInContract which may be a cause of
ambiguity when referencing this field.
2 years ago
carla 8113c34bce
liquidity: add failed loop in swaps to swap traffic 2 years ago
carla 965b99d455
liquidity: add existing loop in swaps to budget calculations 2 years ago
carla 0f0be28599
liquidity: add loop in fees to fee categories 2 years ago