add types
This commit is contained in:
parent
52a84a7268
commit
d565b1ea46
|
@ -103,7 +103,13 @@ export const getTokenInMax = (
|
|||
}
|
||||
}
|
||||
|
||||
export const useTokenMax = (useMargin = true) => {
|
||||
interface TokenMaxResults {
|
||||
amount: Decimal
|
||||
amountWithBorrow: Decimal
|
||||
decimals: number
|
||||
}
|
||||
|
||||
export const useTokenMax = (useMargin = true): TokenMaxResults => {
|
||||
const { mangoAccount } = useMangoAccount()
|
||||
const { group } = useMangoGroup()
|
||||
const inputBank = mangoStore((s) => s.swap.inputBank)
|
||||
|
|
Loading…
Reference in New Issue