2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-16 00:12:52 +00:00
Commit Graph

6 Commits

Author SHA1 Message Date
carla
25b8d20f75
liquidity: add type to rules
In preparation for adding loop in swaps, we relate liquidity rules
to a specific type of swap that we want to dispatch. This allows us
to use a single rule format for multiple swap types.
2021-11-30 13:18:27 +02:00
carla
00c2d4e5f0
liquidity: generalize threshold rule variable names
The current wording in this function is very specific to loop out.
In this commit, we refactor to use `target` and `reserve` rather
than inbound and outbound so that it can be used more generically.
2021-11-30 13:18:26 +02:00
carla
9c35946cab
liquidity: simplify suggest swap to return swap amount 2021-02-16 13:31:48 +02:00
carla
8db6b32d74
liquidity: add swap suggestions for threshold rule for loop out 2020-09-03 10:36:42 +02:00
carla
cd8a7704af
liquidity: add calculations for threshold rule 2020-09-03 10:36:41 +02:00
carla
ce10cc7959
liquidity: add manager with updatable parameters 2020-09-02 11:48:27 +02:00