From fef0f746ff94f7fc09015a2864da5c49766820bc Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Sat, 20 Aug 2022 12:20:34 +0200 Subject: [PATCH] ts: Change target health ratio in getMaxSourceForTokenSwap (#187) --- ts/client/src/accounts/mangoAccount.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/client/src/accounts/mangoAccount.ts b/ts/client/src/accounts/mangoAccount.ts index d7b3fc7a2..d943afc4c 100644 --- a/ts/client/src/accounts/mangoAccount.ts +++ b/ts/client/src/accounts/mangoAccount.ts @@ -287,7 +287,7 @@ export class MangoAccount { group, sourceMintPk, targetMintPk, - HUNDRED_I80F48, + ONE_I80F48, // target 1% health ) .mul(I80F48.fromNumber(slippageAndFeesFactor)); }