faucet tweak
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user