Skip to content

Commit

Permalink
Merge pull request #164 from marsfoundation/show-usdc-deposit-btn
Browse files Browse the repository at this point in the history
  • Loading branch information
krzkaczor authored Oct 20, 2023
2 parents 5b4ef67 + 9dd3430 commit 295e45a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ NEXT_PUBLIC_API_BASEURL=https://api.spark.fi
#NEXT_PUBLIC_FORK_BASE_CHAIN_ID=1
#NEXT_PUBLIC_FORK_CHAIN_ID=1
#NEXT_PUBLIC_FORK_URL_RPC="https://rpc.tenderly.co/fork/1234567"
NEXT_PUBLIC_ENABLE_GNOSIS=1
NEXT_PUBLIC_ENABLE_GNOSIS=1
NEXT_PUBLIC_HIDE_USDC_DEPOSITS=0
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ NEXT_PUBLIC_TURNSTILE_SITE_KEY=0x4AAAAAAABe-kMUW_1JUfT7
NEXT_PUBLIC_FORK_BASE_CHAIN_ID=1
NEXT_PUBLIC_FORK_CHAIN_ID=1
NEXT_PUBLIC_FORK_URL_RPC=https://rpc.tenderly.co/fork/1234567
NEXT_PUBLIC_HIDE_USDC_DEPOSITS=0
1 change: 1 addition & 0 deletions custom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ namespace NodeJS {
NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID: string;
NEXT_PUBLIC_VPN_PROTECTION: string;
NEXT_PUBLIC_DISABLE_SDAI_MARKET?: '1' | '0';
NEXT_PUBLIC_HIDE_USDC_DEPOSITS?: '1' | '0';
NEXT_PUBLIC_ENABLE_GNOSIS?: '1' | '0';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export const SupplyAssetsList = () => {
reserve.symbol === 'DAI' || reserve.symbol === 'USDC' || reserve.symbol === 'sDAI',
hideSupply:
reserve.symbol === 'DAI' ||
reserve.symbol === 'USDC' ||
(process.env.NEXT_PUBLIC_HIDE_USDC_DEPOSITS === '1' && reserve.symbol === 'USDC') ||
(process.env.NEXT_PUBLIC_DISABLE_SDAI_MARKET === '1' && reserve.symbol === 'sDAI'),
},
];
Expand All @@ -161,7 +161,7 @@ export const SupplyAssetsList = () => {
reserve.symbol === 'DAI' || reserve.symbol === 'USDC' || reserve.symbol === 'sDAI',
hideSupply:
reserve.symbol === 'DAI' ||
reserve.symbol === 'USDC' ||
(process.env.NEXT_PUBLIC_HIDE_USDC_DEPOSITS === '1' && reserve.symbol === 'USDC') ||
(process.env.NEXT_PUBLIC_DISABLE_SDAI_MARKET === '1' && reserve.symbol === 'sDAI'),
};
})
Expand Down

0 comments on commit 295e45a

Please sign in to comment.