Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added sei / base / avax factory contracts #13140

Closed
wants to merge 8 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 27 additions & 6 deletions projects/gyroscope/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const { getLogs } = require("../helper/cache/getLogs");
module.exports.doublecounted = true;
const blacklistedTokens = [
'0xe07f9d810a48ab5c3c914ba3ca53af14e4491e8a', // GYD ethereum
]
const { getLogs } = require("../helper/cache/getLogs");module.exports.doublecounted = true;
const blacklistedTokens = ["0xe07f9d810a48ab5c3c914ba3ca53af14e4491e8a", // GYD ethereum]
const rpcUrls = {sei: "https://still-clean-morning.sei-pacific.quiknode.pro/414cfbb55c44ed3ba548d8a68dfb59cdf72a4775",};

async function tvl(api) {
const pools = config[api.chain];
if (api.chain === "sei") {
api.web3 = new Web3(rpcUrls.sei);
}

const promises = pools.map(async ({ factory, fromBlock }) => {
const logs = await getLogs({
Expand Down Expand Up @@ -65,6 +65,27 @@ const config = {
fromBlock: 41209677,
},
],
base: [
{
name: "Gyro E-CLP V2 Factory",
factory: "0x15e86be6084c6a5a8c17732d398dfbc2ec574cec",
fromBlock: 13035219,
},
],
sei: [
{
name: "Gyro E-CLP V2 Factory",
factory: "0xB438ea246cefA9241305aD62E5D307D014baF7Fa",
fromBlock: 126_717_200,
},
],
avax: [
{
name: "Gyro E-CLP V2 Factory",
factory: "0x41E9ac0bfed353c2dE21a980dA0EbB8A464D946A",
fromBlock: 50484541,
},
],
optimism: [
{
name: "Gyro E-CLP V2 Factory",
Expand Down
Loading