fix: auto-repay

This commit is contained in:
Linkie Link 2023-12-04 15:24:24 +01:00
parent 21467555e0
commit a61f056eae
No known key found for this signature in database
GPG Key ID: 5318B0F2564D38EA

View File

@ -721,7 +721,8 @@ export default function createBroadcastSlice(
if (
checkAutoLendEnabled(options.accountId) &&
getAssetByDenom(options.denomOut)?.isAutoLendEnabled
getAssetByDenom(options.denomOut)?.isAutoLendEnabled &&
!options.repay
) {
msg.update_credit_account.actions.push({
lend: { denom: options.denomOut, amount: 'account_balance' },