feat: new program id
This commit is contained in:
parent
c9787b15af
commit
f5637f85a1
|
@ -13,6 +13,11 @@ export let LENDING_PROGRAM_ID = new PublicKey(
|
|||
|
||||
export const setProgramIds = (envName: string) => {
|
||||
// Add dynamic program ids
|
||||
if(envName === 'mainnet-beta') {
|
||||
LENDING_PROGRAM_ID = new PublicKey('2KfJP7pZ6QSpXa26RmsN6kKVQteDEdQmizLSvuyryeiW');
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
export const programIds = () => {
|
||||
|
|
|
@ -20,14 +20,14 @@ export type ENV =
|
|||
| "lending";
|
||||
|
||||
export const ENDPOINTS = [
|
||||
{
|
||||
name: "lending" as ENV,
|
||||
endpoint: "https://tln.solana.com",
|
||||
},
|
||||
{
|
||||
name: "mainnet-beta" as ENV,
|
||||
endpoint: "https://solana-api.projectserum.com/",
|
||||
},
|
||||
{
|
||||
name: "lending" as ENV,
|
||||
endpoint: "https://tln.solana.com",
|
||||
},
|
||||
{ name: "testnet" as ENV, endpoint: clusterApiUrl("testnet") },
|
||||
{ name: "devnet" as ENV, endpoint: clusterApiUrl("devnet") },
|
||||
{ name: "localnet" as ENV, endpoint: "http://127.0.0.1:8899" },
|
||||
|
|
|
@ -11,34 +11,31 @@ export const DashboardView = () => {
|
|||
|
||||
return (
|
||||
<div className="dashboard-container">
|
||||
<div className="dashboard-left">
|
||||
{userDeposits.length > 0 && (<div className="dashboard-left">
|
||||
<span>{LABELS.DASHBOARD_TITLE_DEPOSITS}</span>
|
||||
{userDeposits.length > 0 && (
|
||||
<div className="dashboard-item dashboard-header">
|
||||
<div>{LABELS.TABLE_TITLE_DEPOSIT_BALANCE}</div>
|
||||
<div>{LABELS.TABLE_TITLE_LOAN_BALANCE}</div>
|
||||
<div>{LABELS.TABLE_TITLE_APY}</div>
|
||||
<div>{LABELS.TABLE_TITLE_ACTION}</div>
|
||||
</div>
|
||||
)}
|
||||
{userDeposits.map((deposit) => (
|
||||
<DepositItem reserve={deposit.reserve} account={deposit.account} />
|
||||
))}
|
||||
</div>
|
||||
<div className="dashboard-right">
|
||||
</div>)}
|
||||
{userObligations.length > 0 && (<div className="dashboard-right">
|
||||
<span>{LABELS.DASHBOARD_TITLE_LOANS}</span>
|
||||
{userObligations.length > 0 && (
|
||||
<div className="dashboard-item dashboard-header">
|
||||
<div>{LABELS.TABLE_TITLE_ASSET}</div>
|
||||
<div>{LABELS.TABLE_TITLE_LOAN_BALANCE}</div>
|
||||
<div>{LABELS.TABLE_TITLE_APY}</div>
|
||||
<div>{LABELS.TABLE_TITLE_ACTION}</div>
|
||||
</div>
|
||||
)}
|
||||
{userObligations.map((item) => {
|
||||
return <ObligationItem obligation={item.obligation} />;
|
||||
})}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue