So I am done mining for now cause the transaction fees are too high. Here is my custom script that I wrote which will call the transactions more precisely at the rewardEnd date.
Replace XXXX with your values that you want. Anyways I hope this takes off! To run the script, call waitForRewardEndPrecise()
var rewardEnd = contract.RewardEnd.call();
function mine() {
web3.eth.sendTransaction({to:'0x03df4c372a29376d2c8df33a1b5f001cd8d68b0e', from: 'XXXX', data: getData, gas: XXXX, gasPrice: web3.toWei(XXXX,'gwei')});
console.log("sending transaction");
}
function mineXTimes(x) {
for (var i = 0; i < x; i++) {
mine();
}
}
function waitForRewardEndPrecise() {
rewardEnd = contract.RewardEnd.call();
while(rewardEnd >= Date.now()/1000) {
admin.sleep(0.0001);
waitForRewardEndPrecise()
}
mineContinuously(30)
}
function mineContinuously(count) {
console.log('mineContinuously called');
mineXTimes(count)
console.log('Waiting sometime ' + Date() + contract.RewardEnd.call())
admin.sleep(550);
console.log('Start waiting precisely! ' + Date())
waitForRewardEndPrecise()
}
You just destroyed the price and you didn't even get the most important points.
https://soundcloud.com/okgo/youre-a-fucking-nerd-and-no-one-likes-youanyway, there's still a competition, man.
tokens per batch are limited, so you need to guess the gas price of other participants tx to overbid them.