Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const getStalePledges = async () => {
const blockNumber = await web3.eth.getBlockNumber()
const pledges = await pledgesCollection.query(
Q.where('block_number', Q.lt(blockNumber))
).fetch()
return pledges
}