From fb82f23d88698734870c96d5d157b669bf6d8b22 Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 27 Mar 2024 14:53:58 -0400 Subject: [PATCH] faucet tweak --- src/components/Faucet.vue | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/components/Faucet.vue b/src/components/Faucet.vue index 8cd11b2..3853de0 100644 --- a/src/components/Faucet.vue +++ b/src/components/Faucet.vue @@ -54,10 +54,10 @@ const disabled = ref(false) const FAUCET_CONFIG = { '': 1, // native coin MEH: 1, - USXD: 1000, - WETH: 1, - ARB: 1000, - USDC: 1000, + USXD: 10000, + WETH: 0, + ARB: 0, + USDC: 10000, } function gib() { @@ -67,12 +67,14 @@ function gib() { const tokenAmounts = {} const tmd = metadata[chainId].t // token metadata for (const [symbol, amount] of Object.entries(FAUCET_CONFIG)) { - for (const t of tmd) { - if (t.s===symbol) { - if (t.x?.mock===true) { - tokenAmounts[t.a] = BigInt(Math.trunc(10 ** t.d * amount)) + if (amount>0) { + for (const t of tmd) { + if (t.s === symbol) { + if (t.x?.mock === true) { + tokenAmounts[t.a] = BigInt(Math.trunc(10 ** t.d * amount)) + } + break } - break } } }