faucet native coin fix

This commit is contained in:
Tim
2024-04-12 02:09:34 -04:00
parent af87289035
commit 1791ea4111

View File

@@ -50,7 +50,7 @@ function gib(token) {
const disabled = ref(false) const disabled = ref(false)
const FAUCET_CONFIG = { const FAUCET_CONFIG = {
'': 1, // native coin native: 1,
MEH: 1, MEH: 1,
USXD: 10000, USXD: 10000,
WETH: 0, WETH: 0,
@@ -62,7 +62,7 @@ function gib() {
const s = useStore() const s = useStore()
if( s.account ) { if( s.account ) {
const chainId = s.chainId const chainId = s.chainId
const tokenAmounts = {} const tokenAmounts = {native: BigInt(FAUCET_CONFIG.native*1e18)}
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)) {
if (amount>0) { if (amount>0) {