faucet: support customized token (#2687)
This commit is contained in:
parent
774d1b7ddb
commit
44e91bba23
10
cmd/faucet/customized/README.md
Normal file
10
cmd/faucet/customized/README.md
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# 1.Background
|
||||||
|
This is to support some projects with customized tokens that they want to integrate into the BSC faucet tool.
|
||||||
|
|
||||||
|
## 1.1. How to Integrate Your Token
|
||||||
|
- Step 1: Fund the faucet address by sending a specific amount of your BEP-20 token to the faucet address (0xaa25aa7a19f9c426e07dee59b12f944f4d9f1dd3) on the BSC testnet.
|
||||||
|
- Step 2: Update this README.md file and create a Pull Request on [bsc github](https://github.com/bnb-chain/bsc) with relevant information.
|
||||||
|
|
||||||
|
We will review the request, and once it is approved, the faucet tool will start to support the customized token and list it on https://www.bnbchain.org/en/testnet-faucet.
|
||||||
|
|
||||||
|
# 2.Token List
|
@ -500,7 +500,7 @@ func (f *faucet) apiHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
// check #2: check IP and ID(address) to ensure the user didn't request funds too recently,
|
// check #2: check IP and ID(address) to ensure the user didn't request funds too frequently
|
||||||
f.lock.Lock()
|
f.lock.Lock()
|
||||||
|
|
||||||
if ipTimeout := f.timeouts[ips[len(ips)-2]]; time.Now().Before(ipTimeout) {
|
if ipTimeout := f.timeouts[ips[len(ips)-2]]; time.Now().Before(ipTimeout) {
|
||||||
|
Loading…
Reference in New Issue
Block a user