const abis = require("./abis");

module.exports = {
  start: '2022-11-14',
  methodology:
    "Counts GOO balance of the vault then sums it with the total multiplier reserve based on the vaults pricing of a multiplier in GOO",
}

module.exports["ethereum"] = {
  tvl: async (api) => {
    const gooberReserves = await api.call({
      target: "0x2275d4937b6bFd3c75823744d3EfBf6c3a8dE473",
      abi: abis.goober.reserves,
    });
    const gooBalance = await api.call({
      target: "0x60bb1e2AA1c9ACAfB4d34F71585D7e959f387769",
      params: ["0x2275d4937b6bFd3c75823744d3EfBf6c3a8dE473"],
      abi: abis.artGobblers.gooBalance,
    });

    const poolPricePerMult = gooberReserves._gooReserve / gooberReserves._gobblerReserve

    const gobbersInGoo = +gooberReserves._gooReserve

    return {
      "0x600000000a36F3cD48407e35eB7C5c910dc1f7a8": +gooBalance + gobbersInGoo,
    };
  },
};
