fix: auto-repay
This commit is contained in:
parent
21467555e0
commit
a61f056eae
@ -721,7 +721,8 @@ export default function createBroadcastSlice(
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
checkAutoLendEnabled(options.accountId) &&
|
checkAutoLendEnabled(options.accountId) &&
|
||||||
getAssetByDenom(options.denomOut)?.isAutoLendEnabled
|
getAssetByDenom(options.denomOut)?.isAutoLendEnabled &&
|
||||||
|
!options.repay
|
||||||
) {
|
) {
|
||||||
msg.update_credit_account.actions.push({
|
msg.update_credit_account.actions.push({
|
||||||
lend: { denom: options.denomOut, amount: 'account_balance' },
|
lend: { denom: options.denomOut, amount: 'account_balance' },
|
||||||
|
Loading…
Reference in New Issue
Block a user