DASHBOARD: TODO: 1. Add deposits 2. Add obligations
+
+ {userObligations.map(item => {
+ return
{item?.oblication.info.borrowAmount.toString()}
;
+ })}
);
};
diff --git a/src/views/home/item.tsx b/src/views/home/item.tsx
index 590d4dc..8a9abb1 100644
--- a/src/views/home/item.tsx
+++ b/src/views/home/item.tsx
@@ -20,7 +20,7 @@ export const LendingReserveItem = (props: {
props.reserve.totalLiquidity.toNumber(),
liquidityMint
);
-
+
const totalBorrows = props.reserve.totalBorrows.toString();
console.log(liquidityMint);
diff --git a/src/views/index.tsx b/src/views/index.tsx
index b68beef..41c9247 100644
--- a/src/views/index.tsx
+++ b/src/views/index.tsx
@@ -7,3 +7,4 @@ export { DepositReserveView } from "./depositReserve";
export { ReserveView } from "./reserve";
export { WithdrawView } from "./withdraw";
export { FaucetView } from "./faucet";
+export { RepayReserveView } from "./repayReserve";
diff --git a/src/views/repayReserve/index.tsx b/src/views/repayReserve/index.tsx
new file mode 100644
index 0000000..9734a47
--- /dev/null
+++ b/src/views/repayReserve/index.tsx
@@ -0,0 +1,44 @@
+import React from "react";
+import { useLendingReserve } from "../../hooks";
+import { useParams } from "react-router-dom";
+
+import { RepayInput } from "../../components/RepayInput";
+import {
+ SideReserveOverview,
+ SideReserveOverviewMode,
+} from "../../components/SideReserveOverview";
+
+import "./style.less";
+import { LendingObligation } from "../../models";
+
+export const RepayReserveView = () => {
+ const { id } = useParams<{ id: string }>();
+ const lendingReserve = useLendingReserve(id);
+ const reserve = lendingReserve?.info;
+
+ // TODO: query for lending obligation
+ const ob: LendingObligation = {} as any;
+
+ if (!reserve || !lendingReserve) {
+ return null;
+ }
+
+ return (
+