feat(auto-lend): implemented to swaps (#378)
* feat(auto-lend): implemented to swaps * chore: remove unused import
This commit is contained in:
parent
8e15ed7a19
commit
88a2c68ed5
@ -394,6 +394,15 @@ export default function createBroadcastSlice(
|
||||
},
|
||||
}
|
||||
|
||||
if (
|
||||
checkAutoLendEnabled(options.accountId) &&
|
||||
getAssetByDenom(options.denomOut)?.isAutoLendEnabled
|
||||
) {
|
||||
msg.update_credit_account.actions.push({
|
||||
lend: { denom: options.denomOut, amount: 'account_balance' },
|
||||
})
|
||||
}
|
||||
|
||||
const messages = [
|
||||
generateExecutionMessage(get().address, ENV.ADDRESS_CREDIT_MANAGER, msg, []),
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user