mirror of
https://github.com/Instadapp/assembly.git
synced 2024-07-29 22:37:06 +00:00
fixes
This commit is contained in:
parent
ed3966b239
commit
2a4f366112
|
@ -24,7 +24,7 @@
|
|||
<div class="mx-auto h-full" style="max-width: 296px">
|
||||
<div class="space-y-4 py-9 h-full flex flex-col">
|
||||
<div class="flex-1">
|
||||
<div v-for="(input, index) in inputs" :key="index">
|
||||
<div v-for="(input, index) in inputs" :key="index" class="mb-6">
|
||||
<input-amount
|
||||
:key="index"
|
||||
:value="input.value"
|
||||
|
@ -34,6 +34,7 @@
|
|||
? input.tokenKeys
|
||||
: activeStrategy.getContext()['tokenKeys']
|
||||
"
|
||||
:error="input.error"
|
||||
:placeholder="input.placeholder()"
|
||||
@input="$event => input.onInput($event)"
|
||||
@tokenKeyChanged="
|
||||
|
|
|
@ -45,7 +45,7 @@ export function useStrategy(defineStrategy: DefineStrategy) {
|
|||
strategy.onUpdated(async () => {
|
||||
await nextTick();
|
||||
|
||||
inputs.value = strategy.inputs;
|
||||
// inputs.value = strategy.inputs;
|
||||
|
||||
console.log("onUpdated");
|
||||
});
|
||||
|
@ -66,8 +66,6 @@ export function useStrategy(defineStrategy: DefineStrategy) {
|
|||
showPendingTransaction(tx);
|
||||
close();
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
|
||||
error.value = e.message;
|
||||
}
|
||||
pending.value = false;
|
||||
|
|
|
@ -54,14 +54,16 @@ export function useTenderly() {
|
|||
const stopSimulation = async () => {
|
||||
loading.value = true;
|
||||
try {
|
||||
await axios({
|
||||
method: "delete",
|
||||
url: `https://api.tenderly.co/api/v1/account/${$config.TENDERLY_FORK_PATH}/fork/${forkId.value}`,
|
||||
headers: {
|
||||
"X-Access-key": $config.TENDERLY_KEY,
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
});
|
||||
if (forkId.value) {
|
||||
await axios({
|
||||
method: "delete",
|
||||
url: `https://api.tenderly.co/api/v1/account/${$config.TENDERLY_FORK_PATH}/fork/${forkId.value}`,
|
||||
headers: {
|
||||
"X-Access-key": $config.TENDERLY_KEY,
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
});
|
||||
}
|
||||
} catch (error) {}
|
||||
|
||||
forkId.value = null;
|
||||
|
@ -106,6 +108,6 @@ export function useTenderly() {
|
|||
canSimulate,
|
||||
startSimulation,
|
||||
stopSimulation,
|
||||
loading,
|
||||
loading
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { computed, onMounted, ref, watch } from "@nuxtjs/composition-api";
|
||||
import { computed, onMounted, ref } from "@nuxtjs/composition-api";
|
||||
import Web3 from "web3";
|
||||
import { SafeAppWeb3Modal } from "@gnosis.pm/safe-apps-web3modal";
|
||||
import { Network } from "./useNetwork";
|
||||
|
@ -134,10 +134,6 @@ export function useWeb3() {
|
|||
web3.value = newWeb3;
|
||||
};
|
||||
|
||||
watch(web3, () => {
|
||||
window.web3 = web3.value;
|
||||
});
|
||||
|
||||
return {
|
||||
account,
|
||||
chainId,
|
||||
|
|
|
@ -49,7 +49,13 @@ export class Strategy {
|
|||
continue;
|
||||
}
|
||||
|
||||
if(input.defaulted){
|
||||
continue;
|
||||
}
|
||||
|
||||
Object.assign(input, input.defaults(this.getBaseContext()));
|
||||
|
||||
input.defaulted = true;
|
||||
}
|
||||
|
||||
this.notifyListeners();
|
||||
|
|
Loading…
Reference in New Issue
Block a user