ava-labs / avalanche-faucet

Avalanche Faucet for Fuji Network and Subnets.
https://faucet.avax.network/
Other
472 stars 211 forks source link

Add EMDX subnet configuration #101

Closed afiorenza closed 1 year ago

rajranjan0608 commented 1 year ago

Looks good to me 👍. Can you also add the explorer info for your subnet, we need that to link successful token drips.

afiorenza commented 1 year ago

Looks good to me +1. Can you also add the explorer info for your subnet, we need that to link successful token drips.

Done! Thanks for your review

afiorenza commented 1 year ago

Awesome! Would be great if you can send 5-10 sEMDX to the following address for testing.

0x3EA53fA26b41885cB9149B62f0b7c0BAf76C78D4

@rajranjan0608 sEMDX sent!

maxidev commented 1 year ago

Hey @rajranjan0608 were you able to test it out? thank you!

rajranjan0608 commented 1 year ago

Hey @maxidev & @afiorenza. EMDX subnet integration should be live at:

https://faucet.avax.network/?subnet=emdx

Feel free to fuel the faucet address with your subnet coins 🚀. Apologies for the delayed response.

Faucet address can be found on the above link or just use the below address:

0x2352D20fC81225c8ECD8f6FaA1B37F24FEd450c9
maxidev commented 1 year ago

Hey @maxidev & @afiorenza. EMDX subnet integration should be live at:

https://faucet.avax.network/?subnet=emdx

Feel free to fuel the faucet address with your subnet coins 🚀. Apologies for the delayed response.

Faucet address can be found on the above link or just use the below address:

0x2352D20fC81225c8ECD8f6FaA1B37F24FEd450c9

Hi @rajranjan0608 thank you so much, we see that live but as of now the internal faucet API is returning 0 balance of sEMDX for the faucet address (but it has 100 sEMDX) ready to transfer, not sure if we need to wait the API for updating or maybe we have some technical thing wrong.

Thank you!

rajranjan0608 commented 1 year ago

@maxidev balance should be reflected as soon as it's transferred. I'm seeing this error in the logs for the EMDX subnet:

ERROR EMDX Subnet: Invalid JSON RPC response: "error code: 1020"

Is this due to some rate limit thing? Can you fix this on your RPC node?

maxidev commented 1 year ago

@maxidev balance should be reflected as soon as it's transferred. I'm seeing this error in the logs for the EMDX subnet:

ERROR EMDX Subnet: Invalid JSON RPC response: "error code: 1020"

Is this due to some rate limit thing? Can you fix this on your RPC node?

thanks for the fast response, let me check ASAP and get back to you!

maxidev commented 1 year ago

@rajranjan0608 Can I ask what's the internal RPC call that the faucet is doing to get balance? because using our RPC en metamask and check for addrs balances works just fine, thank you very much!

rajranjan0608 commented 1 year ago

@maxidev We are using the following calls to recalibrate nonce and balance every 30 seconds.

            [this.nonce, this.balance] = await Promise.all([
                this.web3.eth.getTransactionCount(this.account.address, 'latest'),
                this.web3.eth.getBalance(this.account.address),
            ])
rajranjan0608 commented 1 year ago

Hey @maxidev, just checking on this if you find anything related to the above issue.

We might need to pause this integration until you guys are able to put in a fix. Thanks!

maxidev commented 1 year ago

Hey @rajranjan0608 thanks for the reply, weird thing is that as far as we can test, the RPC seems to be working just fine: image

rajranjan0608 commented 1 year ago

Yeah, it's weird. Probably your node client or provider (like Cloudflare) is treating the faucet as a bot/spam, and banning us from accessing the APIs. Would be great if you can configure your node provider.