jleeh/flux-link-withdrawal

don't make a tx if reward is 0

Opened this issue · 2 comments

2020-07-29 23:08:05,261 INFO [flux-link-withdrawal] Withdrawing amount 0.0 LINK from feed 0xb51dd92a2ee1ce46df8e7661737a5cdd47fb9f24, to 0x

+    if(ethers.utils.formatEther(withdrawableAmount) !== '0.0') {
+        console.log('sending tx')
+        await feedContract.withdrawPayment(walletAddress, withdrawTo, withdrawableAmount, txOptions)
+    }