fix: dashboard fixes

This commit is contained in:
Justin Starry 2020-11-27 10:38:42 +08:00
parent 6521bfd17e
commit b5a0170685
2 changed files with 1 additions and 6 deletions

View File

@ -70,7 +70,6 @@ export interface LendingReserve {
dexMarketOption: number; dexMarketOption: number;
dexMarket: PublicKey; dexMarket: PublicKey;
dexMarketPrice: BN; // what is precision on the price?
config: { config: {
optimalUtilizationRate: number; optimalUtilizationRate: number;
@ -81,16 +80,12 @@ export interface LendingReserve {
optimalBorrowRate: number; optimalBorrowRate: number;
maxBorrowRate: number; maxBorrowRate: number;
}; };
// collateralFactor: number;
cumulativeBorrowRateWad: BN; cumulativeBorrowRateWad: BN;
borrowedLiquidityWad: BN; borrowedLiquidityWad: BN;
availableLiquidity: BN; availableLiquidity: BN;
collateralMintSupply: BN; collateralMintSupply: BN;
// Layout.uint128("cumulative_borrow_rate"),
// Layout.uint128("total_borrows"),
} }
export const LendingReserveParser = ( export const LendingReserveParser = (

View File

@ -18,8 +18,8 @@ export const DashboardView = () => {
{userDeposits.length > 0 && (<div className="dashboard-left"> {userDeposits.length > 0 && (<div className="dashboard-left">
<span>{LABELS.DASHBOARD_TITLE_DEPOSITS}</span> <span>{LABELS.DASHBOARD_TITLE_DEPOSITS}</span>
<div className="dashboard-item dashboard-header"> <div className="dashboard-item dashboard-header">
<div>{LABELS.TABLE_TITLE_ASSET}</div>
<div>{LABELS.TABLE_TITLE_DEPOSIT_BALANCE}</div> <div>{LABELS.TABLE_TITLE_DEPOSIT_BALANCE}</div>
<div>{LABELS.TABLE_TITLE_LOAN_BALANCE}</div>
<div>{LABELS.TABLE_TITLE_APY}</div> <div>{LABELS.TABLE_TITLE_APY}</div>
<div>{LABELS.TABLE_TITLE_ACTION}</div> <div>{LABELS.TABLE_TITLE_ACTION}</div>
</div> </div>