bsc/cmd/faucet
Mudit Gupta b47f4ca5cf
cmd/faucet: use Twitter API instead of scraping webpage (#21850)
This PR adds support for using Twitter API to query the tweet and author details. There are two reasons behind this change:

- Twitter will be deprecating the legacy website on 15th December. The current method is expected to stop working then.
- More importantly, the current system uses Twitter handle for spam protection but the Twitter handle can be changed via automated calls. This allows bots to use the same tweet to withdraw funds infinite times as long as they keep changing their handle between every request. The Rinkeby as well as the Goerli faucet are being actively drained via this method. This PR changes the spam protection to be based on Twitter IDs instead of usernames. A user can not change their Twitter ID.
2020-12-11 10:35:39 +01:00
..
faucet.go cmd/faucet: use Twitter API instead of scraping webpage (#21850) 2020-12-11 10:35:39 +01:00
faucet.html signer/storage: fix a badly ordered error check (#21379) 2020-07-28 12:47:05 +03:00
website.go cmd/faucet: remove Google+ mention from web assets too 2019-05-13 14:52:05 +03:00