mickaelgermemont / AttendanceCoin

AttendanceCoin for NYC-Blockchain-Devs
MIT License
11 stars 8 forks source link

Faucet for attendance coin on testnet #20

Closed fodisi closed 5 years ago

fodisi commented 6 years ago

Should we create a faucet to get Attendance Coin on the test net? we'd need to update the contract and create an user interface or create an independent contract to serve as the faucet. This faucet contract would receive an initial balance, so it could give to any user that requests Attendance Coin (small drops of 1, 5, 10 AT per request).

tesla809 commented 6 years ago

I like that idea. I will start to work that this Friday at the meetup. Can you assign the task to me?

vutsalsinghal commented 6 years ago

But the whole idea of AC was to: disburse coins only to those who deserve. If you implement faucet then anyone can get AC ?!

fodisi commented 6 years ago

The faucet is only for the TEST NET, where it has no value. It wouldn't be deployed to the main net, where AC would be distributed based In meritocracy or any other distribution model to be defined.

vutsalsinghal commented 6 years ago

I don't think we'll ever deploy it to mainnet.... So whatever significance they will have will be applicable even when it's on testnet..

Anyway we can have if all agree 👍

tesla809 commented 6 years ago

@vutsalsinghal You never know. This thing might pick up steam. We are talking about interesting ideas that can be used with the concept of attendance. Abstracting things bit, lets talk about the value of showing up to places, the value of knowledge networks, and the value of saving time on searching through profiles for recruitment of skills or persons or activation of people.

Not to get too much into this in this issue (thats for the issue #15), we can quantify the value proper signaling (of a skill or attendance) via two metrics a badge and coin. It could be an interesting thought experiment or tool for application to say the least.

mickaelgermemont commented 6 years ago

a faucet on testnet is good for tests. and a good training. can we find a solution that does not require trashing the AC contract? how can we add feature and keep the current AC contract?

i think one way is to create and deploy a faucet contract. i will transfer lots of AC to the faucet address. that way the faucet will have a big AC balance =D. the faucet would have a method to send AC (it will interact with the AC contract and use the transfer method) to whoever request it. The method does not need any arguments. we can say the faucet distributes 10AC to msg.sender what do you think?

btw 10AC == 10 000 000 000 000 000 000 just like 10eth == 10 000 000 000 000 000 000 wei

mickaelgermemont commented 6 years ago
contract ACFaucet {
   function distribute() {
      acContract.send(msg.sender, 10AC)
   }
}
fodisi commented 6 years ago

Just to let you guys know, I'm writing the Faucet contract. I'll PR as soon as it is ready.

vutsalsinghal commented 6 years ago

@fodisi will this do? https://github.com/mickaelgermemont/AttendanceCoin/blob/feature_faucet/contracts/attendancecoin-erc20.sol#L256-L291