Raffle project: pick winner manually & other modified features #1675
DorianDaSilva
started this conversation in
General
Replies: 2 comments 1 reply
-
I had a idea that pickWinner() would automatically trigger when no' of players gets > 10 or so... |
Beta Was this translation helpful? Give feedback.
0 replies
-
@adityabhattad2021 I was looking into this function to pick random winner without vrf/keepers that will no longer be supported after ethereum merge. I found this function but seems to be outdated:
But I am not sure it would actually work in our context Also, still looking for a way to split the funds sent to the winner (90% winner/10% Raffle owner) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I was wondering if there is a function that would allow me to run the raffle without using vrf/keepers to pick the winner using randomness ( Since I am having problems with vrf/keepers & chainlink won't be supporting ETH merge PoS)
Maybe a function that can be called by the owner of the contract from the back end that would iterate through the array of wallets that have entered the Raffle to pick a winner or if I can just skip randomness altogether and just pick a winner manually from list of addresses.
Another feature would be to include a fee that would be automatically sent to the owner of the Raffle contract everytime the funds are transfered to the winner.
And finally, if I want to host it on a different network I can just replace eth network with whatever network I want to deploy it to and use chainlink feeds and prices for that specific nbetwork, right?
In case I decide to pick winner manually should I just remove checkUpkeep & performUpkeep from the Raffle contract & keep the rest as is to run the raffle on live network?
Any inputs, ideas, recommendations or suggestions on how to do that are more than welcome.
Beta Was this translation helpful? Give feedback.
All reactions