Skip to content

Commit

Permalink
fix solana junior tranche cap issue
Browse files Browse the repository at this point in the history
  • Loading branch information
shan57blocks committed Oct 30, 2024
1 parent f5e755e commit 0d244f9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { BN } from '@coral-xyz/anchor'
import {
formatNumber,
SolanaPoolInfo,
SolanaTokenUtils,
TrancheType,
} from '@huma-finance/shared'
import { SolanaPoolState } from '@huma-finance/web-shared'
import React, { useMemo, useState } from 'react'
import { BN } from '@coral-xyz/anchor'
import { Account } from '@solana/spl-token'
import React, { useMemo, useState } from 'react'
import { useAppDispatch } from '../../../hooks/useRedux'
import { setStep, setSupplyAmount } from '../../../store/widgets.reducers'
import { WIDGET_STEP } from '../../../store/widgets.store'
Expand Down Expand Up @@ -55,7 +55,7 @@ export function ChooseAmount({
: seniorAvailableCapBN

return {
juniorAvailableCapBN: totalAvailableCapBN.sub(seniorAvailableCapBN),
juniorAvailableCapBN: totalAvailableCapBN,
seniorAvailableCapBN,
}
}, [poolState])
Expand Down

0 comments on commit 0d244f9

Please sign in to comment.