From 03648c61ea83252d408788ff6baf3441be721f2b Mon Sep 17 00:00:00 2001 From: Daniel Karzel Date: Thu, 7 Oct 2021 20:49:35 +1100 Subject: [PATCH] Fixed leverage of 2 instead of 5 --- daemon/src/model/cfd.rs | 2 +- frontend/src/MakerApp.tsx | 4 ++-- frontend/src/TakerApp.tsx | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/daemon/src/model/cfd.rs b/daemon/src/model/cfd.rs index cd8dca6..570a52e 100644 --- a/daemon/src/model/cfd.rs +++ b/daemon/src/model/cfd.rs @@ -108,7 +108,7 @@ impl Order { origin: Origin, oracle_event_id: OracleEventId, ) -> Result { - let leverage = Leverage(5); + let leverage = Leverage(2); let maintenance_margin_rate = dec!(0.005); let liquidation_price = calculate_liquidation_price(&leverage, &price, &maintenance_margin_rate)?; diff --git a/frontend/src/MakerApp.tsx b/frontend/src/MakerApp.tsx index ab32740..c0c0ce6 100644 --- a/frontend/src/MakerApp.tsx +++ b/frontend/src/MakerApp.tsx @@ -132,8 +132,8 @@ export default function App() { Leverage: - - + + diff --git a/frontend/src/TakerApp.tsx b/frontend/src/TakerApp.tsx index 9263a04..303ae8d 100644 --- a/frontend/src/TakerApp.tsx +++ b/frontend/src/TakerApp.tsx @@ -154,8 +154,8 @@ export default function App() { Leverage: - - + +