Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Idea] - How to prevent Bots from camping 2 layered farms #3

Open
kalote opened this issue Mar 12, 2021 · 0 comments
Open

[Idea] - How to prevent Bots from camping 2 layered farms #3

kalote opened this issue Mar 12, 2021 · 0 comments

Comments

@kalote
Copy link

kalote commented Mar 12, 2021

Hello,

I kept thinking about this "bot" situation, and I thought about a draft of a solution. Let me know what you think about it.

A 2 step process for participating in 2 layered farms:

  • Step 1: users will have to go through the frontend to register their participation (amount / address through bsc-connector) + anti bot system (sliding, captcha, whatever works ...). This will be recorded in a small backend app + db (solidity contract & blockchain cannot be used) like nodejs express (to keep isomorphic approach) + mongo or aws documentdb (more expensive) or dynamodb (more impact on the code) ...
  • Step 2: 3 choices:
    • a "registered address only" available page to allow users that registered to participate in the farm... But they will be able to "change" the amount of their participation, which can be an issue.
    • a public page with "participate" button that will check the address + available balance to participate
    • a "delayed" participation done by owner of the contract with a private method in solidity. This can be done by an open sourced application to avoid hacks / too much human action that could be resulting in lost of faith & confidence by users

For the "delayed" participation:

  • When you reach the target of the 2-layered farm (amount), you close the participation (frontend only)
  • app (cron? manually / automatically triggered?) create solidity contract (template to reuse same process next week for the next 2 layered farm?) with the registered addresses hard coded ... i know, not great, but doable
  • frontend page opens with the farm available ONLY for hard coded addresses

Let me know if it's worth a shot or sounds like something doable / usable.

Cheers,
Johann

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant