faucet tweak

This commit is contained in:
Tim
2024-03-27 14:53:58 -04:00
parent 474ba56f21
commit fb82f23d88

View File

@@ -54,10 +54,10 @@ const disabled = ref(false)
const FAUCET_CONFIG = { const FAUCET_CONFIG = {
'': 1, // native coin '': 1, // native coin
MEH: 1, MEH: 1,
USXD: 1000, USXD: 10000,
WETH: 1, WETH: 0,
ARB: 1000, ARB: 0,
USDC: 1000, USDC: 10000,
} }
function gib() { function gib() {
@@ -67,12 +67,14 @@ function gib() {
const tokenAmounts = {} const tokenAmounts = {}
const tmd = metadata[chainId].t // token metadata const tmd = metadata[chainId].t // token metadata
for (const [symbol, amount] of Object.entries(FAUCET_CONFIG)) { for (const [symbol, amount] of Object.entries(FAUCET_CONFIG)) {
for (const t of tmd) { if (amount>0) {
if (t.s===symbol) { for (const t of tmd) {
if (t.x?.mock===true) { if (t.s === symbol) {
tokenAmounts[t.a] = BigInt(Math.trunc(10 ** t.d * amount)) if (t.x?.mock === true) {
tokenAmounts[t.a] = BigInt(Math.trunc(10 ** t.d * amount))
}
break
} }
break
} }
} }
} }