My Spots: 'Use a LinkSpin Banner Spin' (two taps: pick a 468x60 spin, image + tracking link fill and save). Refuel spots: /api/partner/refuel-spot (signed) queues one buyFor per $50+ counted refuel tx, bought from the engine wallet with a 3 POL reserve, every cost recorded (refuelspots.js); never sends at the same time as the keeper. my.js?v=5, line.css?v=4
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -54,9 +54,11 @@ function decide(now) {
|
||||
return { act: true, giftee: cands.length ? cands[0].address : chain.ZERO, candidates: cands.length, fundToday };
|
||||
}
|
||||
|
||||
let otherBusy = () => false; // refuelspots.js signs with the same wallet: never two sends at once
|
||||
function setOtherBusy(f) { otherBusy = f; }
|
||||
async function tick() {
|
||||
const c = cfgMod.get();
|
||||
if (running || !c.keeperEnabled || !process.env.KEEPER_KEY || !c.contract) return;
|
||||
if (running || otherBusy() || !c.keeperEnabled || !process.env.KEEPER_KEY || !c.contract) return;
|
||||
running = true;
|
||||
try {
|
||||
await chain.tail(); // decide on fresh data
|
||||
@@ -93,4 +95,4 @@ function init() {
|
||||
}
|
||||
function statusInfo() { const c = cfgMod.get(); return { enabled: c.keeperEnabled && !!process.env.KEEPER_KEY, last: lastDecision, preview: decide(), log: store.keeperEntries().slice(-20).reverse() }; }
|
||||
|
||||
module.exports = { init, tick, decide, candidates, statusInfo, centralDay };
|
||||
module.exports = { init, tick, decide, candidates, statusInfo, centralDay, setOtherBusy, busy: () => running };
|
||||
|
||||
Reference in New Issue
Block a user