Skip to content

Commit

Permalink
Fix: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenquangthang1997 committed Dec 20, 2024
1 parent 47320af commit 094a2b4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions projects/b14g/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,11 @@ module.exports = {
fromBlock: 19942300,
})
const receiverRewards = logs.map(i => i[1])


const coreStakeAmounts = (await api.multiCall({
abi: 'function totalCoreStake() external view returns (uint256)',
calls: receiverRewards
})).flat()


const totalCoreStake = coreStakeAmounts.reduce((acc, cur) => convertToBigInt(cur) + acc, BigInt(0))
const response = await fetch(btcTxHashLockApi)
const listTxHash = await response.json();
Expand Down

0 comments on commit 094a2b4

Please sign in to comment.