ts: Change target health ratio in getMaxSourceForTokenSwap (#187)

This commit is contained in:
Christian Kamm 2022-08-20 12:20:34 +02:00 committed by GitHub
parent 1132853aab
commit fef0f746ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ export class MangoAccount {
group,
sourceMintPk,
targetMintPk,
HUNDRED_I80F48,
ONE_I80F48, // target 1% health
)
.mul(I80F48.fromNumber(slippageAndFeesFactor));
}