Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/ui/src/components/AllMarketModal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const AllMarketModal = (props) => {
const classes = useStyles();
const dispatch = useDispatch();

const { open, close, tokenDetails } = props;
const { open, close, tokenDetails, tab} = props;

const { account } = useSelector((state) => state.addWallet);
const { protocolAddresses, comptroller } = useSelector((state) => state.nodes);
Expand Down Expand Up @@ -171,6 +171,7 @@ const AllMarketModal = (props) => {
APYTextTwo="Borrow APY"
CurrentStateText= "Currently Supplying"
CurrentStateTextTwo= "Currently Borrowing"
tab={tab ? tab : "one"}
open={open}
close={close}
tokenDetails={tokenDetails}
Expand Down
8 changes: 7 additions & 1 deletion src/ui/src/components/Constants/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AssetType } from 'tezoslendingplatformjs';
import { AssetType, testnetAddresses, mainnetAddresses } from 'tezoslendingplatformjs';
import fUSDtz from '../../assets/fusdtz.svg';
import fXTZ from '../../assets/fXTZ.svg';
import fUSDT from '../../assets/fusdt.svg';
Expand All @@ -21,6 +21,8 @@ import XTZ from '../../assets/XTZ.svg';
// import fOXTZ from '../../assets/foxtz.svg';
// import fWTZ from '../../assets/fwtz.svg';

const addresses = process.env.REACT_APP_ENV=="dev"? testnetAddresses : mainnetAddresses;

export const tokens = [
{
title: 'XTZ',
Expand All @@ -29,6 +31,7 @@ export const tokens = [
fLogo: fXTZ,
banner: 'Tez',
assetType: AssetType.XTZ,
address: ''
},
{
title: 'USDtz',
Expand All @@ -37,6 +40,7 @@ export const tokens = [
fLogo: fUSDtz,
banner: 'USDtz',
assetType: AssetType.USD,
address: addresses.underlying.USD?.address ?? ''
},
{
title: 'USDt',
Expand All @@ -45,6 +49,7 @@ export const tokens = [
fLogo: fUSDT,
banner: 'USDt',
assetType: AssetType.USDT,
address: addresses.underlying.USDT?.address ?? ''
},
{
title: 'tzBTC',
Expand All @@ -54,6 +59,7 @@ export const tokens = [
banner: 'tzBTC',
assetType: AssetType.TZBTC,
visibilityThreshold: 0.0000001,
address: addresses.underlying.TZBTC?.address ?? ''
}
// {
// title: 'BTCtz', logo: BTCtz, fLogo: fBTCtz, banner: 'BTCtz', assetType: AssetType.BTC
Expand Down
231 changes: 0 additions & 231 deletions src/ui/src/components/Dashboard/AllMarketTokenTable.tsx

This file was deleted.

Loading