mirror of
https://github.com/Instadapp/assembly.git
synced 2024-07-29 22:37:06 +00:00
Merge branch 'master' into strategies-v2
This commit is contained in:
commit
d79fe602b2
|
@ -156,7 +156,7 @@ export default defineComponent({
|
|||
pending.value = true
|
||||
|
||||
const amount = isMaxAmount.value
|
||||
? gte(balance.value, balance.value)
|
||||
? gte(balance.value, debt.value)
|
||||
? dsa.value.maxValue
|
||||
: balanceRaw.value
|
||||
: valInt(amountParsed.value, decimals.value)
|
||||
|
|
|
@ -127,7 +127,7 @@ export function useMakerdaoPosition(
|
|||
return;
|
||||
}
|
||||
vaults.value = await getVaults(activeAccount.value.address, web3.value);
|
||||
if (vaults.value.length > 0) {
|
||||
if (vaults.value.length > 0 && !vaultId.value) {
|
||||
vaultId.value = vaults.value[0].id;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -59,7 +59,7 @@ const appsPerNetwork = {
|
|||
icon: MakerIcon,
|
||||
name: "MakerDAO",
|
||||
url: "/mainnet/maker",
|
||||
description: "Collateralized Debt"
|
||||
description: "Collateralized DAI Debt"
|
||||
},
|
||||
{
|
||||
id: "1inch",
|
||||
|
@ -73,7 +73,7 @@ const appsPerNetwork = {
|
|||
icon: LiquityIcon,
|
||||
name: "Liquity",
|
||||
url: "/mainnet/liquity",
|
||||
description: "Collateralized Debt"
|
||||
description: "Collateralized LUSD Debt"
|
||||
}
|
||||
],
|
||||
polygon: [
|
||||
|
|
Loading…
Reference in New Issue
Block a user