Skip to content

Commit

Permalink
faucet: words improve
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzckck committed Sep 12, 2024
1 parent 1cb833a commit 895eeca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
12 changes: 3 additions & 9 deletions cmd/faucet/customized/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@
This is to support some projects that have customized token which wanna to be integrated into the bsc faucet tool.

## 1.1.How To Integrated Your Token
- a.It is quite simple, just send a certain amount of your BEP-20 token to the faucet address(0xaa25aa7a19f9c426e07dee59b12f944f4d9f1dd3) on BSC testnet.
- b.Create a PR in [bsc github](https://github.com/bnb-chain/bsc) to provide necessary information and once the PR is accepted, the faucet tool starts to support the customized token and will be listed in https://www.bnbchain.org/en/testnet-faucet.
- Step 1: Fund the faucet address, by sending a certain amount of your BEP-20 token to the faucet address(0xaa25aa7a19f9c426e07dee59b12f944f4d9f1dd3) on BSC testnet.
- Step 2: Update this README.md and create a PR in [bsc github](https://github.com/bnb-chain/bsc) with information.

Just refer the format of [pizzaToken](#21pizzatoken).
We will review the request and once it is accepted, the faucet tool will start to support the customized token and it will be listed in https://www.bnbchain.org/en/testnet-faucet.

# 2.Token List
## 2.1.pizzaToken
- name: pizzaToken
- amount: 10 pizzaToken
- icon: customized/pizzaToken/icon.png
- addr: https://testnet.bscscan.com/token/0x219db9ba77114bd47308957c19dc556a612ee740
- fundTx: [0xa499dc9aaf918aff0507538a8aa80a88d0af6ca15054e6acc57b69c651945280](https://testnet.bscscan.com/tx/0xa499dc9aaf918aff0507538a8aa80a88d0af6ca15054e6acc57b69c651945280)
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 895eeca

Please sign in to comment.