Skip to content

Commit

Permalink
add equation v3
Browse files Browse the repository at this point in the history
  • Loading branch information
waldoclayton committed May 13, 2024
1 parent bc8f20c commit 1870a48
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions projects/equation-v3/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const { sumTokens2 } = require("../helper/unwrapLPs");

const config = {
arbitrum: {
marketManager: "0xDe2b77bcbAEf4C5ECE3b827B21fbD8556e8Fa5a4",
usd: "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"
}
};

Object.keys(config).forEach(chain => {
const { marketManager, usd } = config[chain];
module.exports[chain] = {
tvl: async (_, _b, _cb, { api }) => {
const ownerTokens = [[[usd], marketManager]];
return sumTokens2({ api, ownerTokens });
}
};
});

0 comments on commit 1870a48

Please sign in to comment.