fix type errors

This commit is contained in:
tjs 2022-07-06 09:46:16 -04:00
parent fc836218d5
commit 90e166ddcc
2 changed files with 5 additions and 4 deletions

View File

@ -17,9 +17,10 @@ const AccountActions = () => {
const handleCloseMangoAccount = async () => {
const client = mangoStore.getState().client
const mangoAccount = mangoStore.getState().mangoAccount
if (!mangoAccount) return
const group = mangoStore.getState().group
if (!mangoAccount || !group) return
try {
const tx = await client.closeMangoAccount(mangoAccount)
const tx = await client.closeMangoAccount(group, mangoAccount)
console.log('success:', tx)
} catch (e) {
console.log(e)

View File

@ -64,11 +64,11 @@ const Index: NextPage = () => {
</div>
<div>
Indexed Total Deposits:{' '}
{bank.value.indexedTotalDeposits.toString()}
{bank.value.cachedIndexedTotalDeposits.toString()}
</div>
<div>
Indexed Total Borrows:{' '}
{bank.value.indexedTotalDeposits.toString()}
{bank.value.cachedIndexedTotalBorrows.toString()}
</div>
<div>Mint Decimals: {bank.value.mintDecimals.toString()}</div>
<div>Deposit Index: {bank.value.depositIndex.toString()}</div>