Skip to content

Commit

Permalink
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions polkadot-votebot-cron/index.ts
Original file line number Diff line number Diff line change
@@ -103,15 +103,6 @@ async function main() {
}
}

// Lazily removing one old vote (starting with oldest), so democracy bond can be unlocked easily if needed.
let e = valVotes[0];
if (!ongoingRefs.includes(e)) {
console.log(`Now attempting to remove vote ${e}, since referendum has expired.`)
await api.tx.proxy.proxy(stash_account, "Governance", api.tx.democracy.removeVote(e)).signAndSend(voteBotKey, (async (result) => {
console.log('Transaction status:', result.status.type);
}))
}

if (referenda.length == 0) {
console.log("All up-to-date with voting. Checking for expired referenda to remove...");
// Lazily removing one old vote (starting with oldest), so democracy bond can be unlocked easily if needed.

0 comments on commit 907c951

Please sign in to comment.