Skip to content

Commit

Permalink
faucet: support customized token (#2687)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzckck authored Sep 12, 2024
1 parent 774d1b7 commit 44e91bb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions cmd/faucet/customized/README.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion cmd/faucet/faucet.go
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ func (f *faucet) apiHandler(w http.ResponseWriter, r *http.Request) {
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()

if ipTimeout := f.timeouts[ips[len(ips)-2]]; time.Now().Before(ipTimeout) {
Expand Down

0 comments on commit 44e91bb

Please sign in to comment.