good morning!!!!

Skip to content
Snippets Groups Projects
Forked from github / maticnetwork / bor
Source project has a limited visibility.
  • Mudit Gupta's avatar
    b47f4ca5
    cmd/faucet: use Twitter API instead of scraping webpage (#21850) · b47f4ca5
    Mudit Gupta authored
    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.
    cmd/faucet: use Twitter API instead of scraping webpage (#21850)
    Mudit Gupta authored
    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.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.