From ee83dbccebcba7a83f52b06f04fd2c001dfa6cf2 Mon Sep 17 00:00:00 2001 From: Marcin Ciarka Date: Mon, 11 Sep 2023 18:02:04 +0200 Subject: [PATCH] Put feature in one place --- configs/oasis-borrow/index.ts | 78 ++++++++++++++++++----------------- 1 file changed, 40 insertions(+), 38 deletions(-) diff --git a/configs/oasis-borrow/index.ts b/configs/oasis-borrow/index.ts index 3ea6492..696406e 100644 --- a/configs/oasis-borrow/index.ts +++ b/configs/oasis-borrow/index.ts @@ -2,43 +2,45 @@ import { ConfigHelperType } from "⌨️"; export default function ({ isProduction, notProduction }: ConfigHelperType) { return { - "🌞": false, // or https://summer.fi/harheeharheeharhee to enable. https://summer.fi/ to disable. - AaveV3Arbitrum: false, - AaveV3Borrow: false, - AaveV3EarncbETHeth: false, - AaveV3EarnrETHeth: false, - AaveV3History: false, - AaveV3Multiply: false, - AaveV3Protection: true, - AaveV3ProtectionWrite: true, - AjnaPoolFinder: true, - AjnaReusableDPM: false, - AjnaSafetySwitch: true, - AjnaSuppressValidation: false, - AnotherTestFeature: true, // used in unit tests - ConstantMultipleReadOnly: false, - DaiSavingsRate: true, - DisableSidebarScroll: false, - FollowAAVEVaults: false, - ProxyCreationDisabled: false, - ProxyReveal: false, - ReadOnlyAutoTakeProfit: false, - ReadOnlyBasicBS: false, - Referrals: true, - Sillyness: false, - SparkProtocol: true, - SparkProtocolBorrow: true, - SparkProtocolEarn: true, - SparkProtocolMultiply: true, - SparkProtocolSDAIETH: false, - StopLossOpenFlow: false, - StopLossRead: true, - StopLossWrite: true, - TestFeature: false, // used in unit tests - UseNetworkSwitcher: true, - UseNetworkSwitcherArbitrum: false, - UseNetworkSwitcherForks: false, - UseNetworkSwitcherOptimism: true, - UseNetworkSwitcherTestnets: false, + features: { + "🌞": false, // or https://summer.fi/harheeharheeharhee to enable. https://summer.fi/ to disable. + AaveV3Arbitrum: false, + AaveV3Borrow: false, + AaveV3EarncbETHeth: false, + AaveV3EarnrETHeth: false, + AaveV3History: false, + AaveV3Multiply: false, + AaveV3Protection: true, + AaveV3ProtectionWrite: true, + AjnaPoolFinder: true, + AjnaReusableDPM: false, + AjnaSafetySwitch: true, + AjnaSuppressValidation: false, + AnotherTestFeature: true, // used in unit tests + ConstantMultipleReadOnly: false, + DaiSavingsRate: true, + DisableSidebarScroll: false, + FollowAAVEVaults: false, + ProxyCreationDisabled: false, + ProxyReveal: false, + ReadOnlyAutoTakeProfit: false, + ReadOnlyBasicBS: false, + Referrals: true, + Sillyness: false, + SparkProtocol: true, + SparkProtocolBorrow: true, + SparkProtocolEarn: true, + SparkProtocolMultiply: true, + SparkProtocolSDAIETH: false, + StopLossOpenFlow: false, + StopLossRead: true, + StopLossWrite: true, + TestFeature: false, // used in unit tests + UseNetworkSwitcher: true, + UseNetworkSwitcherArbitrum: false, + UseNetworkSwitcherForks: false, + UseNetworkSwitcherOptimism: true, + UseNetworkSwitcherTestnets: false, + }, }; }