Keep leverage
diff --git a/src/constants/assets.ts b/src/constants/assets.ts
index 287bd1ec..86ad0868 100644
--- a/src/constants/assets.ts
+++ b/src/constants/assets.ts
@@ -154,6 +154,7 @@ export const ASSETS: Asset[] = [
isBorrowEnabled: true,
isAutoLendEnabled: true,
pythPriceFeedId: 'eaa020c61cc479712813461ce153894a96a6c00b21ed0cfc2798d1f9a9e9c94a',
+ pythHistoryFeedId: 'Crypto.USDC/USD',
poolId: ENV.NETWORK === NETWORK.DEVNET ? 678 : 1221,
pythHistoryFeedId: 'Crypto.USDC/USD',
},
diff --git a/src/hooks/useUpdatedAccount/index.ts b/src/hooks/useUpdatedAccount/index.ts
index e5e3f620..1b6ae28a 100644
--- a/src/hooks/useUpdatedAccount/index.ts
+++ b/src/hooks/useUpdatedAccount/index.ts
@@ -41,6 +41,7 @@ export function useUpdatedAccount(account?: Account) {
const [removedLends, removeLends] = useState([])
const [addedTrades, addTrades] = useState([])
const [leverage, setLeverage] = useState(0)
+
const removeDepositAndLendsByDenom = useCallback(
(denom: string) => {
if (!account) return
diff --git a/validate-env.js b/validate-env.js
index cefc2f02..646f28c6 100644
--- a/validate-env.js
+++ b/validate-env.js
@@ -36,8 +36,11 @@ if (!process.env.NEXT_PUBLIC_VAULT_APR) {
if (!process.env.NEXT_PUBLIC_PARAMS) {
throw 'NEXT_PUBLIC_PARAMS is not defined'
}
-if (!process.env.NEXT_PUBLIC_CANDLES_ENDPOINT) {
- throw 'NEXT_PUBLIC_CANDLES_ENDPOINT is not defined'
+if (!process.env.NEXT_PUBLIC_CANDLES_ENDPOINT_PYTH) {
+ throw 'NEXT_PUBLIC_CANDLES_ENDPOINT_PYTH is not defined'
+}
+if (!process.env.NEXT_PUBLIC_CANDLES_ENDPOINT_THE_GRAPH) {
+ throw 'NEXT_PUBLIC_CANDLES_ENDPOINT_THE_GRAPH is not defined'
}
if (!process.env.CHARTING_LIBRARY_USERNAME) {
throw 'CHARTING_LIBRARY_USERNAME is not defined'