add console log for maxSwapForUI
This commit is contained in:
parent
a74771d337
commit
cb3ad6e460
|
@ -66,6 +66,16 @@ export const getTokenInMax = (
|
||||||
inputBank.mintDecimals
|
inputBank.mintDecimals
|
||||||
)
|
)
|
||||||
|
|
||||||
|
console.log(
|
||||||
|
'getMaxSourceUiForTokenSwap',
|
||||||
|
mangoAccount.getMaxSourceUiForTokenSwap(
|
||||||
|
group,
|
||||||
|
inputBank.mint,
|
||||||
|
outputBank.mint,
|
||||||
|
1
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
const maxAmount = useMargin
|
const maxAmount = useMargin
|
||||||
? Decimal.min(
|
? Decimal.min(
|
||||||
maxAmountWithoutMargin,
|
maxAmountWithoutMargin,
|
||||||
|
|
Loading…
Reference in New Issue