loop/liquidity
carla 3e7782e1ab
liquidity: use builder in single place
In preparation of supporting multiple swap types, we move our swap
builder into a single place, so that we can check our `maySwap`
restriction per-swap (since we'll now have different checks for
different swap types.

To save ourselves from making multiple calls to the loop server for
the restrictions placed on each swap type, we still pass a single
set of restrictions in.
2021-11-30 13:18:29 +02:00
..
autoloop_test.go liquidity: add type to rules 2021-11-30 13:18:27 +02:00
autoloop_testcontext_test.go liquidity: move fees behind interface 2021-03-04 10:14:35 +02:00
balances.go liquidity: add peer-level liquidity rules to allow aggregate management 2021-02-17 10:56:30 +02:00
fees.go liquidity: update default fee setting to flat percentage 2021-03-04 10:21:22 +02:00
interface.go liquidity: add swap builder interface 2021-09-28 10:31:04 +02:00
liquidity.go liquidity: use builder in single place 2021-11-30 13:18:29 +02:00
liquidity_test.go liquidity: add type to rules 2021-11-30 13:18:27 +02:00
log.go liquidity: make swap suggestions aware of ongoing swaps 2020-09-30 12:46:32 +02:00
loopout.go liquidity: move loopout swap suggestion out of interface file 2021-09-17 12:50:39 +02:00
loopout_builder.go liquidity: add swap builder interface 2021-09-28 10:31:04 +02:00
reasons.go multi: add flat fee percentage to autoloop 2021-03-04 10:14:37 +02:00
restrictions.go liquidity: add manager with updatable parameters 2020-09-02 11:48:27 +02:00
threshold_rule.go liquidity: add type to rules 2021-11-30 13:18:27 +02:00
threshold_rule_test.go liquidity: generalize threshold rule variable names 2021-11-30 13:18:26 +02:00