Skip to content

Commit

Permalink
select token list for borrow
Browse files Browse the repository at this point in the history
  • Loading branch information
xieqiancaosissi committed Dec 25, 2023
1 parent 12f16f3 commit 6293aa1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const Modal = () => {
const maxBorrowAmountPositions = useAppSelector(getBorrowMaxAmount(tokenId));
const maxWithdrawAmount = useAppSelector(getWithdrawMaxAmount(tokenId));
const repayPositions = useAppSelector(getRepayPositions(tokenId));
const { maxBorrowAmount, maxBorrowValue } = maxBorrowAmountPositions[selectedCollateralType];
const { maxBorrowAmount } = maxBorrowAmountPositions[selectedCollateralType];
const repayAmount = repayPositions[selectedCollateralType];
const {
symbol,
Expand Down
2 changes: 1 addition & 1 deletion components/SelectToken/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ function GetBalance({
const { symbol, tokenId } = asset;
const isWrappedNear = symbol === "NEAR";
const { supplyBalance, maxBorrowAmountPositions } = useUserBalance(tokenId, isWrappedNear);
const borrowBalance = maxBorrowAmountPositions[DEFAULT_POSITION]?.toString(); // TODO
const borrowBalance = maxBorrowAmountPositions[DEFAULT_POSITION]?.maxBorrowAmount?.toString(); // TODO
updateAsset[tokenId] = {
...asset,
supply_balance: supplyBalance,
Expand Down

0 comments on commit 6293aa1

Please sign in to comment.