aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-12-17 11:13:00 -0800
committerAdam Soltys <[email protected]>2020-12-17 11:13:00 -0800
commit24519e69921617d1f9639ef3e65a19539e640a78 (patch)
treed51faba1545c3c3bee036eb2b7e54b8655b382b7 /routes
parent3e4537cff33a27282d4c8c326c8132b9298711eb (diff)
downloadcoinos-server-24519e69921617d1f9639ef3e65a19539e640a78.tar.gz
coinos-server-24519e69921617d1f9639ef3e65a19539e640a78.zip
configurable maker prices
Diffstat (limited to 'routes')
-rw-r--r--routes/swaps.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/routes/swaps.js b/routes/swaps.js
index feaa2ad2..f825ef55 100644
--- a/routes/swaps.js
+++ b/routes/swaps.js
@@ -756,7 +756,7 @@ app.post(
);
if (config.maker)
- config.maker.map(({ amount, c1, c2, currency }) => {
+ config.maker.map(({ amount, c1, c2, currency, askMultiplier, bidMultiplier }) => {
setInterval(async () => {
if (!app.get("rates")) return;
@@ -798,7 +798,7 @@ if (config.maker)
SATS *
(((app.get("ask") * app.get("rates")[currency]) /
app.get("rates")["USD"]) *
- 1.01)
+ askMultiplier)
)
};
@@ -881,7 +881,7 @@ if (config.maker)
SATS *
((app.get("bid") * app.get("rates")[currency]) /
app.get("rates")["USD"]) *
- 0.99
+ bidMultiplier
),
v2: amount * SATS
};