Skip to content

Commit

Permalink
consolidate rootstock
Browse files Browse the repository at this point in the history
  • Loading branch information
waynebruce0x committed Apr 9, 2024
1 parent 0923f0c commit 8fb8f55
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 23 deletions.
22 changes: 0 additions & 22 deletions projects/rootstock-bridge/index.js

This file was deleted.

19 changes: 18 additions & 1 deletion projects/rsk-bridge/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
const ADDRESSES = require('../helper/coreAssets.json')
const ADDRESSES = require("../helper/coreAssets.json");
const { sumTokensExport } = require("../helper/unwrapLPs");

module.exports = {
bitcoin: {
tvl: async (api) => {
const block = (await getBlock("rsk", api.timestamp)).block;
const unminted =
(
await getBalance({
target: "0x0000000000000000000000000000000001000006",
chain: api.chain,
block,
})
).output / 1e18;

const minted = 21e6 - unminted;

return { "coingecko:bitcoin": minted };
},
},
ethereum: {
tvl: sumTokensExport({
owner: "0x12eD69359919Fc775bC2674860E8Fe2d2b6a7B5D",
Expand Down

0 comments on commit 8fb8f55

Please sign in to comment.