From 7036d3e461102a0c29ca810cb8444c1c22689220 Mon Sep 17 00:00:00 2001 From: Piotr Witek <739075+piotrwitek@users.noreply.github.com> Date: Wed, 20 Sep 2023 12:43:47 +0200 Subject: [PATCH 1/2] added spark protocol stop loss --- configs/oasis-borrow/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configs/oasis-borrow/index.ts b/configs/oasis-borrow/index.ts index 04ad616..7c7efb7 100644 --- a/configs/oasis-borrow/index.ts +++ b/configs/oasis-borrow/index.ts @@ -33,6 +33,7 @@ export default function ({ isDevelopment: _isDevelopment, notProduction }: Confi TestFeature: false, // used in unit tests UseNetworkSwitcherForks: false, UseNetworkSwitcherTestnets: false, + SparkProtocolStopLoss: true, }, parameters: { topBanner: { @@ -43,8 +44,8 @@ export default function ({ isDevelopment: _isDevelopment, notProduction }: Confi aaveLike: { orderInformation: { showFlashloanInformation: notProduction, - } - } + }, + }, }, }; } From daa3ef9b6ff819ef88c51eb384146d999ccc9fb1 Mon Sep 17 00:00:00 2001 From: Piotr Witek <739075+piotrwitek@users.noreply.github.com> Date: Wed, 20 Sep 2023 12:48:23 +0200 Subject: [PATCH 2/2] edit --- configs/oasis-borrow/index.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/configs/oasis-borrow/index.ts b/configs/oasis-borrow/index.ts index 7c7efb7..60a290c 100644 --- a/configs/oasis-borrow/index.ts +++ b/configs/oasis-borrow/index.ts @@ -1,6 +1,10 @@ import { ConfigHelperType } from "⌨️"; -export default function ({ isDevelopment: _isDevelopment, notProduction }: ConfigHelperType) { +export default function ({ + isDevelopment: _isDevelopment, + notProduction, + isStaging, +}: ConfigHelperType) { return { features: { AaveV3ArbitrumBorrow: true, @@ -33,7 +37,7 @@ export default function ({ isDevelopment: _isDevelopment, notProduction }: Confi TestFeature: false, // used in unit tests UseNetworkSwitcherForks: false, UseNetworkSwitcherTestnets: false, - SparkProtocolStopLoss: true, + SparkProtocolStopLoss: isStaging, }, parameters: { topBanner: {